Skip to content

Commit

Permalink
Merge pull request #6 from thumbtack/release_cleanup
Browse files Browse the repository at this point in the history
Release cleanup
  • Loading branch information
brian-terczynski authored Jun 22, 2024
2 parents 2793aac + 1b0bd85 commit 4924ad9
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 100 deletions.
24 changes: 0 additions & 24 deletions .github/scripts/commit_release.sh

This file was deleted.

6 changes: 0 additions & 6 deletions .github/scripts/tag_release.sh

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/release.yml

This file was deleted.

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
29 changes: 0 additions & 29 deletions scripts/release.sh

This file was deleted.

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 4924ad9

Please sign in to comment.