saml2 Projects Are Not Using Formatter

To continue to make progress on moving projects over to a local
idp, Spring Java Format is disabled. This will allow for that
investigation to happen in parallel.

Issue gh-335
This commit is contained in:
Josh Cummings
2024-11-04 17:31:54 -07:00
parent 8eb06469e2
commit ecec3f9c11
3 changed files with 8 additions and 12 deletions

View File

@@ -1,3 +1,5 @@
import io.spring.javaformat.gradle.tasks.Format
plugins {
id "checkstyle"
id "io.spring.javaformat" version "0.0.42"
@@ -49,6 +51,12 @@ allprojects {
tasks.matching { it.name == "checkstyleAotTest" }.all { task ->
task.enabled = false
}
tasks.withType(Format).tap {
configureEach {
it.enabled = !it.identityPath.toString().contains("saml2")
}
}
}
if (hasProperty('buildScan')) {

View File

@@ -15,12 +15,6 @@ repositories {
sourceSets.main.java.srcDirs += "$projectDir/../identity-provider/src/main/java"
sourceSets.main.resources.srcDirs += "$projectDir/../identity-provider/src/main/resources"
if (plugins.hasPlugin("io.spring.javaformat")) {
tasks.formatMain {
dependsOn(":servlet:spring-boot:java:saml2:identity-provider:formatMain")
}
}
dependencies {
constraints {
implementation "org.opensaml:opensaml-saml-api:5.1.3"

View File

@@ -15,12 +15,6 @@ repositories {
sourceSets.main.java.srcDirs += "$projectDir/../identity-provider/src/main/java"
sourceSets.main.resources.srcDirs += "$projectDir/../identity-provider/src/main/resources"
if (plugins.hasPlugin("io.spring.javaformat")) {
tasks.formatMain {
dependsOn(":servlet:spring-boot:java:saml2:identity-provider:formatMain")
}
}
dependencies {
constraints {
implementation "org.opensaml:opensaml-saml-api:5.1.3"