Skip to content

Commit

Permalink
[apache#5937]feat(build): enhance spotless integration in Gradle buil…
Browse files Browse the repository at this point in the history
…d script (apache#6077)

### What changes were proposed in this pull request?
Added configuration to ensure that subprojects using the
'com.diffplug.spotless' plugin are included in the 'spotlessCheck' task
dependencies.

### Why are the changes needed?
Fix: apache#5937

### Does this PR introduce any user-facing change?
no

### How was this patch tested?
Break style by adding spaces to any java file in iceberg-common module,
and test it by running ./gradlew compileIcebergRESTServer -x test
check dependence trees by running ./gradlew compileIcebergRESTServer
taskTree
  • Loading branch information
cool9850311 authored Jan 6, 2025
1 parent c946751 commit a25f758
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,9 @@ subprojects {
exclude("test/**")
}
}
tasks.named("compileJava").configure {
dependsOn("spotlessCheck")
}
}

tasks.rat {
Expand Down

0 comments on commit a25f758

Please sign in to comment.