From 384bdbc19c7856c33852181db187cf7c1f7dc3be Mon Sep 17 00:00:00 2001 From: Marco Belladelli Date: Tue, 17 Sep 2024 13:47:59 +0200 Subject: [PATCH] Exclude generated sources from spotless --- gradle/java-module.gradle | 5 +++-- hibernate-core/hibernate-core.gradle | 5 ----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/gradle/java-module.gradle b/gradle/java-module.gradle index 97fd927f99..2dafca3692 100644 --- a/gradle/java-module.gradle +++ b/gradle/java-module.gradle @@ -472,9 +472,10 @@ spotless { //Don't fail during the check: rather than enforcing guidelines, we use this plugin to fix mistakes automatically. enforceCheck false java { - licenseHeaderFile rootProject.file('spotless.license.java') + targetExclude( "**/target/**/*.java" ) + licenseHeaderFile rootProject.file( 'spotless.license.java' ) removeUnusedImports() - indentWithTabs(4) + indentWithTabs( 4 ) trimTrailingWhitespace() endWithNewline() } diff --git a/hibernate-core/hibernate-core.gradle b/hibernate-core/hibernate-core.gradle index 5f327224a7..d3b1634a21 100644 --- a/hibernate-core/hibernate-core.gradle +++ b/hibernate-core/hibernate-core.gradle @@ -282,8 +282,3 @@ tasks.sourcesJar.dependsOn ':hibernate-core:generateGraphParser' tasks.sourcesJar.dependsOn ':hibernate-core:generateHqlParser' tasks.sourcesJar.dependsOn ':hibernate-core:generateSqlScriptParser' tasks.sourcesJar.dependsOn ':hibernate-core:generateOrderingParser' - -tasks.spotlessJava.dependsOn ':hibernate-core:generateGraphParser' -tasks.spotlessJava.dependsOn ':hibernate-core:generateHqlParser' -tasks.spotlessJava.dependsOn ':hibernate-core:generateSqlScriptParser' -tasks.spotlessJava.dependsOn ':hibernate-core:generateOrderingParser'