Skip to content

Commit

Permalink
Support Minecraft 1.12.2, closes #12. Fix the GradleStart dependency …
Browse files Browse the repository at this point in the history
…TODO
  • Loading branch information
simon816 committed Oct 1, 2017
1 parent e698e46 commit 8b8604c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
13 changes: 8 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'eclipse'
sourceCompatibility = '1.6'
targetCompatibility = '1.6'

version = '0.5.1'
version = '0.6.0'

repositories {
mavenCentral()
Expand All @@ -18,15 +18,17 @@ repositories {
}
}

sourceSets {
lib
}

dependencies {
compile 'net.minecraft:launchwrapper:1.12'
compile 'org.apache.logging.log4j:log4j-core:2.0-beta9'
compile 'net.minecraftforge:forge:1.11.2-13.20.0.2228:universal'
// TODO Fix this
compile files('C:/Users/Simon/.gradle/caches/minecraft/net/minecraftforge/forge/1.11.2-13.20.0.2227/start')
compile 'net.minecraftforge:forge:1.12.2-14.23.0.2486:universal'
}

project.ext.supportedVersions = ["1.8.9", "1.10.2", "1.11", "1.11.2", "1.12", "1.12.1"]
project.ext.supportedVersions = ["1.8.9", "1.10.2", "1.11", "1.11.2", "1.12", "1.12.1", "1.12.2"]

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

compileJava.source = setSupportedVersions.outputs.files
compileJava.dependsOn setSupportedVersions
compileJava.classpath += sourceSets.lib.output


jar {
Expand Down
23 changes: 23 additions & 0 deletions src/lib/java/net/minecraftforge/gradle/GradleStartCommon.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package net.minecraftforge.gradle;

import java.util.List;
import java.util.Map;

/**
* Stub GradleStartCommon class
*/
public abstract class GradleStartCommon {

protected abstract void setDefaultArguments(Map<String, String> argMap);

protected abstract void preLaunch(Map<String, String> argMap, List<String> extras);

protected abstract String getBounceClass();

protected abstract String getTweakClass();

protected void launch(String[] args) throws Throwable {
throw new IllegalStateException("Tried to launch the stub GradleStartCommon class");
}

}

0 comments on commit 8b8604c

Please sign in to comment.