From 6a65252f8c63cd27e4a13948418c3e0f54d537e7 Mon Sep 17 00:00:00 2001 From: Steven Leighton Date: Sun, 3 May 2026 13:25:07 -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 a34fc78f..8467ecff 100644 --- a/build.gradle +++ b/build.gradle @@ -68,10 +68,10 @@ subprojects { testImplementation "com.mx.path-core:testing" } - test { useJUnitPlatform() } - compileJava { options.compilerArgs << "-parameters" } + test { useJUnitPlatform() } + javadoc { classpath = configurations.compileClasspath options { @@ -88,7 +88,7 @@ subprojects { if (it.name != platformProject) { publishing { publications { - maven(MavenPublication) { + register("maven", MavenPublication) { from components.java } } @@ -157,15 +157,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 1f38cff7..6e4c53ca 100644 --- a/platform/build.gradle +++ b/platform/build.gradle @@ -23,7 +23,7 @@ dependencies { publishing { publications { - bom(MavenPublication) { + register("bom", MavenPublication) { from components.javaPlatform } }