Another attempt at obf jar building
This commit is contained in:
17
build.gradle
17
build.gradle
@@ -72,18 +72,9 @@ processResources {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task obfJar(type: Jar) {
|
|
||||||
from sourceSets.main.output
|
|
||||||
classifier 'obf'
|
|
||||||
}
|
|
||||||
|
|
||||||
reobf {
|
|
||||||
reobf obfJar
|
|
||||||
}
|
|
||||||
|
|
||||||
task deobfJar(type: Jar) {
|
task deobfJar(type: Jar) {
|
||||||
from sourceSets.main.output
|
from sourceSets.main.output
|
||||||
classifier 'deobf'
|
classifier = 'deobf'
|
||||||
}
|
}
|
||||||
|
|
||||||
task apiJar(type: Jar, dependsOn: 'sourceMainJava') {
|
task apiJar(type: Jar, dependsOn: 'sourceMainJava') {
|
||||||
@@ -94,7 +85,9 @@ task apiJar(type: Jar, dependsOn: 'sourceMainJava') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
archives obfJar, deobfJar, apiJar
|
archives deobfJar
|
||||||
|
archives apiJar
|
||||||
|
archives jar
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
@@ -103,7 +96,7 @@ publishing {
|
|||||||
groupId = project.group
|
groupId = project.group
|
||||||
artifactId = project.archivesBaseName
|
artifactId = project.archivesBaseName
|
||||||
version = project.version + '-' + System.getenv('TRAVIS_BUILD_NUMBER')
|
version = project.version + '-' + System.getenv('TRAVIS_BUILD_NUMBER')
|
||||||
artifact obfJar
|
artifact jar
|
||||||
artifact deobfJar
|
artifact deobfJar
|
||||||
artifact apiJar
|
artifact apiJar
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user