Skip to content
This repository was archived by the owner on Apr 25, 2021. It is now read-only.

Commit 63947b2

Browse files
committed
빌드 스크립트 수정
1 parent 66a0d3e commit 63947b2

File tree

2 files changed

+31
-18
lines changed

2 files changed

+31
-18
lines changed

build.gradle

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}
1616
apply plugin: 'net.minecraftforge.gradle.forge'
17-
apply plugin: 'com.github.johnrengelman.shadow'
17+
// apply plugin: 'com.github.johnrengelman.shadow'
1818
apply 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

2424
sourceCompatibility = targetCompatibility = '1.8'
2525
compileJava {
@@ -28,11 +28,13 @@ compileJava {
2828
}
2929

3030
minecraft {
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

3840
repositories {
@@ -46,16 +48,16 @@ repositories {
4648
mavenCentral()
4749
}
4850

51+
/*
4952
shadowJar {
5053
exclude 'dummyThing'
51-
5254
// relocate "org.msgpack", "kr.pe.ecmaxp.repack.org.msgpack"
5355
}
56+
*/
5457

5558
dependencies {
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

7981
compileKotlin {
8082
kotlinOptions {
81-
jvmTarget = "1.8"
83+
jvmTarget = '1.8'
8284
}
8385
}
8486

8587
compileTestKotlin {
8688
kotlinOptions {
87-
jvmTarget = "1.8"
89+
jvmTarget = '1.8'
8890
}
8991
}

gradle.properties

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1-
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
2-
# This is required to provide enough memory for the Minecraft decompilation process.
3-
org.gradle.jvmargs=-Xmx3G
1+
# forge_gradle_version = 2.3-SNAPSHOT
2+
java_version = 1.8
3+
forgelin_version = 1.7.3
4+
# kotlin_version = 1.2.70
5+
6+
minecraft_version=1.12.2
7+
minecraft_mappings=snapshot_20180704
8+
forge_version=14.23.4.2727
9+
10+
mod_name=OpenPython
11+
mod_version=1.0.1
12+
mod_group=kr.pe.ecmaxp.openpython
13+
14+
opencomputers_version = 1.7

0 commit comments

Comments
 (0)