File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change
1
+ import java.time.LocalDate
2
+
1
3
plugins {
2
4
id ' java-library'
3
5
id ' jacoco'
@@ -25,7 +27,7 @@ dependencies {
25
27
implementation ' org.asynchttpclient:async-http-client:2.12.3'
26
28
implementation ' com.fasterxml.jackson.core:jackson-databind:2.13.2.2'
27
29
implementation ' commons-codec:commons-codec:1.15'
28
- implementation ' org.bitbucket.b_c:jose4j:0.7.11 '
30
+ implementation ' org.bitbucket.b_c:jose4j:0.7.12 '
29
31
}
30
32
31
33
task sourcesJar (type : Jar ) {
@@ -62,19 +64,20 @@ jacocoTestReport {
62
64
}
63
65
check. dependsOn jacocoTestReport
64
66
67
+ java {
68
+ withSourcesJar()
69
+ withJavadocJar()
70
+ }
71
+
65
72
license {
66
73
header rootProject. file(' codequality/HEADER' )
67
- ext. year = Calendar . getInstance (). get( Calendar . YEAR )
74
+ ext. year = LocalDate . now (). getYear( )
68
75
}
69
76
70
77
artifacts {
71
78
archives javadocJar, sourcesJar
72
79
}
73
80
74
- ext. isReleaseVersion = hasProperty(' isReleaseVersion' ) ? isReleaseVersion : false
75
- ext. ossrhUsername = hasProperty(' ossrhUsername' ) ? ossrhUsername : ' dummyuser'
76
- ext. ossrhPassword = hasProperty(' ossrhPassword' ) ? ossrhPassword : ' dummypass'
77
-
78
81
publishing {
79
82
publications {
80
83
mavenJava(MavenPublication ) {
@@ -116,7 +119,7 @@ publishing {
116
119
organization = ' Vonage'
117
120
}
118
121
developer {
119
- id = ' SMadani '
122
+ id = ' smadani '
120
123
name = ' Sina Madani'
121
124
email = ' sina.madani@vonage.com'
122
125
organization = ' Vonage'
Original file line number Diff line number Diff line change 2
2
3
3
. ./secret.sh
4
4
5
- ./gradlew uploadArchives \
5
+ ./gradlew clean publish --info --build-cache \
6
6
-PisReleaseVersion=1 \
7
7
-Psigning.keyId=" ${GPG_KEYID} " \
8
8
-Psigning.password=" ${GPG_PASSWORD} " \
You can’t perform that action at this time.
0 commit comments