@@ -16,21 +16,52 @@ dependencies {
1616 testImplementation(" org.gradle.exemplar:samples-check:1.0.0" )
1717}
1818
19+ val pluginId = " de.jjohannes.java-module-testing"
20+ val pluginClass = " de.jjohannes.gradle.moduletesting.JavaModuleTestingPlugin"
21+ val pluginName = " Java Module Testing Gradle Plugin"
22+ val pluginDescription = " A plugin to test Java Modules (whitebox and blackbox) without the hassle."
23+ val pluginBundleTags = listOf (" java" , " modularity" , " jigsaw" , " jpms" , " testing" )
24+ val pluginGitHub = " https://github.com/jjohannes/java-module-testing"
25+
1926gradlePlugin {
2027 plugins {
2128 create(project.name) {
22- id = " de.jjohannes.java-module-testing "
23- implementationClass = " de.jjohannes.gradle.moduletesting.JavaModuleTestingPlugin "
24- displayName = " Java Module Testing "
25- description = " A plugin to test Java Modules (whitebox and blackbox) without the hassle. "
29+ id = pluginId
30+ implementationClass = pluginClass
31+ displayName = pluginName
32+ description = pluginDescription
2633 }
2734 }
2835}
2936
3037pluginBundle {
31- website = " https://github.com/jjohannes/java-module-testing"
32- vcsUrl = " https://github.com/jjohannes/java-module-testing"
33- tags = listOf (" java" , " modularity" , " jigsaw" , " jpms" , " testing" )
38+ website = pluginGitHub
39+ vcsUrl = pluginGitHub
40+ tags = pluginBundleTags
41+ }
42+
43+ publishing {
44+ publications.withType<MavenPublication >().all {
45+ pom.name.set(pluginName)
46+ pom.description.set(pluginDescription)
47+ pom.url.set(pluginGitHub)
48+ pom.licenses {
49+ license {
50+ name.set(" Apache License, Version 2.0" )
51+ url.set(" http://www.apache.org/licenses/LICENSE-2.0.txt" )
52+ }
53+ }
54+ pom.developers {
55+ developer {
56+ id.set(" jjohannes" )
57+ name.set(" Jendrik Johannes" )
58+ 59+ }
60+ }
61+ pom.scm {
62+ url.set(pluginGitHub)
63+ }
64+ }
3465}
3566
3667tasks.test {
0 commit comments