Skip to content

Commit 95f255e

Browse files
jamesarichCopilot
andcommitted
fix: add -SNAPSHOT suffix for snapshot CI publishing
- Move version to gradle.properties (0.1.2) as single source of truth - Append -SNAPSHOT conditionally via -PsnapshotBuild property - Pass -PsnapshotBuild in snapshot workflow Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent fba0258 commit 95f255e

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
CENTRAL_PORTAL_PASSWORD: ${{ secrets.CENTRAL_PORTAL_PASSWORD }}
3030
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
3131
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
32-
run: ./gradlew :plugin:publishAllPublicationsToCentralSnapshots
32+
run: ./gradlew :plugin:publishAllPublicationsToCentralSnapshots -PsnapshotBuild

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
org.gradle.jvmargs=-Xmx2g -Dfile.encoding=UTF-8
22
org.gradle.parallel=true
3+
version=0.1.2

plugin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ plugins {
2424
}
2525

2626
group = "org.meshtastic.flatpak"
27-
version = "0.1.1"
27+
if (project.hasProperty("snapshotBuild")) version = "$version-SNAPSHOT"
2828

2929
java {
3030
toolchain {

0 commit comments

Comments
 (0)