Skip to content

Commit 2dfeaf1

Browse files
fix: release snapshot
1 parent e1dab5d commit 2dfeaf1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/release-sdk-snapshot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
2323
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
2424
run: |
25-
./gradlew :xap-sdk:publishSnapshots
25+
./gradlew publishSnapshot

gradle-tasks/snapshot.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
// We're setting the root project to a dummy version (1.0.0-SNAPSHOT) to instruct the plugin to use the snapshot repo.
33
// This version won't be published. The publishSnapshots task will publish submodules with the defined version in their gradle.properties
44
gradle.taskGraph.whenReady { taskGraph ->
5-
if (taskGraph.hasTask(":publishSnapshots")) {
5+
if (taskGraph.hasTask(":publishSnapshot")) {
66
rootProject.version = "1.0.0-SNAPSHOT"
77
println "📌 Setting root project version to 1.0.0-SNAPSHOT for publishSnapshots task"
88
}
99
}
1010

11-
tasks.register("publishSnapshots") {
11+
tasks.register("publishSnapshot") {
1212
def snapshotModules = rootProject.subprojects.findAll { project ->
1313
project.version.toString().contains("-SNAPSHOT") && project.tasks.named("publish") != null
1414
}

0 commit comments

Comments
 (0)