Skip to content

Commit 8cd6600

Browse files
committed
Released 3.2 final
1 parent 660f0ab commit 8cd6600

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ext {
66

77
allprojects {
88
ext {
9-
isSnapshot = true
9+
isSnapshot = false
1010
fjBaseVersion = "3.2"
1111

1212
snapshotAppendix = "-SNAPSHOT"

core/build.gradle

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
2553
uploadArchives {
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)

0 commit comments

Comments
 (0)