Skip to content

Commit d2b920d

Browse files
Fix github build
1 parent 513f8ae commit d2b920d

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

build.gradle

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ project.ext.jsr250_version = '1.0'
3838
project.ext.jsr305_version = '3.0.2'
3939
project.ext.trove4j_version = '3.0.3'
4040

41+
if (!project.hasProperty('ossrhUsername')) {
42+
ext.ossrhUsername = "dummy"
43+
ext.ossrhPassword = "dummy"
44+
}
45+
4146
nexusPublishing {
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
}

integration/boofcv-android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)