Skip to content

Commit c9764cd

Browse files
committed
Add more descriptive metadata
1 parent 09bc2b7 commit c9764cd

File tree

1 file changed

+38
-7
lines changed

1 file changed

+38
-7
lines changed

build.gradle.kts

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
1926
gradlePlugin {
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

3037
pluginBundle {
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+
email.set("[email protected]")
59+
}
60+
}
61+
pom.scm {
62+
url.set(pluginGitHub)
63+
}
64+
}
3465
}
3566

3667
tasks.test {

0 commit comments

Comments
 (0)