2020-09-30 14:40:14 +02:00
|
|
|
plugins {
|
2021-06-11 14:23:09 +02:00
|
|
|
id 'fabric-loom' version '0.8-SNAPSHOT'
|
2020-09-30 14:40:14 +02:00
|
|
|
}
|
|
|
|
|
2021-06-11 14:30:50 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_16
|
|
|
|
targetCompatibility = JavaVersion.VERSION_16
|
2020-09-30 14:40:14 +02:00
|
|
|
|
|
|
|
archivesBaseName = project.archives_base_name
|
|
|
|
version = project.mod_version
|
|
|
|
group = project.maven_group
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
2021-06-11 14:23:09 +02:00
|
|
|
mappings "net.fabricmc:yarn:${project.minecraft_version}+${project.yarn_mappings}:v2"
|
2020-09-30 14:40:14 +02:00
|
|
|
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
inputs.property "version", project.version
|
|
|
|
|
2021-06-11 14:23:09 +02:00
|
|
|
filesMatching("fabric.mod.json") {
|
2020-09-30 14:40:14 +02:00
|
|
|
expand "version": project.version
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-11 14:23:09 +02:00
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
|
|
it.options.encoding = "UTF-8"
|
2020-09-30 14:40:14 +02:00
|
|
|
|
2021-06-11 14:23:09 +02:00
|
|
|
it.options.release = 16
|
2020-09-30 14:40:14 +02:00
|
|
|
}
|
|
|
|
|
2021-06-11 14:23:09 +02:00
|
|
|
jar {
|
|
|
|
from("LICENSE") {
|
|
|
|
rename { "${it}_${project.archivesBaseName}"}
|
2020-09-30 14:40:14 +02:00
|
|
|
}
|
2021-06-11 14:30:50 +02:00
|
|
|
}
|