Skip to content

Commit 170485d

Browse files
committed
build > update gradle plugins
1 parent 8e70cf6 commit 170485d

File tree

2 files changed

+18
-28
lines changed

2 files changed

+18
-28
lines changed

build.gradle.kts

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ buildscript {
77
}
88

99
plugins {
10-
id("java-library")
11-
id("maven-publish")
12-
id("signing")
10+
`java-library`
11+
`maven-publish`
12+
signing
1313
id("io.github.gradle-nexus.publish-plugin")
1414
id("com.github.hierynomus.license")
1515
id("com.github.sgtsilvio.gradle.utf8")
@@ -22,7 +22,6 @@ if (gradle.includedBuilds.find { it.name == "plugins"} != null) {
2222
project.ext.set("versionUpdaterFiles", arrayOf("README.adoc"))
2323
}
2424

25-
2625
/* ******************** metadata ******************** */
2726

2827
group = "com.hivemq"
@@ -38,29 +37,24 @@ metadata {
3837
apache2()
3938
}
4039
developers {
41-
developer {
42-
id.set("cschaebe")
43-
name.set("Christoph Schaebel")
40+
register("cschaebe") {
41+
fullName.set("Christoph Schaebel")
4442
email.set("christoph.schaebel@hivemq.com")
4543
}
46-
developer {
47-
id.set("lbrandl")
48-
name.set("Lukas Brandl")
44+
register("lbrandl") {
45+
fullName.set("Lukas Brandl")
4946
email.set("lukas.brandl@hivemq.com")
5047
}
51-
developer {
52-
id.set("flimpoeck")
53-
name.set("Florian Limpoeck")
48+
register("flimpoeck") {
49+
fullName.set("Florian Limpoeck")
5450
email.set("florian.limpoeck@hivemq.com")
5551
}
56-
developer {
57-
id.set("sauroter")
58-
name.set("Georg Held")
52+
register("sauroter") {
53+
fullName.set("Georg Held")
5954
email.set("georg.held@hivemq.com")
6055
}
61-
developer {
62-
id.set("SgtSilvio")
63-
name.set("Silvio Giebl")
56+
register("SgtSilvio") {
57+
fullName.set("Silvio Giebl")
6458
email.set("silvio.giebl@hivemq.com")
6559
}
6660
}
@@ -71,7 +65,6 @@ metadata {
7165
}
7266
}
7367

74-
7568
/* ******************** dependencies ******************** */
7669

7770
val internalPlatform by configurations.creating {
@@ -100,7 +93,6 @@ dependencies {
10093
api("org.slf4j:slf4j-api")
10194
}
10295

103-
10496
/* ******************** java ******************** */
10597

10698
java {
@@ -115,7 +107,7 @@ java {
115107
tasks.withType<Jar> {
116108
manifest.attributes(
117109
"Implementation-Title" to project.name,
118-
"Implementation-Vendor" to metadata.organization!!.name.get(),
110+
"Implementation-Vendor" to metadata.organization.get().name.get(),
119111
"Implementation-Version" to project.version
120112
)
121113
}
@@ -137,7 +129,6 @@ tasks.javadoc {
137129
}
138130
}
139131

140-
141132
/* ******************** publishing ******************** */
142133

143134
publishing {
@@ -170,10 +161,9 @@ nexusPublishing {
170161
}
171162
}
172163

173-
174164
/* ******************** checks ******************** */
175165

176166
license {
177167
header = projectDir.resolve("HEADER")
178168
mapping("java", "SLASHSTAR_STYLE")
179-
}
169+
}

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ version=4.7.0-SNAPSHOT
22
#
33
# plugins
44
#
5+
plugin.nexus-publish.version=1.0.0
56
plugin.license.version=0.15.0
67
plugin.utf8.version=0.1.0
7-
plugin.metadata.version=0.2.0
8-
plugin.javadoc-links.version=0.3.0
9-
plugin.nexus-publish.version=1.0.0
8+
plugin.metadata.version=0.3.0
9+
plugin.javadoc-links.version=0.4.1

0 commit comments

Comments
 (0)