Merge pull request #335 from way2muchnoise/mc1.10
add api and deobf artifact
This commit is contained in:
19
build.gradle
19
build.gradle
@@ -72,6 +72,22 @@ processResources {
|
||||
}
|
||||
}
|
||||
|
||||
task deobfJar(type: Jar) {
|
||||
from sourceSets.main.output
|
||||
classifier 'deobf'
|
||||
}
|
||||
|
||||
task apiJar(type: Jar, dependsOn: 'sourceMainJava') {
|
||||
from sourceSets.main.allSource
|
||||
from sourceSets.main.output
|
||||
include 'refinedstorage/api/**/*'
|
||||
classifier 'api'
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives deobfJar, apiJar
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
MyPublication(MavenPublication) {
|
||||
@@ -79,6 +95,9 @@ publishing {
|
||||
groupId = project.group
|
||||
artifactId = project.archivesBaseName
|
||||
version = project.version + '-' + System.getenv('TRAVIS_BUILD_NUMBER')
|
||||
artifact source: jar, classifier: 'obf', extension: 'jar'
|
||||
artifact deobfJar
|
||||
artifact apiJar
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user