@@ -9,25 +9,25 @@ buildscript {
99 }
1010}
1111
12-
13-
1412apply plugin : " net.minecraftforge.gradle.forge"
1513// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
1614
1715version = project. mod_version
1816group = " mods.rml" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
1917archivesBaseName = " ResourceModLoader"
2018
21- java. toolchain. languageVersion = JavaLanguageVersion . of(8 )
19+ sourceCompatibility = targetCompatibility = " 1.8" // Need this here so eclipse task generates correctly.
20+ compileJava {
21+ sourceCompatibility = targetCompatibility = " 1.8"
22+ }
2223
2324minecraft {
2425 version = " 1.12.2-14.23.5.2847"
2526 runDir = " run"
2627 mappings = " stable_39"
2728 makeObfSourceJar = true // an Srg named sources jar is made by default. uncomment this to disable.
28- args = ' --rml.debug' , ' true' ,
29- ' --rml.test' , ' true' ,
30- ' --rml.dev.location' , ' .../.../dev/example/'
29+
30+
3131}
3232
3333repositories {
@@ -120,9 +120,15 @@ jar {
120120 }
121121}
122122
123+ tasks. register(' buildExample' , Zip ) {
124+ archiveName = " example.zip"
125+ destinationDir = file(" run/client/mods" )
126+
127+ from " dev/example"
128+ }
123129tasks. register(' releaseExample' , Zip ) {
124- archiveBaseName = " example-" + version+ " .zip"
125- destinationDirectory = file(" releases/example" )
130+ archiveName = " example-" + version+ " .zip"
131+ destinationDir = file(" releases/example" )
126132
127133 from " dev/example"
128134}
0 commit comments