Skip to content

Commit 93bd86c

Browse files
renovate[bot]snazy
andauthored
Update spotlessPlugin to v8.10.4 (#1002)
* Update spotlessPlugin to v8.10.4 * commas --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Robert Stupp <snazy@snazy.de>
1 parent b2ff8d4 commit 93bd86c

7 files changed

Lines changed: 22 additions & 22 deletions

File tree

‎build-logic/src/main/kotlin/NativeImageReflectionConfigTransformer.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ constructor(override val objectFactory: ObjectFactory) : ResourceTransformer {
8686
if (emitNativeImageProperties.get()) {
8787
os.putNextEntry(zipEntry(nativeImagePropertiesPath.get(), preserveFileTimestamps))
8888
os.write(
89-
"Args = -H:ReflectionConfigurationResources=\${.}/reflection-config.json\n".toByteArray()
89+
"Args = -H:ReflectionConfigurationResources=\${.}/reflection-config.json\n".toByteArray(),
9090
)
9191
os.closeEntry()
9292
}
@@ -143,7 +143,7 @@ constructor(override val objectFactory: ObjectFactory) : ResourceTransformer {
143143
merged.set(fieldName, mergeArrays(existingValue as ArrayNode, incomingValue as ArrayNode))
144144
else ->
145145
throw IllegalArgumentException(
146-
"Conflicting native-image reflection metadata for ${reflectionEntryId(merged)} field '$fieldName'"
146+
"Conflicting native-image reflection metadata for ${reflectionEntryId(merged)} field '$fieldName'",
147147
)
148148
}
149149
}

‎build-logic/src/main/kotlin/PublishingHelperPlugin.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ constructor(private val softwareComponentFactory: SoftwareComponentFactory) : Pl
5858
plugins.withId("maven-publish") {
5959
val publication =
6060
extensions.getByType<PublishingExtension>().publications.register<MavenPublication>(
61-
"maven"
61+
"maven",
6262
) {
6363
val parentGroupId = project.group.toString()
6464
val parentVersion = project.version.toString()
@@ -320,7 +320,7 @@ internal fun configureShadowPublishing(
320320
}
321321
// component.addVariantsFromConfiguration(configurations.getByName("runtimeElements")) {
322322
component.addVariantsFromConfiguration(
323-
project.configurations.getByName("shadowRuntimeElements")
323+
project.configurations.getByName("shadowRuntimeElements"),
324324
) {
325325
if (isPublishable(configurationVariant)) {
326326
mapToMavenScope("runtime")

‎build-logic/src/main/kotlin/Spotless.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fun Project.nessieConfigureSpotless() {
3636
target("src/**/*.xml", "src/**/*.xsd")
3737
eclipseWtp(com.diffplug.spotless.extra.wtp.EclipseWtpFormatterStep.XML)
3838
.configFile(
39-
layout.settingsDirectory.file("codestyle/org.eclipse.wst.xml.core.prefs").asFile
39+
layout.settingsDirectory.file("codestyle/org.eclipse.wst.xml.core.prefs").asFile,
4040
)
4141
}
4242
kotlinGradle {

‎build-logic/src/test/kotlin/NativeImageReflectionConfigTransformerTest.kt‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ class NativeImageReflectionConfigTransformerTest {
4242
assertThat(
4343
transformer.canTransformResource(
4444
fileTreeElement(
45-
"META-INF/native-image/org.projectnessie.cel/cel-core/main/reflection-config.json"
46-
)
47-
)
45+
"META-INF/native-image/org.projectnessie.cel/cel-core/main/reflection-config.json",
46+
),
47+
),
4848
)
4949
.isTrue()
5050
assertThat(
5151
transformer.canTransformResource(
5252
fileTreeElement(
53-
"META-INF/native-image/org.projectnessie.cel/cel-core/main/native-image.properties"
54-
)
55-
)
53+
"META-INF/native-image/org.projectnessie.cel/cel-core/main/native-image.properties",
54+
),
55+
),
5656
)
5757
.isFalse()
5858
assertThat(transformer.canTransformResource(fileTreeElement("reflection-config.json")))
@@ -82,8 +82,8 @@ class NativeImageReflectionConfigTransformerTest {
8282
}
8383
]
8484
"""
85-
.trimIndent()
86-
)
85+
.trimIndent(),
86+
),
8787
)
8888
transformer.transform(
8989
context(
@@ -105,15 +105,15 @@ class NativeImageReflectionConfigTransformerTest {
105105
}
106106
]
107107
"""
108-
.trimIndent()
109-
)
108+
.trimIndent(),
109+
),
110110
)
111111

112112
val output = transformOutput(transformer)
113113
val reflectionConfig =
114114
mapper.readTree(
115115
output[NativeImageReflectionConfigTransformer.DEFAULT_REFLECTION_CONFIG_PATH]
116-
?: error("missing reflection config")
116+
?: error("missing reflection config"),
117117
)
118118

119119
val reflectionEntries = reflectionConfig.toList()
@@ -123,7 +123,7 @@ class NativeImageReflectionConfigTransformerTest {
123123
"org.projectnessie.cel.relocated.com.google.protobuf.DescriptorProtos",
124124
"org.projectnessie.cel.relocated.com.google.protobuf.DynamicMessage[]",
125125
"org.projectnessie.cel.relocated.com.google.protobuf.Empty",
126-
)
126+
),
127127
)
128128

129129
val empty = reflectionEntries.single {
@@ -148,7 +148,7 @@ class NativeImageReflectionConfigTransformerTest {
148148
val reflectionConfig =
149149
mapper.readTree(
150150
transformOutput(transformer)[
151-
NativeImageReflectionConfigTransformer.DEFAULT_REFLECTION_CONFIG_PATH]
151+
NativeImageReflectionConfigTransformer.DEFAULT_REFLECTION_CONFIG_PATH],
152152
)
153153

154154
assertThat(reflectionConfig.toList().single().get("name").asString())
@@ -193,7 +193,7 @@ class NativeImageReflectionConfigTransformerTest {
193193
)
194194

195195
private fun transformOutput(
196-
transformer: NativeImageReflectionConfigTransformer
196+
transformer: NativeImageReflectionConfigTransformer,
197197
): Map<String, String> {
198198
val zipFile = File(tempDir, "transformed.zip")
199199
ZipOutputStream(zipFile.outputStream()).use { transformer.modifyOutputStream(it, false) }

‎core/build.gradle.kts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ val generateCelGrammar =
8787
sourceFile.toString(),
8888
)
8989
if (logger.isInfoEnabled) base else base + "-q"
90-
}
90+
},
9191
)
9292
}
9393

‎gradle/libs.versions.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ protobufPlugin = "0.10.0"
1919
quarkus = "3.40.1"
2020
shadowPlugin = "9.6.1"
2121
slf4j = "1.7.36"
22-
spotlessPlugin = "8.10.3"
22+
spotlessPlugin = "8.10.4"
2323

2424
[bundles]
2525
# Bundles serve two purposes:

‎settings.gradle.kts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ val configurationCacheRequested =
3232

3333
if (isCI && configurationCacheRequested) {
3434
throw GradleException(
35-
"Gradle configuration cache must not be enabled in CI because it can persist build configuration state to disk."
35+
"Gradle configuration cache must not be enabled in CI because it can persist build configuration state to disk.",
3636
)
3737
}
3838

0 commit comments

Comments
 (0)