Skip to content

Commit

Permalink
Address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico committed Apr 25, 2022
1 parent 5e61517 commit d1dbf6b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 34 deletions.
8 changes: 4 additions & 4 deletions build-logic/src/main/kotlin/packaging.gradle.kts
Expand Up @@ -41,15 +41,15 @@ publishing {
licenses {
license {
name.set("The Apache Software License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
distribution.set("repo")
}
}
developers {
developer {
id.set("Artur Bosch")
name.set("Artur Bosch")
email.set("arturbosch@gmx.de")
id.set("Detekt Developers")
name.set("Detekt Developers")
email.set("info@detekt.dev")
}
}
scm {
Expand Down
30 changes: 30 additions & 0 deletions build-logic/src/main/kotlin/releasing.gradle.kts
Expand Up @@ -70,3 +70,33 @@ tasks {
lineTransformation.set(" detektVersion: '${Versions.DETEKT}'")
}
}

tasks.register("publishToMavenLocal") {
description = "Publish all the projects to Maven Local"
subprojects {
if (this.plugins.hasPlugin("publishing")) {
dependsOn(tasks.named("publishToMavenLocal"))
}
}
dependsOn(gradle.includedBuild("detekt-gradle-plugin").task(":publishToMavenLocal"))
}

tasks.register("publishAllToSonatypeSnapshot") {
description = "Publish all the projects to Sonatype Snapshot Repository"
subprojects {
if (this.plugins.hasPlugin("publishing")) {
dependsOn(tasks.named("publishAllPublicationsToSonatypeSnapshotRepository"))
}
}
dependsOn(gradle.includedBuild("detekt-gradle-plugin").task(":publishAllPublicationsToSonatypeSnapshotRepository"))
}

tasks.register("publishAllToMavenCentral") {
description = "Publish all the projects to Sonatype Staging Repository"
subprojects {
if (this.plugins.hasPlugin("publishing")) {
dependsOn(tasks.named("publishAllPublicationsToMavenCentralRepository"))
}
}
dependsOn(gradle.includedBuild("detekt-gradle-plugin").task(":publishAllPublicationsToMavenCentralRepository"))
}
30 changes: 0 additions & 30 deletions build.gradle.kts
Expand Up @@ -109,33 +109,3 @@ val detektProjectBaseline by tasks.registering(DetektCreateBaselineTask::class)
tasks.register("build") {
dependsOn(gradle.includedBuild("detekt-gradle-plugin").task(":build"))
}

tasks.register("publishAllToMavenLocal") {
description = "Publish all the projects to Maven Local"
subprojects {
if (this.plugins.hasPlugin("publishing")) {
dependsOn(tasks.named("publishToMavenLocal"))
}
}
dependsOn(gradle.includedBuild("detekt-gradle-plugin").task(":publishToMavenLocal"))
}

tasks.register("publishAllToSonatypeSnapshot") {
description = "Publish all the projects to Sonatype Snapshot Repository"
subprojects {
if (this.plugins.hasPlugin("publishing")) {
dependsOn(tasks.named("publishAllPublicationsToSonatypeSnapshotRepository"))
}
}
dependsOn(gradle.includedBuild("detekt-gradle-plugin").task(":publishAllPublicationsToSonatypeSnapshotRepository"))
}

tasks.register("publishAllToMavenCentral") {
description = "Publish all the projects to Sonatype Staging Repository"
subprojects {
if (this.plugins.hasPlugin("publishing")) {
dependsOn(tasks.named("publishAllPublicationsToMavenCentralRepository"))
}
}
dependsOn(gradle.includedBuild("detekt-gradle-plugin").task(":publishAllPublicationsToMavenCentralRepository"))
}

0 comments on commit d1dbf6b

Please sign in to comment.