Skip to content

Commit bb936d1

Browse files
committed
Add license information to POM - 0.13 release
Fixes #32
1 parent fb7b9df commit bb936d1

File tree

3 files changed

+37
-6
lines changed

3 files changed

+37
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Extra Java Module Info Gradle Plugin - Changelog
22

3+
## Version 0.13
4+
* [New] [#32](https://github.com/jjohannes/extra-java-module-info/issues/32) - Add license information to POM (Thanks [Edward McKnight](https://github.com/EM-Creations) for reporting!)
5+
36
## Version 0.12
47
* [New] [#31](https://github.com/jjohannes/extra-java-module-info/issues/31) - Address Jars by 'group:name' coordinates (instead of file name with version)
58
* [New] [#1](https://github.com/jjohannes/extra-java-module-info/issues/1) - Merging several legacy Jars into one Module Jar

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Add this to the build file of your convention plugin's build
4242

4343
```
4444
dependencies {
45-
implementation("de.jjohannes.gradle:extra-java-module-info:0.12")
45+
implementation("de.jjohannes.gradle:extra-java-module-info:0.13")
4646
}
4747
```
4848

build.gradle.kts

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
group = "de.jjohannes.gradle"
7-
version = "0.12"
7+
version = "0.13"
88

99
java {
1010
sourceCompatibility = JavaVersion.VERSION_1_8
@@ -17,23 +17,51 @@ dependencies {
1717
testImplementation("org.spockframework:spock-core:2.1-groovy-3.0")
1818
}
1919

20+
val pluginName = "Extra Java Module Info Gradle Plugin"
21+
val pluginDescription = "Add module information to legacy Java libraries."
22+
val pluginGitHub = "https://github.com/jjohannes/extra-java-module-info"
23+
2024
gradlePlugin {
2125
plugins {
2226
create("extra-java-module-info") {
2327
id = "de.jjohannes.extra-java-module-info"
2428
implementationClass = "de.jjohannes.gradle.javamodules.ExtraModuleInfoPlugin"
25-
displayName = "Add module information to legacy Java libraries"
26-
description = "Add module information to Java libraries that do not have any."
29+
displayName = pluginDescription
30+
description = pluginDescription
2731
}
2832
}
2933
}
3034

3135
pluginBundle {
32-
website = "https://github.com/jjohannes/extra-java-module-info"
33-
vcsUrl = "https://github.com/jjohannes/extra-java-module-info.git"
36+
website = pluginGitHub
37+
vcsUrl = pluginGitHub
3438
tags = listOf("java", "modularity", "jigsaw", "jpms")
3539
}
3640

41+
publishing {
42+
publications.withType<MavenPublication>().all {
43+
pom.name.set(pluginName)
44+
pom.description.set(pluginDescription)
45+
pom.url.set(pluginGitHub)
46+
pom.licenses {
47+
license {
48+
name.set("Apache License, Version 2.0")
49+
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
50+
}
51+
}
52+
pom.developers {
53+
developer {
54+
id.set("jjohannes")
55+
name.set("Jendrik Johannes")
56+
email.set("jendrik@onepiece.software")
57+
}
58+
}
59+
pom.scm {
60+
url.set(pluginGitHub)
61+
}
62+
}
63+
}
64+
3765
tasks.test {
3866
description = "Runs tests against the Gradle version the plugin is built with"
3967
classpath = sourceSets.test.get().runtimeClasspath

0 commit comments

Comments
 (0)