Skip to content

Commit 3707fe2

Browse files
authored
build: run Spotless tasks for build-logic module (#468)
1 parent d61d8c4 commit 3707fe2

5 files changed

Lines changed: 9 additions & 3 deletions

File tree

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ plugins {
55

66
repositories { gradlePluginPortal() }
77

8-
spotless {
9-
kotlinGradle { ktfmt().googleStyle() }
10-
}
8+
spotless { kotlinGradle { ktfmt().googleStyle() } }

buildSrc/src/main/kotlin/substrait.java-conventions.gradle.kts renamed to build-logic/src/main/kotlin/substrait.java-conventions.gradle.kts

File renamed without changes.
File renamed without changes.

build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,9 @@ allprojects {
6060
}
6161
}
6262
}
63+
64+
// run spotlessApply for build-logic module when running spotlessApply on the root
65+
tasks.spotlessApply { dependsOn(gradle.includedBuilds.map { it.task(":spotlessApply") }) }
66+
67+
// run check for build-logic module when running check on the root
68+
tasks.check { dependsOn(gradle.includedBuilds.map { it.task(":check") }) }

settings.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
rootProject.name = "substrait"
22

3+
includeBuild("build-logic")
4+
35
include("bom", "core", "isthmus", "isthmus-cli", "spark", "examples:substrait-spark")
46

57
pluginManagement {

0 commit comments

Comments
 (0)