aboutsummaryrefslogtreecommitdiff
path: root/GuiTest/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'GuiTest/build.gradle')
-rw-r--r--GuiTest/build.gradle29
1 files changed, 13 insertions, 16 deletions
diff --git a/GuiTest/build.gradle b/GuiTest/build.gradle
index c1423b2..bbb0f0f 100644
--- a/GuiTest/build.gradle
+++ b/GuiTest/build.gradle
@@ -14,7 +14,9 @@ version = rootProject.version
group = rootProject.group
loom {
- autoGenIDERuns = true
+ runConfigs.configureEach {
+ ideConfigGenerated = true
+ }
}
//configurations.modApi {
@@ -40,29 +42,24 @@ dependencies {
processResources {
inputs.property "version", project.version
- from(sourceSets.main.resources.srcDirs) {
- include "fabric.mod.json"
+ filesMatching("fabric.mod.json") {
expand "version": project.version
}
-
- from(sourceSets.main.resources.srcDirs) {
- exclude "fabric.mod.json"
- }
}
-// ensure that the encoding is set to UTF-8, no matter what the system default is
-// this fixes some edge cases with special characters not displaying correctly
-// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
tasks.withType(JavaCompile) {
+ // ensure that the encoding is set to UTF-8, no matter what the system default is
+ // this fixes some edge cases with special characters not displaying correctly
+ // see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
options.encoding = "UTF-8"
+
+ if (JavaVersion.current().isJava9Compatible()) {
+ options.release.set 8
+ }
}
-// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
-// if it is present.
-// If you remove this task, sources will not be generated.
-task sourcesJar(type: Jar, dependsOn: classes) {
- classifier = "sources"
- from sourceSets.main.allSource
+java {
+ withSourcesJar()
}
jar {