fix -sources jars

This commit is contained in:
NikkyAI 2018-02-10 20:06:42 +01:00 committed by Unknown
parent 1362147c70
commit 1ebf4852a4
4 changed files with 31 additions and 3 deletions

View File

@ -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 { reobf {
shadowJar { mappingType = 'SEARGE' } shadowJar { mappingType = 'SEARGE' }
} }

View File

@ -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 { reobf {
shadowJar { mappingType = 'SEARGE' } shadowJar { mappingType = 'SEARGE' }
} }

8
Jenkinsfile vendored
View File

@ -3,13 +3,17 @@ pipeline {
stages { stages {
stage("1.11.2") { stage("1.11.2") {
steps { 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' archive '1.11.2/build/libs/*jar'
} }
} }
stage("1.12.2") { stage("1.12.2") {
steps { 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' archive '1.12.2/build/libs/*jar'
} }
} }

View File

@ -8,7 +8,7 @@ subprojects {
apply plugin: "kotlin" apply plugin: "kotlin"
apply plugin: "idea" apply plugin: "idea"
if(name != "core") { if (name != "core") {
idea { idea {
module { module {
excludeDirs += [file("run")] excludeDirs += [file("run")]
@ -24,5 +24,6 @@ subprojects {
url "http://maven.shadowfacts.net/" url "http://maven.shadowfacts.net/"
} }
} }
} }
} }