Exclude generated sources from spotless

This commit is contained in:
Marco Belladelli 2024-09-17 13:47:59 +02:00
parent 6a3fee83fa
commit 384bdbc19c
2 changed files with 3 additions and 7 deletions

View File

@ -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()
}

View File

@ -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'