@@ -9,17 +9,17 @@ buildscript {
99 }
1010 dependencies {
1111 classpath ' net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
12- classpath ' com.github.jengelman.gradle.plugins:shadow:1.2.4'
12+ // classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.4'
1313 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
1414 }
1515}
1616apply plugin : ' net.minecraftforge.gradle.forge'
17- apply plugin : ' com.github.johnrengelman.shadow'
17+ // apply plugin: 'com.github.johnrengelman.shadow'
1818apply plugin : ' kotlin'
1919
20- version = " 1.0.0 "
21- group = " kr.pe.ecmaxp.openpython "
22- archivesBaseName = " OpenPython "
20+ version = " MC ${ minecraft_version } -OC ${ opencomputers_version } - ${ mod_version } "
21+ group = mod_group
22+ archivesBaseName = mod_name
2323
2424sourceCompatibility = targetCompatibility = ' 1.8'
2525compileJava {
@@ -28,11 +28,13 @@ compileJava {
2828}
2929
3030minecraft {
31- version = " 1.12.2-14.23.4.2747"
31+ version = " ${ minecraft_version} -${ forge_version} "
32+
33+ replace " @VERSION@" , mod_version
34+ replace " /*@MCVERSIONDEP@*/" , " acceptedMinecraftVersions = \" [${ minecraft_version} ,${ minecraft_version} +)\" "
35+
3236 runDir = " run"
33-
34- mappings = " snapshot_20171003"
35- makeObfSourceJar = true
37+ mappings = minecraft_mappings
3638}
3739
3840repositories {
@@ -46,16 +48,16 @@ repositories {
4648 mavenCentral()
4749}
4850
51+ /*
4952shadowJar {
5053 exclude 'dummyThing'
51-
5254 // relocate "org.msgpack", "kr.pe.ecmaxp.repack.org.msgpack"
5355}
56+ */
5457
5558dependencies {
56- api " li.cil.oc:OpenComputers:MC1.12.2-1.7.+:api"
57-
58- api " net.shadowfacts:Forgelin:1.7.3"
59+ api " li.cil.oc:OpenComputers:MC$minecraft_version -$opencomputers_version . +:api"
60+ api " net.shadowfacts:Forgelin:$forgelin_version "
5961 api " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
6062 api " org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version "
6163
@@ -78,12 +80,12 @@ processResources {
7880
7981compileKotlin {
8082 kotlinOptions {
81- jvmTarget = " 1.8"
83+ jvmTarget = ' 1.8'
8284 }
8385}
8486
8587compileTestKotlin {
8688 kotlinOptions {
87- jvmTarget = " 1.8"
89+ jvmTarget = ' 1.8'
8890 }
8991}
0 commit comments