Skip to content

Commit 0bb088f

Browse files
authored
replaced underscores with dashes in Group ID, to match Gradle Plugin ID (#18)
Add Maven relocation information
1 parent 93669f6 commit 0bb088f

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
idea
66
}
77

8-
group = "dev.adamko.kotlin.binary_compatibility_validator"
8+
group = "dev.adamko.kotlin.binary-compatibility-validator"
99
project.version = object {
1010
private val gitVersion = project.gitVersion
1111
override fun toString(): String = gitVersion.get()

modules/bcv-gradle-plugin/build.gradle.kts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,30 @@ tasks.withType<KotlinCompilationTask<*>>().configureEach {
103103
binaryCompatibilityValidator {
104104
ignoredMarkers.add("dev.adamko.kotlin.binary_compatibility_validator.internal.BCVInternalApi")
105105
}
106+
107+
108+
publishing {
109+
publications {
110+
register<MavenPublication>("relocation") {
111+
pom {
112+
val relocationMessage =
113+
"Relocated artifact. Replaced underscores with dashes in the Group ID, to match BCV-MU's Gradle Plugin ID."
114+
name = "Binary Compatibility Validator MU [RELOCATION MARKER]"
115+
description = relocationMessage
116+
117+
// Old artifact coordinates
118+
groupId = "dev.adamko.kotlin.binary_compatibility_validator"
119+
artifactId = "bcv-gradle-plugin"
120+
121+
distributionManagement {
122+
relocation {
123+
// New artifact coordinates
124+
groupId = project.group.toString()
125+
artifactId = project.name
126+
message = relocationMessage
127+
}
128+
}
129+
}
130+
}
131+
}
132+
}

0 commit comments

Comments
 (0)