Skip to content

Commit

Permalink
saml2 Projects Are Not Using CheckFormat
Browse files Browse the repository at this point in the history
Issue gh-335
  • Loading branch information
jzheaux committed Nov 5, 2024
1 parent 84738c5 commit 2e39e5e
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import io.spring.javaformat.gradle.tasks.CheckFormat
import io.spring.javaformat.gradle.tasks.Format

plugins {
Expand Down Expand Up @@ -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
}
Expand All @@ -52,11 +65,6 @@ allprojects {
task.enabled = false
}

tasks.withType(Format).tap {
configureEach {
it.enabled = !it.identityPath.toString().contains("saml2")
}
}
}

if (hasProperty('buildScan')) {
Expand Down

0 comments on commit 2e39e5e

Please sign in to comment.