Skip to content

Commit 45a22a1

Browse files
committed
fix(jreleaser): downgrade to 1.18.0 which worked in v0.5.0
- JReleaser 1.21.0 has a bug with immutableRelease being null - Revert to 1.18.0 which successfully released v0.5.0 - Remove afterEvaluate wrapper and restore working config
1 parent 6820491 commit 45a22a1

2 files changed

Lines changed: 57 additions & 58 deletions

File tree

build-logic/src/main/kotlin/de.brendamour.java-conventions.gradle.kts

Lines changed: 56 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -188,70 +188,69 @@ tasks.test {
188188
finalizedBy(tasks.jacocoTestReport)
189189
}
190190

191-
afterEvaluate {
192-
jreleaser {
193-
gitRootSearch.set(true)
194-
195-
project {
191+
jreleaser {
192+
gitRootSearch.set(true)
193+
194+
project {
195+
name.set("jpasskit")
196+
description.set("Java Library for Apple PassKit Web Service")
197+
website.set("https://github.com/drallgood/jpasskit")
198+
license.set("Apache-2.0")
199+
authors.set(listOf("Patrice Brend'amour"))
200+
copyright.set("2012-${Calendar.getInstance().get(Calendar.YEAR)} Patrice Brend'amour")
201+
}
202+
203+
release {
204+
github {
205+
repoOwner.set("drallgood")
196206
name.set("jpasskit")
197-
description.set("Java Library for Apple PassKit Web Service")
198-
license.set("Apache-2.0")
199-
authors.set(listOf("Patrice Brend'amour"))
200-
copyright.set("2012-${Calendar.getInstance().get(Calendar.YEAR)} Patrice Brend'amour")
201-
}
202-
203-
release {
204-
github {
205-
repoOwner.set("drallgood")
206-
name.set("jpasskit")
207-
overwrite.set(true)
208-
skipTag.set(true)
209-
changelog {
210-
preset.set("conventional-commits")
211-
skipMergeCommits.set(true)
212-
}
207+
overwrite.set(true)
208+
skipTag.set(true)
209+
changelog {
210+
preset.set("conventional-commits")
211+
skipMergeCommits.set(true)
213212
}
214213
}
215-
216-
signing {
217-
active.set(Active.ALWAYS)
218-
armored.set(true)
219-
command {
220-
executable.set("gpg")
221-
args.set(listOf("--batch", "--yes", "--pinentry-mode", "loopback"))
222-
keyName.set("9474B9FCBDF93BEE7CC4B69B4CE3C3B7A5E5FCC2")
223-
}
224-
mode.set(Signing.Mode.COMMAND)
214+
}
215+
216+
signing {
217+
active.set(Active.ALWAYS)
218+
armored.set(true)
219+
command {
220+
executable.set("gpg")
221+
args.set(listOf("--batch", "--yes", "--pinentry-mode", "loopback"))
222+
keyName.set("9474B9FCBDF93BEE7CC4B69B4CE3C3B7A5E5FCC2")
225223
}
226-
227-
deploy {
228-
maven {
229-
mavenCentral {
230-
create("release-deploy") {
231-
active.set(Active.RELEASE)
232-
url.set("https://central.sonatype.com/api/v1/publisher")
233-
stagingRepositories.set(
234-
listOf(
235-
layout.buildDirectory.dir("staging-deploy").get().asFile.absolutePath
236-
)
224+
mode.set(Signing.Mode.COMMAND)
225+
}
226+
227+
deploy {
228+
maven {
229+
mavenCentral {
230+
create("release-deploy") {
231+
active.set(Active.RELEASE)
232+
url.set("https://central.sonatype.com/api/v1/publisher")
233+
stagingRepositories.set(
234+
listOf(
235+
layout.buildDirectory.dir("staging-deploy").get().asFile.absolutePath
237236
)
238-
applyMavenCentralRules.set(true)
239-
}
237+
)
238+
applyMavenCentralRules.set(true)
240239
}
241-
nexus2 {
242-
create("snapshot-deploy") {
243-
active.set(Active.SNAPSHOT)
244-
url.set("https://central.sonatype.com/api/v1/publisher")
245-
snapshotUrl.set("https://central.sonatype.com/repository/maven-snapshots")
246-
stagingRepositories.set(
247-
listOf(
248-
layout.buildDirectory.dir("staging-deploy").get().asFile.absolutePath
249-
)
240+
}
241+
nexus2 {
242+
create("snapshot-deploy") {
243+
active.set(Active.SNAPSHOT)
244+
url.set("https://central.sonatype.com/api/v1/publisher")
245+
snapshotUrl.set("https://central.sonatype.com/repository/maven-snapshots")
246+
stagingRepositories.set(
247+
listOf(
248+
layout.buildDirectory.dir("staging-deploy").get().asFile.absolutePath
250249
)
251-
applyMavenCentralRules.set(true)
252-
closeRepository.set(true)
253-
snapshotSupported.set(true)
254-
}
250+
)
251+
applyMavenCentralRules.set(true)
252+
closeRepository.set(true)
253+
snapshotSupported.set(true)
255254
}
256255
}
257256
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ org-slf4j-slf4j-api = "2.0.17"
1919
org-testng-testng = "7.12.0"
2020
com-benjaminsproule-license = "0.16.2"
2121
io-github-gradle-nexus-publish-plugin = "2.0.0"
22-
org-jreleaser = "1.21.0"
22+
org-jreleaser = "1.18.0"
2323
jacoco = "0.8.13"
2424

2525
[libraries]

0 commit comments

Comments
 (0)