-
Notifications
You must be signed in to change notification settings - Fork 2
misc: migrate to jreleaser #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 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" | ||
| } | ||
| } |
There was a problem hiding this comment.
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.
|
|
||
| /* | ||
| 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") | ||
| } |
There was a problem hiding this comment.
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.
| artifacts { | ||
| artifactOverride { | ||
| artifactId = "version-catalog" | ||
| jar = false | ||
| verifyPom = false // jreleaser doesn't understand toml packaging | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment: Nice!
Issue #, if available:
n/a
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.