diff --git a/1.11.2/build.gradle b/1.11.2/build.gradle index 1808215..b1fbb43 100644 --- a/1.11.2/build.gradle +++ b/1.11.2/build.gradle @@ -73,6 +73,18 @@ processResources { } +sourceJar { + classifier 'sources' + // copy all the minecraftforge specific classes + from sourceSets.main.allSource + + // copy everything else except the mcmod.info + from (project(":core").sourceSets.main.allSource) { + exclude 'mcmod.info' + } +} + + reobf { shadowJar { mappingType = 'SEARGE' } } diff --git a/1.12.2/build.gradle b/1.12.2/build.gradle index c071fa1..663d187 100644 --- a/1.12.2/build.gradle +++ b/1.12.2/build.gradle @@ -73,6 +73,17 @@ processResources { } +sourceJar { + classifier 'sources' + // copy all the minecraftforge specific classes + from sourceSets.main.allSource + + // copy everything else except the mcmod.info + from (project(":core").sourceSets.main.allSource) { + exclude 'mcmod.info' + } +} + reobf { shadowJar { mappingType = 'SEARGE' } } diff --git a/Jenkinsfile b/Jenkinsfile index deb8b1d..6033692 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,13 +3,17 @@ pipeline { stages { stage("1.11.2") { steps { - sh './gradlew :1.11.2:setupCiWorkspace :1.11.2:clean :1.11.2:build' + sh './gradlew :1.11.2:setupCiWorkspace' + sh './gradlew :1.11.2:clean' + sh './gradlew :1.11.2:build' archive '1.11.2/build/libs/*jar' } } stage("1.12.2") { steps { - sh './gradlew :1.12.2:setupCiWorkspace :1.12.2:clean :1.12.2:build' + sh './gradlew :1.12.2:setupCiWorkspace' + sh './gradlew :1.12.2:clean' + sh './gradlew :1.12.2:build' archive '1.12.2/build/libs/*jar' } } diff --git a/build.gradle b/build.gradle index 68253b2..90e1a4b 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ subprojects { apply plugin: "kotlin" apply plugin: "idea" - if(name != "core") { + if (name != "core") { idea { module { excludeDirs += [file("run")] @@ -24,5 +24,6 @@ subprojects { url "http://maven.shadowfacts.net/" } } + } } \ No newline at end of file