Skip to content

Commit 3790fc4

Browse files
devondragonclaude
andcommitted
Fix compatibility with vanniktech maven publish plugin 0.34.0
- Remove SonatypeHost import which no longer exists in 0.34.0 - Remove publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) call - Add mavenCentralPublishing=true and mavenCentralAutomaticPublishing=true to gradle.properties - The plugin now automatically configures Maven Central publishing via properties These changes address breaking changes in the vanniktech maven publish plugin version 0.34.0 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ffb86e3 commit 3790fc4

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ plugins {
99
id 'net.researchgate.release' version '3.1.0'
1010
}
1111

12-
import com.vanniktech.maven.publish.SonatypeHost
1312
import com.vanniktech.maven.publish.JavaLibrary
1413
import com.vanniktech.maven.publish.JavadocJar
1514

@@ -134,7 +133,7 @@ tasks.test {
134133
// Maven Central Publishing Tasks
135134
mavenPublishing {
136135
configure(new JavaLibrary(new JavadocJar.Javadoc(), true))
137-
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
136+
// publishToMavenCentral() is now configured via gradle.properties
138137
signAllPublications()
139138
coordinates("com.digitalsanctuary", "ds-spring-user-framework", project.version)
140139

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
version=3.2.4-SNAPSHOT
2+
mavenCentralPublishing=true
3+
mavenCentralAutomaticPublishing=true

0 commit comments

Comments
 (0)