File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
integration/boofcv-android Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ project.ext.jsr250_version = '1.0'
3838project. ext. jsr305_version = ' 3.0.2'
3939project. ext. trove4j_version = ' 3.0.3'
4040
41+ if (! project. hasProperty(' ossrhUsername' )) {
42+ ext. ossrhUsername = " dummy"
43+ ext. ossrhPassword = " dummy"
44+ }
45+
4146nexusPublishing {
4247 repositories {
4348 sonatype {
@@ -316,12 +321,6 @@ subprojects {
316321 if (! project. tasks. publish. enabled)
317322 return
318323
319- // if Maven central isn't setup in ~/.gradle/gradle.properties fill in these variables to make it happy
320- if (! project. hasProperty(' ossrhUsername' )) {
321- ext. ossrhUsername = " dummy"
322- ext. ossrhPassword = " dummy"
323- }
324-
325324 publishing {
326325 publications {
327326 mavenJava(MavenPublication ) {
@@ -364,7 +363,7 @@ subprojects {
364363 }
365364 }
366365
367- if (ext . ossrhPassword != " dummy " ) {
366+ if (project . hasProperty( ' ossrhUsername ' ) ) {
368367 signing { sign publishing. publications. mavenJava }
369368 }
370369}
Original file line number Diff line number Diff line change @@ -126,8 +126,8 @@ afterEvaluate {
126126 }
127127 }
128128
129- if (ext . ossrhPassword != " dummy " ) {
130- signing { sign publishing. publications }
129+ if (project . hasProperty( ' ossrhUsername ' ) ) {
130+ signing { sign publishing. publications. mavenJava }
131131 }
132132 }
133133}
You can’t perform that action at this time.
0 commit comments