File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 9393 command : ./gradlew javadoc checkstyleMain
9494 - run :
9595 name : Publish to local maven
96- command : ./gradlew publishToMavenLocal
96+ command : ./gradlew publishToMavenLocal -P LD_SKIP_SIGNING=1
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ checkstyle {
4343
4444publishing {
4545 publications {
46- mavenJava(MavenPublication ) { publication ->
46+ mavenJava(MavenPublication ) {
4747 from components. java
4848
4949 artifactId = ' launchdarkly-openfeature-serverprovider'
@@ -80,6 +80,19 @@ publishing {
8080 }
8181}
8282
83+ signing {
84+ sign publishing. publications. mavenJava
85+ }
86+
87+ tasks. withType(Sign ) { t ->
88+ onlyIf { ! shouldSkipSigning() } // so we can build jars for testing in CI
89+ }
90+
91+ def shouldSkipSigning () {
92+ return " 1" . equals(project. findProperty(" LD_SKIP_SIGNING" )) ||
93+ " 1" . equals(System . getenv(" LD_SKIP_SIGNING" ))
94+ }
95+
8396nexusPublishing {
8497 clientTimeout = java.time.Duration . ofMinutes(2 ) // we've seen extremely long delays in creating repositories
8598 repositories {
You can’t perform that action at this time.
0 commit comments