Skip to content

Commit

Permalink
Clean up release scripts in GitHub actions
Browse files Browse the repository at this point in the history
Having a hard time getting the release scripts to work with GitHub actions
so going to clean up for now and just write up a manual process. May
revisit an automated process for this later.
  • Loading branch information
brian-terczynski committed Jun 22, 2024
1 parent 8ef224d commit 1b0bd85
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 0 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
[versions]
kotlin = "2.0.0"
nexus-publish = "2.0.0-rc-1"

[libraries]
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
nexus-publish = { module = "io.github.gradle-nexus.publish-plugin:io.github.gradle-nexus.publish-plugin.gradle.plugin", version.ref = "nexus-publish" }

[plugins]
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
13 changes: 12 additions & 1 deletion library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,20 @@ kotlin {
}
}

// Create special release target that can handle special version label to local maven
// Create special release target that can handle special version label to local maven,
// and disable some publish*MavenLocal tasks so Jitpack doesn't generate a bunch of these
afterEvaluate {
val taskNames = this.gradle.startParameter.taskNames

project.tasks.forEach {
if (it.name.contains("publishJvmPublicationToMavenLocal")) {
it.enabled = false
}
if (it.name.contains("publishKotlinMultiplatformPublicationToMavenLocal")) {
it.enabled = false
}
}

publishing {
publications {
create<MavenPublication>("Release") {
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ dependencyResolutionManagement {

rootProject.name = "kotlin-testing-tools"
include(":library")
findProject(":library")?.name = "kotlin-testing-tools"

0 comments on commit 1b0bd85

Please sign in to comment.