diff --git a/build.gradle.kts b/build.gradle.kts index 398a5dc0..65c405ff 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -15,6 +15,7 @@ plugins { id("org.ajoberstar.stutter") version "0.7.2" } +base { archivesName = "publish-plugin" } group = "io.github.gradle-nexus" version = "2.0.0-SNAPSHOT" @@ -266,6 +267,7 @@ publishing { publications { afterEvaluate { named("pluginMaven") { + artifactId = base.archivesName.get() pom { name = readableName description = project.description @@ -292,4 +294,3 @@ publishing { } } } - diff --git a/settings.gradle.kts b/settings.gradle.kts index 311e0eea..6321f571 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -13,6 +13,4 @@ gradleEnterprise { } } -// this needs to stay this way since it's used as the plugin's artifact id -// for generating the plugin marker -rootProject.name = "publish-plugin" +rootProject.name = "gradle-nexus-publish-plugin"