Separate "launch" into another SourceSet

This commit is contained in:
Brady
2018-09-04 18:48:00 -05:00
parent a45f291d67
commit bba2458f8e
20 changed files with 578 additions and 534 deletions
+11 -1
View File
@@ -46,6 +46,12 @@ compileJava {
sourceCompatibility = targetCompatibility = '1.8'
}
sourceSets {
launch {
compileClasspath += main.compileClasspath + main.runtimeClasspath + main.output
}
}
minecraft {
version = '1.12.2'
mappings = 'snapshot_20180731'
@@ -64,7 +70,7 @@ repositories {
}
dependencies {
runtime implementation('org.spongepowered:mixin:0.7.11-SNAPSHOT') {
runtime launchCompile('org.spongepowered:mixin:0.7.11-SNAPSHOT') {
// Mixin includes a lot of dependencies that are too up-to-date
exclude module: 'launchwrapper'
exclude module: 'guava'
@@ -79,3 +85,7 @@ mixin {
defaultObfuscationEnv notch
add sourceSets.main, 'mixins.baritone.refmap.json'
}
jar {
from sourceSets.launch.output
}