Skip to content

Commit 0b6c41d

Browse files
committed
exclude build and gradle files to help with timeouts
1 parent 30b8ef2 commit 0b6c41d

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,6 +1470,8 @@ class BeamModulePlugin implements Plugin<Project> {
14701470
googleJavaFormat('1.17.0')
14711471
target project.fileTree(project.projectDir) {
14721472
include 'src/*/java/**/*.java'
1473+
exclude '**/build/**'
1474+
exclude '**/.gradle/**'
14731475
exclude '**/DefaultPackageTest.java'
14741476
}
14751477
// For spotless:off and spotless:on
@@ -2395,6 +2397,7 @@ class BeamModulePlugin implements Plugin<Project> {
23952397
target project.fileTree(project.projectDir) {
23962398
include '**/*.groovy'
23972399
exclude '**/build/**'
2400+
exclude '**/.gradle/**'
23982401
}
23992402
}
24002403
groovyGradle { greclipse().configFile(grEclipseConfig) }

runners/flink/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ spotless {
3131
java {
3232
licenseHeader org.apache.beam.gradle.BeamModulePlugin.javaLicenseHeader
3333
googleJavaFormat('1.17.0')
34-
target project.fileTree(project.projectDir) { include 'src/*/java/**/*.java' }
34+
target project.fileTree(project.projectDir) {
35+
include 'src/*/java/**/*.java'
36+
exclude '**/build/**'
37+
exclude '**/.gradle/**'
38+
}
3539
}
3640
}

runners/spark/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ spotless {
3131
java {
3232
licenseHeader org.apache.beam.gradle.BeamModulePlugin.javaLicenseHeader
3333
googleJavaFormat('1.17.0')
34-
target project.fileTree(project.projectDir) { include 'src/*/java/**/*.java' }
34+
target project.fileTree(project.projectDir) {
35+
include 'src/*/java/**/*.java'
36+
exclude '**/build/**'
37+
exclude '**/.gradle/**'
38+
}
3539
}
3640
}

0 commit comments

Comments
 (0)