Skip to content

Commit

Permalink
Add license information to POM - 0.13 release
Browse files Browse the repository at this point in the history
Fixes #32
  • Loading branch information
jjohannes committed May 30, 2022
1 parent fb7b9df commit bb936d1
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Extra Java Module Info Gradle Plugin - Changelog

## Version 0.13
* [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!)

## Version 0.12
* [New] [#31](https://github.com/jjohannes/extra-java-module-info/issues/31) - Address Jars by 'group:name' coordinates (instead of file name with version)
* [New] [#1](https://github.com/jjohannes/extra-java-module-info/issues/1) - Merging several legacy Jars into one Module Jar
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Add this to the build file of your convention plugin's build

```
dependencies {
implementation("de.jjohannes.gradle:extra-java-module-info:0.12")
implementation("de.jjohannes.gradle:extra-java-module-info:0.13")
}
```

Expand Down
38 changes: 33 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "de.jjohannes.gradle"
version = "0.12"
version = "0.13"

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

val pluginName = "Extra Java Module Info Gradle Plugin"
val pluginDescription = "Add module information to legacy Java libraries."
val pluginGitHub = "https://github.com/jjohannes/extra-java-module-info"

gradlePlugin {
plugins {
create("extra-java-module-info") {
id = "de.jjohannes.extra-java-module-info"
implementationClass = "de.jjohannes.gradle.javamodules.ExtraModuleInfoPlugin"
displayName = "Add module information to legacy Java libraries"
description = "Add module information to Java libraries that do not have any."
displayName = pluginDescription
description = pluginDescription
}
}
}

pluginBundle {
website = "https://github.com/jjohannes/extra-java-module-info"
vcsUrl = "https://github.com/jjohannes/extra-java-module-info.git"
website = pluginGitHub
vcsUrl = pluginGitHub
tags = listOf("java", "modularity", "jigsaw", "jpms")
}

publishing {
publications.withType<MavenPublication>().all {
pom.name.set(pluginName)
pom.description.set(pluginDescription)
pom.url.set(pluginGitHub)
pom.licenses {
license {
name.set("Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
pom.developers {
developer {
id.set("jjohannes")
name.set("Jendrik Johannes")
email.set("[email protected]")
}
}
pom.scm {
url.set(pluginGitHub)
}
}
}

tasks.test {
description = "Runs tests against the Gradle version the plugin is built with"
classpath = sourceSets.test.get().runtimeClasspath
Expand Down

0 comments on commit bb936d1

Please sign in to comment.