Skip to content

Commit

Permalink
Replace toLowerCase in kts
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Apr 15, 2023
1 parent ae2117c commit e9dbe67
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.jetbrains.conventions

import org.gradle.kotlin.dsl.support.serviceOf
import java.util.Locale

/**
* Utility for downloading and installing a Maven binary.
Expand Down Expand Up @@ -43,7 +44,7 @@ val mavenCliSetupExtension =
mavenInstallDir.convention(layout.buildDirectory.dir("apache-maven"))

val isWindowsProvider =
providers.systemProperty("os.name").map { "win" in it.toLowerCase() }
providers.systemProperty("os.name").map { "win" in it.lowercase(Locale.getDefault()) }

mvn.convention(
providers.zip(mavenInstallDir, isWindowsProvider) { mavenInstallDir, isWindows ->
Expand Down

0 comments on commit e9dbe67

Please sign in to comment.