Repository navigation
build(deps): bump Maven Publish to 0.34.0 #910
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
Changes from all commits
9918710
49bf350
0345d4c
899e7cc
5415ada
6971c4d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| import com.vanniktech.maven.publish.JavadocJar | ||
| import com.vanniktech.maven.publish.KotlinJvm | ||
| import com.vanniktech.maven.publish.MavenPublishBaseExtension | ||
| import com.vanniktech.maven.publish.SonatypeHost | ||
| import org.gradle.plugins.signing.SigningExtension | ||
|
|
||
| plugins { | ||
| id("com.vanniktech.maven.publish") | ||
|
|
@@ -23,14 +23,17 @@ repositories { | |
| mavenCentral() | ||
| } | ||
|
|
||
| extra["signingInMemoryKey"] = System.getenv("GPG_SIGNING_KEY") | ||
| extra["signingInMemoryKeyId"] = System.getenv("GPG_SIGNING_KEY_ID") | ||
| extra["signingInMemoryKeyPassword"] = System.getenv("GPG_SIGNING_PASSWORD") | ||
|
|
||
| configure<MavenPublishBaseExtension> { | ||
| if (!project.hasProperty("publishLocal")) { | ||
| signAllPublications() | ||
| publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) | ||
| configure<SigningExtension> { | ||
| useInMemoryPgpKeys( | ||
| System.getenv("GPG_SIGNING_KEY_ID"), | ||
| System.getenv("GPG_SIGNING_KEY"), | ||
| System.getenv("GPG_SIGNING_PASSWORD"), | ||
| ) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [P2] Commit a regression check for the new signing wiring Please turn the reported disposable-key smoke check into repeatable Gradle or shell coverage for this change. A small fixture should apply the production publication convention with a synthetic key, exercise the non- |
||
| } | ||
| publishToMavenCentral() | ||
| } | ||
|
|
||
| coordinates(project.group.toString(), project.name, project.version.toString()) | ||
|
|
@@ -67,6 +70,13 @@ configure<MavenPublishBaseExtension> { | |
| } | ||
| } | ||
|
|
||
| // Preserve Kotlin source paths when Maven Publish uses Gradle's Java sources task. | ||
| tasks.named<Jar>("sourcesJar") { | ||
| filesMatching("**/*.kt") { | ||
| path = "main/$path" | ||
| } | ||
| } | ||
|
|
||
| tasks.withType<Zip>().configureEach { | ||
| isZip64 = true | ||
| } | ||
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.
This replaces the credential-loading and Maven Central publication path, but the commit adds no Gradle or shell regression coverage that executes signing with a synthetic key and verifies the resulting local publication. The manual disposable-key validation is not repeatable in CI, so a future plugin or credential-wiring change could leave the protected release workflow unable to sign or publish artifacts without any pull-request check detecting it.
AGENTS.md reference: AGENTS.md:L41-L45
Useful? React with 👍 / 👎.