Skip to content

Commit 566019a

Browse files
alexey-pelykhclaude
andcommitted
(fix) set root project version for JReleaser snapshot detection
JReleaser reads the version from the root Gradle project. Without it, the version defaults to 'unspecified', causing JReleaser to treat the build as a release and disable the nexus2 snapshot deployer. Also restores non-deprecated jreleaser.yml keys (the deprecated keys were not the root cause) and keeps snapshotSupported: true. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2a48560 commit 566019a

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ plugins {
66
alias(libs.plugins.jreleaser)
77
}
88

9+
version = findProperty("uvccamera.version") as String? ?: "0.0.0-SNAPSHOT"
10+
911
jreleaser {
1012
configFile = file("jreleaser.yml")
1113
}

jreleaser.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ project:
77
license: Apache-2.0
88
links:
99
homepage: https://uvccamera.org
10-
java:
11-
groupId: org.uvccamera
12-
version: 17
10+
languages:
11+
java:
12+
groupId: org.uvccamera
13+
version: 17
1314
versionPattern: CUSTOM
1415

1516
release:
@@ -18,7 +19,8 @@ release:
1819

1920
signing:
2021
active: ALWAYS
21-
armored: true
22+
pgp:
23+
armored: true
2224

2325
deploy:
2426
maven:

0 commit comments

Comments
 (0)