File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -36,16 +36,18 @@ subprojects {
3636 targetCompatibility = JavaVersion .VERSION_1_8
3737 }
3838
39- configure<PublishingExtension > {
40- if (findProperty(" MAVEN_PASSWORD" ) != null && findProperty(" MAVEN_USERNAME" ) != null ) {
39+ configure<PublishingExtension > {
40+ val mavenUsername = findProperty(" MAVEN_USERNAME" ) as String?
41+ val mavenPassword = findProperty(" MAVEN_PASSWORD" ) as String?
42+ if (! mavenUsername.isNullOrEmpty() && ! mavenPassword.isNullOrEmpty()) {
4143 repositories {
4244 val snapshots = " https://maven.lavalink.dev/snapshots"
4345 val releases = " https://maven.lavalink.dev/releases"
4446
4547 maven(if (release) releases else snapshots) {
4648 credentials {
47- password = findProperty( " MAVEN_PASSWORD " ) as String?
48- username = findProperty( " MAVEN_USERNAME " ) as String?
49+ username = mavenUsername
50+ password = mavenPassword
4951 }
5052 }
5153 }
You can’t perform that action at this time.
0 commit comments