Skip to content

Commit

Permalink
Fix platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Nov 18, 2021
1 parent 95c069a commit 6762c62
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions buildSrc/src/main/kotlin/PublishingHelpers.kt
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ inline fun Project.setupPublishing(
setUrl("https://oss.sonatype.org/service/local/staging/deploy/maven2")

credentials {
username = System.getenv("SONATYPE_USER")
password = System.getenv("SONATYPE_KEY")
username = System.getenv("SONATYPE_USER") ?: rootProject.properties["sonatype.user"]?.toString()
password =
System.getenv("SONATYPE_KEY") ?: rootProject.properties["sonatype.password"]?.toString()
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions runtime/gradle/compile-native-multiplatform.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ kotlin {
targets {
def hostOs = System.getProperty("os.name")

def linuxEnabled = hostOs == "Mac OS X"
def macosEnabled = hostOs == "Linux"
def linuxEnabled = hostOs == "Linux"
def macosEnabled = hostOs.startsWith("Mac")
def winEnabled = hostOs.startsWith("Windows")

project.ext.isLinuxHost = linuxEnabled
Expand Down
4 changes: 2 additions & 2 deletions runtime/gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ publishing {
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2"

credentials {
username = System.getenv("SONATYPE_USER")
password = System.getenv("SONATYPE_KEY")
username = System.getenv("SONATYPE_USER") ?: rootProject.properties.get("sonatype.user")?.toString()
password = System.getenv("SONATYPE_KEY") ?: rootProject.properties.get("sonatype.password")?.toString()
}
}
}
Expand Down

0 comments on commit 6762c62

Please sign in to comment.