Skip to content

Commit 5ef433c

Browse files
committed
Disabled properties because they do not work in GitHub
1 parent 6aea8cf commit 5ef433c

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

build.gradle

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -184,19 +184,12 @@ publishing {
184184
//after publishing, go to https://s01.oss.sonatype.org, log in, close the staged repo, and release it if everything worked out
185185
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
186186
credentials {
187-
//uses keys and passwords declared in userhome/.gradle/gradle.properties
188-
if (System.getenv("ossrhUsername") != null) {
189-
username = System.getenv("ossrhUsername") as String
190-
} else {
191-
username = property("ossrhUsername") as String
192-
}
193-
//username = (System.getenv("ossrhUsername") ?: property("ossrhUsername")) as String
194-
if (System.getenv("ossrhPassword") != null) {
195-
password = System.getenv("ossrhPassword") as String
196-
} else {
197-
password = property("ossrhPassword") as String
198-
}
199-
//password = (System.getenv("ossrhPassword") ?: property("ossrhPassword")) as String
187+
//uses keys and passwords declared in userhome/.gradle/gradle.properties, works locally
188+
//username = property("ossrhUsername") as String
189+
//password = property("ossrhPassword") as String
190+
//uses environment variables declared in yml file which passes GitHub secrets to it
191+
username = System.getenv("MAVEN_USERNAME")
192+
password = System.getenv("MAVEN_PASSWORD")
200193
}
201194
}
202195
}

0 commit comments

Comments
 (0)