Skip to content

Commit

Permalink
Fix broken POM file for detetk-compiler-plugin (#5971)
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico committed Apr 7, 2023
1 parent 622f288 commit 88ceb96
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 49 deletions.
45 changes: 23 additions & 22 deletions build-logic/src/main/kotlin/packaging.gradle.kts
Expand Up @@ -30,32 +30,33 @@ publishing {
// We don't need to configure publishing for the Gradle plugin.
if (project.name != "detekt-gradle-plugin") {
publications.register<MavenPublication>(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<MavenPublication> {
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")
}
}
}
}
Expand Down
29 changes: 2 additions & 27 deletions detekt-gradle-plugin/build.gradle.kts
Expand Up @@ -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"))
}
}
Expand Down Expand Up @@ -180,33 +182,6 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach
}
}

publishing {
publications.withType<MavenPublication> {
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<Test>().configureEach {
retry {
@Suppress("MagicNumber")
Expand Down

0 comments on commit 88ceb96

Please sign in to comment.