File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,36 @@ compileJava {
2020 options. release = 8
2121}
2222
23+ task sourcesJar (type : Jar ) {
24+ archiveBaseName= " bccore"
25+ archiveAppendix= " ${ vmrange} "
26+ archiveClassifier = ' sources'
27+ from sourceSets. main. allSource
28+ exclude(" **/*.so" )
29+ }
30+
31+ task javadocJar (type : Jar , dependsOn : javadoc) {
32+ archiveBaseName= " bccore"
33+ archiveAppendix= " ${ vmrange} "
34+ archiveClassifier = ' javadoc'
35+ from javadoc. destinationDir
36+ }
37+
38+ artifacts {
39+ archives jar
40+ archives javadocJar
41+ archives sourcesJar
42+ }
2343
2444publishing {
2545 publications {
2646 maven(MavenPublication ) {
2747 groupId = ' org.bouncycastle'
2848 artifactId = " bccore-$vmrange "
2949 from components. java
50+
51+ artifact(javadocJar)
52+ artifact(sourcesJar)
3053 }
3154 }
3255}
You can’t perform that action at this time.
0 commit comments