-
Notifications
You must be signed in to change notification settings - Fork 174
/
Copy pathadditional-artifacts.gradle
34 lines (29 loc) · 1.17 KB
/
additional-artifacts.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
shadowJar {
classifier = 'all'
mergeServiceFiles()
def foundGroup = rootProject.findProperty('group')
def foundName = rootProject.name.replaceAll('-', '.')
def newBasePackage = "${foundGroup}.${foundName}"
relocate 'org.aopalliance', "${newBasePackage}.shaded.org.aopalliance"
relocate 'org.objectweb', "${newBasePackage}.shaded.org.objectweb"
relocate 'com.google', "${newBasePackage}.shaded.com.google"
relocate 'net.sf', "${newBasePackage}.shaded.net.sf"
relocate 'javax.inject', "${newBasePackage}.shaded.javax.inject"
relocate 'org.jclouds', "${newBasePackage}.shaded.org.jclouds"
relocate 'javax.inject', "${newBasePackage}.shaded.javax.inject"
relocate 'javax.annotation', "${newBasePackage}.shaded.javax.annotation"
relocate 'javax.ws.rs', "${newBasePackage}.shaded.javax.ws.rs"
relocate 'javax.xml.bind', "${newBasePackage}.shaded.javax.xml.bind"
}
task sourcesJar(type: Jar) {
classifier 'sources'
from sourceSets.main.allSource
}
task docsJar(type: Jar, dependsOn: javadoc) {
classifier 'javadoc'
from javadoc.destinationDir
}
task testsJar(type: Jar) {
classifier 'tests'
from sourceSets.test.output
}