Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
idea
}

group = "dev.adamko.kotlin.binary_compatibility_validator"
group = "dev.adamko.kotlin.binary-compatibility-validator"
project.version = object {
private val gitVersion = project.gitVersion
override fun toString(): String = gitVersion.get()
Expand Down
27 changes: 27 additions & 0 deletions modules/bcv-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,30 @@ tasks.withType<KotlinCompilationTask<*>>().configureEach {
binaryCompatibilityValidator {
ignoredMarkers.add("dev.adamko.kotlin.binary_compatibility_validator.internal.BCVInternalApi")
}


publishing {
publications {
register<MavenPublication>("relocation") {
pom {
val relocationMessage =
"Relocated artifact. Replaced underscores with dashes in the Group ID, to match BCV-MU's Gradle Plugin ID."
name = "Binary Compatibility Validator MU [RELOCATION MARKER]"
description = relocationMessage

// Old artifact coordinates
groupId = "dev.adamko.kotlin.binary_compatibility_validator"
artifactId = "bcv-gradle-plugin"

distributionManagement {
relocation {
// New artifact coordinates
groupId = project.group.toString()
artifactId = project.name
message = relocationMessage
}
}
}
}
}
}