Skip to content

Commit 8b8604c

Browse files
committed
Support Minecraft 1.12.2, closes #12. Fix the GradleStart dependency TODO
1 parent e698e46 commit 8b8604c

File tree

2 files changed

+31
-5
lines changed

2 files changed

+31
-5
lines changed

build.gradle

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'eclipse'
44
sourceCompatibility = '1.6'
55
targetCompatibility = '1.6'
66

7-
version = '0.5.1'
7+
version = '0.6.0'
88

99
repositories {
1010
mavenCentral()
@@ -18,15 +18,17 @@ repositories {
1818
}
1919
}
2020

21+
sourceSets {
22+
lib
23+
}
24+
2125
dependencies {
2226
compile 'net.minecraft:launchwrapper:1.12'
2327
compile 'org.apache.logging.log4j:log4j-core:2.0-beta9'
24-
compile 'net.minecraftforge:forge:1.11.2-13.20.0.2228:universal'
25-
// TODO Fix this
26-
compile files('C:/Users/Simon/.gradle/caches/minecraft/net/minecraftforge/forge/1.11.2-13.20.0.2227/start')
28+
compile 'net.minecraftforge:forge:1.12.2-14.23.0.2486:universal'
2729
}
2830

29-
project.ext.supportedVersions = ["1.8.9", "1.10.2", "1.11", "1.11.2", "1.12", "1.12.1"]
31+
project.ext.supportedVersions = ["1.8.9", "1.10.2", "1.11", "1.11.2", "1.12", "1.12.1", "1.12.2"]
3032

3133
task setSupportedVersions(type: Copy) {
3234
from(sourceSets.main.java.srcDirs)
@@ -37,6 +39,7 @@ task setSupportedVersions(type: Copy) {
3739

3840
compileJava.source = setSupportedVersions.outputs.files
3941
compileJava.dependsOn setSupportedVersions
42+
compileJava.classpath += sourceSets.lib.output
4043

4144

4245
jar {
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package net.minecraftforge.gradle;
2+
3+
import java.util.List;
4+
import java.util.Map;
5+
6+
/**
7+
* Stub GradleStartCommon class
8+
*/
9+
public abstract class GradleStartCommon {
10+
11+
protected abstract void setDefaultArguments(Map<String, String> argMap);
12+
13+
protected abstract void preLaunch(Map<String, String> argMap, List<String> extras);
14+
15+
protected abstract String getBounceClass();
16+
17+
protected abstract String getTweakClass();
18+
19+
protected void launch(String[] args) throws Throwable {
20+
throw new IllegalStateException("Tried to launch the stub GradleStartCommon class");
21+
}
22+
23+
}

0 commit comments

Comments
 (0)