YesCheat/build.gradle

40 lines
893 B
Groovy
Raw Normal View History

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
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
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
java {
withSourcesJar()
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:23:09 +02:00
}