Skip to content

Commit

Permalink
build: replace deprecated methods to[Low|Upp]erCase with [`lo…
Browse files Browse the repository at this point in the history
…w`|`upp`]`ercase`
  • Loading branch information
DanySK committed Apr 13, 2023
1 parent dba636e commit 58e692d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ publishOnCentral {
projectLongName.set(info.longName)
projectUrl.set(info.website)
scmConnection.set(info.scm)
repository("https://maven.pkg.github.com/DanySK/$name".toLowerCase()) {
repository("https://maven.pkg.github.com/DanySK/$name".lowercase()) {
user.set("danysk")
password.set(System.getenv("GITHUB_TOKEN"))
}
Expand Down Expand Up @@ -119,7 +119,7 @@ val registerCredentials = tasks.register("registerGradlePluginPortalCredentials"
doLast {
listOf("gradle.publish.key", "gradle.publish.secret").forEach {
if (!(project.hasProperty(it) or System.getenv().containsKey(it))) {
val bashName = it.toUpperCase().replace(".", "_")
val bashName = it.uppercase().replace(".", "_")
System.getProperties().setProperty(
it,
System.getenv(bashName) ?: throw IllegalStateException(
Expand Down

0 comments on commit 58e692d

Please sign in to comment.