Working 1.13.2 development environment

Including a couple bugfixes to bad 1.13.2 code!!!
This commit is contained in:
Brady
2019-03-12 01:05:39 -05:00
parent e2cc51908b
commit 5a16561954
6 changed files with 121 additions and 28 deletions
+34 -18
View File
@@ -16,7 +16,7 @@
*/
group 'baritone'
version '1.2.3'
version '1.3.0'
buildscript {
repositories {
@@ -32,7 +32,8 @@ buildscript {
}
dependencies {
classpath group: 'com.github.ImpactDevelopment', name: 'ForgeGradle', version: '3.0.111'
classpath group: 'com.github.ImpactDevelopment', name: 'ForgeGradle', version: '3.0.115'
classpath group: 'com.github.ImpactDevelopment', name: 'MixinGradle', version: '0.6.1'
}
}
@@ -40,9 +41,8 @@ import baritone.gradle.task.CreateDistTask
import baritone.gradle.task.ProguardTask
apply plugin: 'java'
//apply plugin: 'net.minecraftforge.gradle.tweaker-client'
//apply plugin: 'org.spongepowered.mixin'
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.spongepowered.mixin'
sourceCompatibility = targetCompatibility = '1.8'
compileJava {
@@ -58,24 +58,17 @@ sourceSets {
compileClasspath += api.output
}
test {
compileClasspath += api.output
compileClasspath += main.compileClasspath + main.runtimeClasspath + main.output
}
launch {
compileClasspath += main.compileClasspath + main.runtimeClasspath + main.output
}
}
/*
minecraft {
version = '1.12.2'
mappings = 'stable_39'
tweakClass = 'baritone.launch.BaritoneTweaker'
runDir = 'run'
// The sources jar should use SRG names not MCP to ensure compatibility with all mappings
makeObfSourceJar = true
task sourceJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.api.allSource
}
*/
minecraft {
mappings channel: 'snapshot', version: '20190307-1.13.1'
@@ -85,6 +78,28 @@ minecraft {
client {
workingDirectory project.file('run')
source sourceSets.main
main 'baritone.launch.LaunchTesting'
environment 'assetIndex', '{asset_index}'
environment 'assetDirectory', downloadAssets.output
environment 'nativesDirectory', extractNatives.output
environment 'tweakClass', 'baritone.launch.BaritoneTweaker'
}
autoTest {
workingDirectory project.file('autotest')
source sourceSets.main
main 'baritone.launch.LaunchTesting'
environment 'assetIndex', '{asset_index}'
environment 'assetDirectory', downloadAssets.output
environment 'nativesDirectory', extractNatives.output
environment 'tweakClass', 'baritone.launch.BaritoneTweaker'
environment 'BARITONE_AUTO_TEST', 'true'
}
}
}
@@ -106,7 +121,10 @@ repositories {
dependencies {
minecraft 'com.github.ImpactDevelopment:Vanilla:1.13.2'
runtime launchCompile('net.minecraft:launchwrapper:1.12')
runtime launchCompile('net.minecraft:launchwrapper:1.12') {
exclude module: 'lwjgl'
}
runtime launchCompile('org.ow2.asm:asm-debug-all:5.2')
runtime launchCompile('com.github.ImpactDevelopment:SimpleTweaker:1.2')
runtime launchCompile('org.spongepowered:mixin:0.7.11-SNAPSHOT') {
// Mixin includes a lot of dependencies that are too up-to-date
@@ -120,12 +138,10 @@ dependencies {
testImplementation 'junit:junit:4.12'
}
/*
mixin {
defaultObfuscationEnv searge
add sourceSets.launch, 'mixins.baritone.refmap.json'
}
*/
javadoc {
options.addStringOption('Xwerror', '-quiet') // makes the build fail on travis when there is a javadoc error