Skip to content

Commit ce77dde

Browse files
committed
build > update metadata plugin to 0.2.0
1 parent da15a7d commit ce77dde

File tree

2 files changed

+37
-35
lines changed

2 files changed

+37
-35
lines changed

build.gradle.kts

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -17,44 +17,44 @@ group = "com.hivemq"
1717
description = "SDK for the development of HiveMQ Kafka Extension customizations"
1818

1919
metadata {
20-
readableName = "HiveMQ Kafka Extension Customization SDK"
20+
readableName.set("HiveMQ Kafka Extension Customization SDK")
2121
organization {
22-
name = "HiveMQ GmbH"
23-
url = "https://www.hivemq.com/"
22+
name.set("HiveMQ GmbH")
23+
url.set("https://www.hivemq.com/")
2424
}
2525
license {
2626
apache2()
2727
}
2828
developers {
2929
developer {
30-
id = "cschaebe"
31-
name = "Christoph Schaebel"
32-
email = "christoph.schaebel@hivemq.com"
30+
id.set("cschaebe")
31+
name.set("Christoph Schaebel")
32+
email.set("christoph.schaebel@hivemq.com")
3333
}
3434
developer {
35-
id = "lbrandl"
36-
name = "Lukas Brandl"
37-
email = "lukas.brandl@hivemq.com"
35+
id.set("lbrandl")
36+
name.set("Lukas Brandl")
37+
email.set("lukas.brandl@hivemq.com")
3838
}
3939
developer {
40-
id = "flimpoeck"
41-
name = "Florian Limpoeck"
42-
email = "florian.limpoeck@hivemq.com"
40+
id.set("flimpoeck")
41+
name.set("Florian Limpoeck")
42+
email.set("florian.limpoeck@hivemq.com")
4343
}
4444
developer {
45-
id = "sauroter"
46-
name = "Georg Held"
47-
email = "georg.held@hivemq.com"
45+
id.set("sauroter")
46+
name.set("Georg Held")
47+
email.set("georg.held@hivemq.com")
4848
}
4949
developer {
50-
id = "SgtSilvio"
51-
name = "Silvio Giebl"
52-
email = "silvio.giebl@hivemq.com"
50+
id.set("SgtSilvio")
51+
name.set("Silvio Giebl")
52+
email.set("silvio.giebl@hivemq.com")
5353
}
5454
}
5555
github {
56-
org = "hivemq"
57-
repo = "hivemq-kafka-extension-customization-sdk"
56+
org.set("hivemq")
57+
repo.set("hivemq-kafka-extension-customization-sdk")
5858
issues()
5959
}
6060
}
@@ -85,32 +85,34 @@ java {
8585
tasks.withType<Jar>().configureEach {
8686
manifest.attributes(
8787
"Implementation-Title" to project.name,
88-
"Implementation-Vendor" to metadata.organization.name,
88+
"Implementation-Vendor" to metadata.organization!!.name.get(),
8989
"Implementation-Version" to project.version)
9090
}
9191

9292
tasks.javadoc {
93-
title = "${metadata.readableName} ${project.version} API"
93+
title = "${metadata.readableName.get()} ${project.version} API"
9494

9595
doLast { // javadoc search fix for jdk 11 https://bugs.openjdk.java.net/browse/JDK-8215291
9696
copy {
97-
from("${buildDir}/docs/javadoc/search.js")
98-
into("${buildDir}/tmp/javadoc/")
97+
from("$buildDir/docs/javadoc/search.js")
98+
into("$buildDir/tmp/javadoc/")
9999
filter { line -> line.replace("if (ui.item.p == item.l) {", "if (item.m && ui.item.p == item.l) {") }
100100
}
101-
delete("${buildDir}/docs/javadoc/search.js")
101+
delete("$buildDir/docs/javadoc/search.js")
102102
copy {
103-
from("${buildDir}/tmp/javadoc/search.js")
104-
into("${buildDir}/docs/javadoc/")
103+
from("$buildDir/tmp/javadoc/search.js")
104+
into("$buildDir/docs/javadoc/")
105105
}
106106
}
107107
}
108108

109109

110110
/* ******************** publishing ******************** */
111111

112-
publishing.publications.register<MavenPublication>("kafkaExtensionCustomizationSdk") {
113-
from(components["java"])
112+
publishing {
113+
publications.register<MavenPublication>("kafkaExtensionCustomizationSdk") {
114+
from(components["java"])
115+
}
114116
}
115117

116118
bintray {
@@ -124,10 +126,10 @@ bintray {
124126
repo = "HiveMQ"
125127
name = project.name
126128
desc = project.description
127-
websiteUrl = metadata.url
128-
issueTrackerUrl = metadata.issueManagement.url
129-
vcsUrl = metadata.scm.url
130-
setLicenses(metadata.license.shortName)
129+
websiteUrl = metadata.url.get()
130+
issueTrackerUrl = metadata.issueManagement!!.url.get()
131+
vcsUrl = metadata.scm!!.url.get()
132+
setLicenses(metadata.license!!.shortName.get())
131133
setLabels("hivemq-kafka-extension", "sdk", "mqtt", "kafka")
132134
publicDownloadNumbers = false
133135
version.apply {
@@ -146,6 +148,6 @@ afterEvaluate {
146148
/* ******************** checks ******************** */
147149

148150
license {
149-
header = file("${projectDir}/HEADER")
151+
header = file("$projectDir/HEADER")
150152
mapping("java", "SLASHSTAR_STYLE")
151153
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ slf4j.version=1.7.30
99
plugin.license.version=0.15.0
1010
plugin.bintray.version=1.8.5
1111
plugin.utf8.version=0.1.0
12-
plugin.metadata.version=0.1.2
12+
plugin.metadata.version=0.2.0
1313
plugin.javadoc-links.version=0.3.0

0 commit comments

Comments
 (0)