Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ constructor(override val objectFactory: ObjectFactory) : ResourceTransformer {
if (emitNativeImageProperties.get()) {
os.putNextEntry(zipEntry(nativeImagePropertiesPath.get(), preserveFileTimestamps))
os.write(
"Args = -H:ReflectionConfigurationResources=\${.}/reflection-config.json\n".toByteArray()
"Args = -H:ReflectionConfigurationResources=\${.}/reflection-config.json\n".toByteArray(),
)
os.closeEntry()
}
Expand Down Expand Up @@ -143,7 +143,7 @@ constructor(override val objectFactory: ObjectFactory) : ResourceTransformer {
merged.set(fieldName, mergeArrays(existingValue as ArrayNode, incomingValue as ArrayNode))
else ->
throw IllegalArgumentException(
"Conflicting native-image reflection metadata for ${reflectionEntryId(merged)} field '$fieldName'"
"Conflicting native-image reflection metadata for ${reflectionEntryId(merged)} field '$fieldName'",
)
}
}
Expand Down
4 changes: 2 additions & 2 deletions build-logic/src/main/kotlin/PublishingHelperPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ constructor(private val softwareComponentFactory: SoftwareComponentFactory) : Pl
plugins.withId("maven-publish") {
val publication =
extensions.getByType<PublishingExtension>().publications.register<MavenPublication>(
"maven"
"maven",
) {
val parentGroupId = project.group.toString()
val parentVersion = project.version.toString()
Expand Down Expand Up @@ -320,7 +320,7 @@ internal fun configureShadowPublishing(
}
// component.addVariantsFromConfiguration(configurations.getByName("runtimeElements")) {
component.addVariantsFromConfiguration(
project.configurations.getByName("shadowRuntimeElements")
project.configurations.getByName("shadowRuntimeElements"),
) {
if (isPublishable(configurationVariant)) {
mapToMavenScope("runtime")
Expand Down
2 changes: 1 addition & 1 deletion build-logic/src/main/kotlin/Spotless.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fun Project.nessieConfigureSpotless() {
target("src/**/*.xml", "src/**/*.xsd")
eclipseWtp(com.diffplug.spotless.extra.wtp.EclipseWtpFormatterStep.XML)
.configFile(
layout.settingsDirectory.file("codestyle/org.eclipse.wst.xml.core.prefs").asFile
layout.settingsDirectory.file("codestyle/org.eclipse.wst.xml.core.prefs").asFile,
)
}
kotlinGradle {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ class NativeImageReflectionConfigTransformerTest {
assertThat(
transformer.canTransformResource(
fileTreeElement(
"META-INF/native-image/org.projectnessie.cel/cel-core/main/reflection-config.json"
)
)
"META-INF/native-image/org.projectnessie.cel/cel-core/main/reflection-config.json",
),
),
)
.isTrue()
assertThat(
transformer.canTransformResource(
fileTreeElement(
"META-INF/native-image/org.projectnessie.cel/cel-core/main/native-image.properties"
)
)
"META-INF/native-image/org.projectnessie.cel/cel-core/main/native-image.properties",
),
),
)
.isFalse()
assertThat(transformer.canTransformResource(fileTreeElement("reflection-config.json")))
Expand Down Expand Up @@ -82,8 +82,8 @@ class NativeImageReflectionConfigTransformerTest {
}
]
"""
.trimIndent()
)
.trimIndent(),
),
)
transformer.transform(
context(
Expand All @@ -105,15 +105,15 @@ class NativeImageReflectionConfigTransformerTest {
}
]
"""
.trimIndent()
)
.trimIndent(),
),
)

val output = transformOutput(transformer)
val reflectionConfig =
mapper.readTree(
output[NativeImageReflectionConfigTransformer.DEFAULT_REFLECTION_CONFIG_PATH]
?: error("missing reflection config")
?: error("missing reflection config"),
)

val reflectionEntries = reflectionConfig.toList()
Expand All @@ -123,7 +123,7 @@ class NativeImageReflectionConfigTransformerTest {
"org.projectnessie.cel.relocated.com.google.protobuf.DescriptorProtos",
"org.projectnessie.cel.relocated.com.google.protobuf.DynamicMessage[]",
"org.projectnessie.cel.relocated.com.google.protobuf.Empty",
)
),
)

val empty = reflectionEntries.single {
Expand All @@ -148,7 +148,7 @@ class NativeImageReflectionConfigTransformerTest {
val reflectionConfig =
mapper.readTree(
transformOutput(transformer)[
NativeImageReflectionConfigTransformer.DEFAULT_REFLECTION_CONFIG_PATH]
NativeImageReflectionConfigTransformer.DEFAULT_REFLECTION_CONFIG_PATH],
)

assertThat(reflectionConfig.toList().single().get("name").asString())
Expand Down Expand Up @@ -193,7 +193,7 @@ class NativeImageReflectionConfigTransformerTest {
)

private fun transformOutput(
transformer: NativeImageReflectionConfigTransformer
transformer: NativeImageReflectionConfigTransformer,
): Map<String, String> {
val zipFile = File(tempDir, "transformed.zip")
ZipOutputStream(zipFile.outputStream()).use { transformer.modifyOutputStream(it, false) }
Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ val generateCelGrammar =
sourceFile.toString(),
)
if (logger.isInfoEnabled) base else base + "-q"
}
},
)
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ protobufPlugin = "0.10.0"
quarkus = "3.40.1"
shadowPlugin = "9.6.1"
slf4j = "1.7.36"
spotlessPlugin = "8.10.3"
spotlessPlugin = "8.10.4"

[bundles]
# Bundles serve two purposes:
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ val configurationCacheRequested =

if (isCI && configurationCacheRequested) {
throw GradleException(
"Gradle configuration cache must not be enabled in CI because it can persist build configuration state to disk."
"Gradle configuration cache must not be enabled in CI because it can persist build configuration state to disk.",
)
}

Expand Down
Loading