Skip to content

Commit

Permalink
Add snapshotAll task
Browse files Browse the repository at this point in the history
  • Loading branch information
turchenkoalex committed Jan 14, 2025
1 parent a8bed6a commit 4172b17
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
GPG_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
run: ./gradlew devSnapshot printDevSnapshotReleaseNote
run: ./gradlew snapshotAll printDevSnapshotReleaseNote
detekt:
name: Detekt
runs-on: ubuntu-latest
Expand Down
10 changes: 9 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ tasks.withType<PublishToMavenRepository> {
}
}

val snapshotAllTask = tasks.register("snapshotAll") {
group = "publishing"
}

subprojects {
if (this.name in publishProjects) {
apply(plugin = "java-library")
Expand Down Expand Up @@ -169,6 +173,10 @@ subprojects {
useInMemoryPgpKeys(settingsProvider.gpgSigningKey, settingsProvider.gpgSigningPassword)
sign(publishing.publications["mavenJava"])
}

snapshotAllTask.configure {
dependsOn(tasks.getByName("publishToSonatype"))
}
}
}

Expand All @@ -191,7 +199,7 @@ tasks.register("printDevSnapshotReleaseNote") {
sanitizedVersion = project.sanitizeVersion()
)
}
dependsOn(tasks.getByName("devSnapshot"))
dependsOn(snapshotAllTask)
}


Expand Down
1 change: 0 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ swagger = "2.2.27"
[plugins]
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
jmh = { id = "me.champeau.jmh", version = "0.7.2" }
jreleaser = { id ="org.jreleaser", version.ref = "jreleaser" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlinx-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" }
Expand Down

0 comments on commit 4172b17

Please sign in to comment.