Skip to content

Commit 4924ad9

Browse files
Merge pull request #6 from thumbtack/release_cleanup
Release cleanup
2 parents 2793aac + 1b0bd85 commit 4924ad9

File tree

7 files changed

+13
-100
lines changed

7 files changed

+13
-100
lines changed

.github/scripts/commit_release.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/scripts/tag_release.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

gradle/libs.versions.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
[versions]
22
kotlin = "2.0.0"
3-
nexus-publish = "2.0.0-rc-1"
43

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

97
[plugins]
108
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }

library/build.gradle.kts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,20 @@ kotlin {
5555
}
5656
}
5757

58-
// Create special release target that can handle special version label to local maven
58+
// Create special release target that can handle special version label to local maven,
59+
// and disable some publish*MavenLocal tasks so Jitpack doesn't generate a bunch of these
5960
afterEvaluate {
6061
val taskNames = this.gradle.startParameter.taskNames
62+
63+
project.tasks.forEach {
64+
if (it.name.contains("publishJvmPublicationToMavenLocal")) {
65+
it.enabled = false
66+
}
67+
if (it.name.contains("publishKotlinMultiplatformPublicationToMavenLocal")) {
68+
it.enabled = false
69+
}
70+
}
71+
6172
publishing {
6273
publications {
6374
create<MavenPublication>("Release") {

scripts/release.sh

Lines changed: 0 additions & 29 deletions
This file was deleted.

settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ dependencyResolutionManagement {
1515

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

0 commit comments

Comments
 (0)