From c726a1973fd611e7d44af656ad08bb50550be4e0 Mon Sep 17 00:00:00 2001 From: LexManos Date: Thu, 26 May 2016 14:49:00 -0700 Subject: [PATCH] Fix your broken source path that is breaking S2S You're copying the package 'cofh.api' into the folder 'api' which is causing things to freak out because it sees code in the wrong package. --- build.gradle | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index 714e1bc2c..e478c8356 100755 --- a/build.gradle +++ b/build.gradle @@ -31,8 +31,6 @@ archivesBaseName = "forestry_" + mcversion ext.dirDest = './build/dist' ext.dirLang = "./lang" -ext.apiRedstoneFlux = "./src/api/java/cofh" - // java version sourceCompatibility = 1.8 targetCompatibility = 1.8 @@ -49,9 +47,6 @@ minecraft { sourceSets { main { - java { - srcDir project.apiRedstoneFlux - } resources { srcDir project.dirLang } @@ -108,14 +103,17 @@ allprojects { } jar { - // Copy various READMEs and Licensing files into the jar - into ('cofh/api') { - from project.apiRedstoneFlux + "/LICENSE - LGPLv3.txt" + // Copy redstone api into the jar, should shade this as a maven dep... + from (sourceSets.api.allSource) { + include 'cofh/**/*.txt' + } + from (sourceSets.api.output.classesDir) { + include 'cofh/**/*.*' } } task sourcesJar(type: Jar) { - from sourceSets.main.allJava + from zipTree('build/retromapping/retromappedReplacedMain.jar') // Not sure if this is how Abrar designed it, but grab the remapped src classifier = 'sources' }