File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 66
77allprojects {
88 ext {
9- isSnapshot = true
9+ isSnapshot = false
1010 fjBaseVersion = " 3.2"
1111
1212 snapshotAppendix = " -SNAPSHOT"
Original file line number Diff line number Diff line change @@ -22,11 +22,42 @@ dependencies {
2222 testCompile " junit:junit:4.11"
2323}
2424
25+ task javadocJar (type : Jar , dependsOn : javadoc) {
26+ classifier = ' javadoc'
27+ from " build/docs/javadoc"
28+ }
29+
30+ task sourcesJar (type : Jar ) {
31+ from sourceSets. main. allSource
32+ classifier = ' sources'
33+ }
34+
35+ artifacts {
36+ archives jar
37+ archives javadocJar
38+ archives sourcesJar
39+ }
40+
41+ Boolean doSigning () {
42+ signingEnabled. trim() == " true"
43+ }
44+
45+
46+ if (doSigning()) {
47+ apply plugin : " signing"
48+ signing {
49+ sign configurations. archives
50+ }
51+ }
52+
2553uploadArchives {
2654 repositories {
2755 mavenDeployer {
2856 // used for signing the artifacts, no need to sign snapshot, so leave out for now
2957// beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
58+ if (doSigning()) {
59+ beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
60+ }
3061
3162 repository(url : sonatypeUploadUrl) {
3263 authentication(userName : sonatypeUsername, password : sonatypePassword)
You can’t perform that action at this time.
0 commit comments