Skip to content

Commit 7a20caf

Browse files
committed
fix: correct plugin marker groupId for Sonatype publishing
1 parent 416c8a8 commit 7a20caf

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,19 @@ publishing {
9191
}
9292
}
9393

94+
// Fix the groupId for plugin marker publications after they're created
95+
afterEvaluate {
96+
publishing {
97+
publications {
98+
withType<MavenPublication> {
99+
if (name.endsWith("PluginMarkerMaven")) {
100+
groupId = "io.github.lsd-consulting"
101+
}
102+
}
103+
}
104+
}
105+
}
106+
94107
signing {
95108
if (project.findProperty("signingKey") != null) {
96109
// Use in-memory ascii-armored keys

0 commit comments

Comments
 (0)