diff --git a/build-logic/src/main/kotlin/packaging.gradle.kts b/build-logic/src/main/kotlin/packaging.gradle.kts index d874a570c0b..38f989d6388 100644 --- a/build-logic/src/main/kotlin/packaging.gradle.kts +++ b/build-logic/src/main/kotlin/packaging.gradle.kts @@ -30,32 +30,33 @@ publishing { // We don't need to configure publishing for the Gradle plugin. if (project.name != "detekt-gradle-plugin") { publications.register(DETEKT_PUBLICATION) { - groupId = "io.gitlab.arturbosch.detekt" - artifactId = project.name from(components["java"]) - version = Versions.currentOrSnapshot() - pom { - description.set("Static code analysis for Kotlin") - name.set("detekt") - url.set("https://detekt.dev") - licenses { - license { - name.set("The Apache Software License, Version 2.0") - url.set("https://www.apache.org/licenses/LICENSE-2.0.txt") - distribution.set("repo") - } - } - developers { - developer { - id.set("detekt Developers") - name.set("detekt Developers") - email.set("info@detekt.dev") - } + } + } + publications.withType { + artifactId = project.name + version = Versions.currentOrSnapshot() + pom { + description.set("Static code analysis for Kotlin") + name.set("detekt") + url.set("https://detekt.dev") + licenses { + license { + name.set("The Apache Software License, Version 2.0") + url.set("https://www.apache.org/licenses/LICENSE-2.0.txt") + distribution.set("repo") } - scm { - url.set("https://github.com/detekt/detekt") + } + developers { + developer { + id.set("detekt Developers") + name.set("detekt Developers") + email.set("info@detekt.dev") } } + scm { + url.set("https://github.com/detekt/detekt") + } } } } diff --git a/detekt-gradle-plugin/build.gradle.kts b/detekt-gradle-plugin/build.gradle.kts index 56408e97091..3d8bfca0e50 100644 --- a/detekt-gradle-plugin/build.gradle.kts +++ b/detekt-gradle-plugin/build.gradle.kts @@ -106,6 +106,8 @@ gradlePlugin { create("detektCompilerPlugin") { id = "io.github.detekt.gradle.compiler-plugin" implementationClass = "io.github.detekt.gradle.DetektKotlinCompilerPlugin" + displayName = "Static code analysis for Kotlin" + description = "Static code analysis for Kotlin" tags.set(listOf("kotlin", "detekt", "code-analysis", "linter", "codesmells", "android")) } } @@ -180,33 +182,6 @@ tasks.withType().configureEach } } -publishing { - publications.withType { - pom { - description.set("The official Detekt Gradle Plugin") - name.set("detekt-gradle-plugin") - url.set("https://detekt.dev") - licenses { - license { - name.set("The Apache Software License, Version 2.0") - url.set("https://www.apache.org/licenses/LICENSE-2.0.txt") - distribution.set("repo") - } - } - developers { - developer { - id.set("detekt Developers") - name.set("detekt Developers") - email.set("info@detekt.dev") - } - } - scm { - url.set("https://github.com/detekt/detekt") - } - } - } -} - tasks.withType().configureEach { retry { @Suppress("MagicNumber")