Skip to content

Conversation

@0marperez
Copy link
Contributor

@0marperez 0marperez commented Jul 15, 2025

Issue #, if available:
n/a

Description of changes:

  • Migrated to jreleaser plugin
  • Added task to create placeholder JAR for version catalogs

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@0marperez 0marperez marked this pull request as ready for review July 15, 2025 17:09
@0marperez 0marperez requested a review from a team as a code owner July 15, 2025 17:09
Comment on lines 23 to 32
private object EnvironmentVariables {
object JReleaser {
const val GROUP_ID = "JRELEASER_PROJECT_JAVA_GROUP_ID"
const val MAVEN_CENTRAL_USERNAME = "JRELEASER_MAVENCENTRAL_USERNAME"
const val MAVEN_CENTRAL_TOKEN = "JRELEASER_MAVENCENTRAL_TOKEN"
const val GPG_PASSPHRASE = "JRELEASER_GPG_PASSPHRASE"
const val GPG_PUBLIC_KEY = "JRELEASER_GPG_PUBLIC_KEY"
const val GPG_SECRET_KEY = "JRELEASER_GPG_SECRET_KEY"
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Isn't everything in this file already specific to JReleaser? Seems like we could just remove the object JReleaser wrapper and keep the env vars inside the top-level object like we did with properties.

Comment on lines 146 to 155

/*
Creates a placeholder JAR for the version catalog
The `version-catalog` plugin doesn't generate one because it isn't needed but JReleaser requires a jar
https://docs.gradle.org/current/userguide/version_catalogs.html#sec:version-catalog-plugin
*/
tasks.register<Jar>("versionCatalogJar") {
archiveBaseName.set("version-catalog")
from("gradle/libs.versions.toml")
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: As discussed offline, let's try to publish this version catalog without the JAR wrapper.

Comment on lines +186 to +192
artifacts {
artifactOverride {
artifactId = "version-catalog"
jar = false
verifyPom = false // jreleaser doesn't understand toml packaging
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment: Nice!

@0marperez 0marperez merged commit 6ec8cda into main Jul 18, 2025
5 checks passed
@0marperez 0marperez deleted the jreleaser branch July 18, 2025 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants