Skip to content

Commit 41d759d

Browse files
authored
Minor fixes in build.gradle (#219)
1 parent e708a4a commit 41d759d

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

build.gradle

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import java.time.LocalDate
2+
13
plugins {
24
id 'java-library'
35
id 'jacoco'
@@ -25,7 +27,7 @@ dependencies {
2527
implementation 'org.asynchttpclient:async-http-client:2.12.3'
2628
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2.2'
2729
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'
2931
}
3032

3133
task sourcesJar(type: Jar) {
@@ -62,19 +64,20 @@ jacocoTestReport {
6264
}
6365
check.dependsOn jacocoTestReport
6466

67+
java {
68+
withSourcesJar()
69+
withJavadocJar()
70+
}
71+
6572
license {
6673
header rootProject.file('codequality/HEADER')
67-
ext.year = Calendar.getInstance().get(Calendar.YEAR)
74+
ext.year = LocalDate.now().getYear()
6875
}
6976

7077
artifacts {
7178
archives javadocJar, sourcesJar
7279
}
7380

74-
ext.isReleaseVersion = hasProperty('isReleaseVersion') ? isReleaseVersion : false
75-
ext.ossrhUsername = hasProperty('ossrhUsername') ? ossrhUsername : 'dummyuser'
76-
ext.ossrhPassword = hasProperty('ossrhPassword') ? ossrhPassword : 'dummypass'
77-
7881
publishing {
7982
publications {
8083
mavenJava(MavenPublication) {
@@ -116,7 +119,7 @@ publishing {
116119
organization = 'Vonage'
117120
}
118121
developer {
119-
id = 'SMadani'
122+
id = 'smadani'
120123
name = 'Sina Madani'
121124
email = 'sina.madani@vonage.com'
122125
organization = 'Vonage'

publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
. ./secret.sh
44

5-
./gradlew uploadArchives \
5+
./gradlew clean publish --info --build-cache \
66
-PisReleaseVersion=1 \
77
-Psigning.keyId="${GPG_KEYID}" \
88
-Psigning.password="${GPG_PASSWORD}" \

0 commit comments

Comments
 (0)