Skip to content

Commit

Permalink
ext properties at publish-root.gradle does not work on kts.
Browse files Browse the repository at this point in the history
Maybe we should just remove publish-root.gradle.
  • Loading branch information
atsushieno committed Apr 12, 2024
1 parent a4ebf8a commit 9754014
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ktmidi-ci/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ android {
}
}

val repositoryId = if (ext.has("ossrhStagingRepositoryId")) ext["ossrhStagingRepositoryId"] else ""
val repositoryId: String? = System.getenv("OSSRH_STAGING_REPOSITORY_ID")
val moduleDescription = "Kotlin Multiplatform library for MIDI 1.0 and MIDI 2.0 - MIDI-CI support"
// copypasting
afterEvaluate {
Expand Down
2 changes: 1 addition & 1 deletion ktmidi-jvm-desktop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ compileTestKotlin {
kotlinOptions.jvmTarget = '11'
}

var repositoryId = ext.has("ossrhStagingRepositoryId") ? ext["ossrhStagingRepositoryId"] : ""
var repositoryId = System.getenv('OSSRH_STAGING_REPOSITORY_ID')
var moduleDescription = "Kotlin Multiplatform library for MIDI 1.0 and MIDI 2.0 - ALSA and RtMidi"
afterEvaluate {
publishing {
Expand Down
2 changes: 1 addition & 1 deletion ktmidi-native-ext/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ tasks {
}
}

val repositoryId = if (ext.has("ossrhStagingRepositoryId")) ext["ossrhStagingRepositoryId"] else ""
val repositoryId: String? = System.getenv("OSSRH_STAGING_REPOSITORY_ID")
val moduleDescription = "Kotlin Multiplatform library for MIDI 1.0 and MIDI 2.0 - Native specific"
// copypasting
afterEvaluate {
Expand Down
2 changes: 1 addition & 1 deletion ktmidi/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ android {
}
}

val repositoryId = if (ext.has("ossrhStagingRepositoryId")) ext["ossrhStagingRepositoryId"] else ""
val repositoryId: String? = System.getenv("OSSRH_STAGING_REPOSITORY_ID")
val moduleDescription = "Kotlin Multiplatform library for MIDI 1.0 and MIDI 2.0"
// copypasting
afterEvaluate {
Expand Down

0 comments on commit 9754014

Please sign in to comment.