Skip to content

Commit d6fcd53

Browse files
fix: release snapshot
1 parent 52985ac commit d6fcd53

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
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:publish
25+
./gradlew publishSnapshot

gradle-tasks/snapshot.gradle

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,5 @@ gradle.taskGraph.whenReady { taskGraph ->
99
}
1010

1111
tasks.register("publishSnapshot") {
12-
def snapshotModules = rootProject.subprojects.findAll { project ->
13-
project.version.toString().contains("-SNAPSHOT") && project.tasks.named("publish") != null
14-
}
15-
16-
if (!snapshotModules.isEmpty()) {
17-
dependsOn snapshotModules.collect { ":${it.name}:publish" }
18-
}
19-
20-
doLast {
21-
if (snapshotModules.isEmpty()) {
22-
println "❌ No snapshot modules to publish."
23-
} else {
24-
println "📦 Successfully published snapshots for: ${snapshotModules*.name}"
25-
}
26-
}
12+
dependsOn(":xap-sdk:publish")
2713
}

0 commit comments

Comments
 (0)