Skip to content

Commit ea3b498

Browse files
Merge branch 'lavalink-devs:main' into minifiedjs
2 parents b9d0d80 + 246ffb3 commit ea3b498

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

build.gradle.kts

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

0 commit comments

Comments
 (0)