From 2e39e5eea64d3e26485c5d18a613751abaf91397 Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Tue, 5 Nov 2024 08:17:35 -0700 Subject: [PATCH] saml2 Projects Are Not Using CheckFormat Issue gh-335 --- build.gradle | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 77c1fa9..b36f1c6 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,4 @@ +import io.spring.javaformat.gradle.tasks.CheckFormat import io.spring.javaformat.gradle.tasks.Format plugins { @@ -28,6 +29,18 @@ allprojects { options.compilerArgs.add("-parameters") } + tasks.withType(Format).tap { + configureEach { + it.enabled = !it.identityPath.toString().contains("saml2") + } + } + + tasks.withType(CheckFormat).tap { + configureEach { + it.enabled = !it.identityPath.toString().contains("saml2") + } + } + tasks.matching { it.name == 'formatAot' }.all { task -> task.enabled = false } @@ -52,11 +65,6 @@ allprojects { task.enabled = false } - tasks.withType(Format).tap { - configureEach { - it.enabled = !it.identityPath.toString().contains("saml2") - } - } } if (hasProperty('buildScan')) {