Skip to content

Commit

Permalink
workie ?????
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxikle committed Jun 13, 2024
1 parent ed18fa3 commit e2775db
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies {
implementation("com.google.code.gson:gson:2.11.0") // serializing
implementation("org.slf4j:slf4j-api:2.0.13") // logging
implementation("net.kyori:adventure-text-minimessage:4.17.0")// better components
implementation("mysql:mysql-connector-java:8.0.33") //mysql connector
implementation("mysql:mysql-connector-j:8.4.0") //mysql connector
compileOnly("org.projectlombok:lombok:1.18.32") // lombok
annotationProcessor("org.projectlombok:lombok:1.18.32") // lombok
implementation("org.tomlj:tomlj:1.1.1") // Config lang
Expand Down Expand Up @@ -95,13 +95,13 @@ publishing {
p = "no-value-provided"
}

val user = providers.gradleProperty("username").orElse(u)
val pass = providers.gradleProperty("password").orElse(p)
val user = providers.gradleProperty("username").orElse(u).get()
val pass = providers.gradleProperty("password").orElse(p).get()

println("pass: " + pass.isPresent + " | user: " + user.isPresent)
println("pass: $pass | user: $user")
credentials {
username = user.getOrElse("no-value-provided")
password = pass.getOrElse("no-value-provided")
username = user
password = pass
}
}
}
Expand Down

0 comments on commit e2775db

Please sign in to comment.