Skip to content

Commit c6e1cbf

Browse files
committed
🚀 publish community codemods with apache license
1 parent 4d97a4f commit c6e1cbf

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

community-codemods/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
plugins {
22
id("io.codemodder.java-library")
33
id("io.codemodder.runner")
4+
id("com.netflix.nebula.maven-apache-license")
5+
id("io.codemodder.maven-publish")
46
}
57

6-
description = "Example codemods"
8+
description = "Community codemods"
79

810
dependencies {
911
implementation(project(":framework:codemodder-base"))

gradle/build-plugins/src/main/kotlin/io.codemodder.maven-publish.gradle.kts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ publishing {
4242
}
4343
}
4444
pom {
45-
licenses {
46-
license {
47-
name.set("GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPL-3.0)")
48-
url.set("https://opensource.org/licenses/AGPL-3.0")
45+
if (!pluginManager.hasPlugin("com.netflix.nebula.maven-apache-license")) {
46+
licenses {
47+
license {
48+
name.set("GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPL-3.0)")
49+
url.set("https://opensource.org/licenses/AGPL-3.0")
50+
}
4951
}
5052
}
5153
val scmHost = "github.com"

0 commit comments

Comments
 (0)