From 143ed715f46c6cb8e5c530ad7a8ecbf889d9959a Mon Sep 17 00:00:00 2001 From: Steven Leighton Date: Sun, 3 May 2026 13:29:21 -0600 Subject: [PATCH] build: minor gradle formatting changes --- build.gradle | 14 ++++++++------ platform/build.gradle | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 1d42fdb..08b2b0f 100644 --- a/build.gradle +++ b/build.gradle @@ -61,10 +61,10 @@ subprojects { testImplementation "com.mx.path-core:testing" } - test { useJUnitPlatform() } - compileJava { options.compilerArgs << "-parameters" } + test { useJUnitPlatform() } + javadoc { classpath = configurations.compileClasspath options { @@ -80,7 +80,7 @@ subprojects { if (it.name != platformProject) { publishing { publications { - maven(MavenPublication) { + register("maven", MavenPublication) { from components.java } } @@ -148,15 +148,17 @@ nexusPublishing { } } -task spotlessApply { +tasks.register("spotlessApply") { dependsOn subprojects.findAll { it.name != platformProject }.collect { "${it.path}:spotlessApply" } } -task subdependencies { +tasks.register("subdependencies") { dependsOn subprojects.findAll { it.name != platformProject }.collect { "${it.path}:dependencies" } } -project.tasks.getByPath("dependencies").finalizedBy("subdependencies") +tasks.named("dependencies") { + finalizedBy("subdependencies") +} wrapper { gradleVersion = "7.6.4" diff --git a/platform/build.gradle b/platform/build.gradle index 7d9a54a..532937e 100644 --- a/platform/build.gradle +++ b/platform/build.gradle @@ -25,7 +25,7 @@ dependencies { publishing { publications { - bom(MavenPublication) { + register("bom", MavenPublication) { from components.javaPlatform } }