diff options
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle index c037977..163ecc9 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { sourceCompatibility = JavaVersion.VERSION_16 targetCompatibility = JavaVersion.VERSION_16 -archivesBaseName = project.name + '-' + project.mcVersion +archivesBaseName = project.name + '-' + project.mcVersion + '-fabric' sourceSets.main.java.srcDirs += 'java' sourceSets.main.resources.srcDirs += 'resources' @@ -37,6 +37,14 @@ loom { accessWidenerPath = file("src/main/resources/${project.name.toLowerCase()}.accesswidener") } +processResources { + inputs.property 'version', project.version + + filesMatching("fabric.mod.json") { + expand "version": project.version + } +} + tasks.withType(JavaCompile).configureEach { it.options.encoding = "UTF-8" it.options.release = 16 |