Skip to content

Commit 48547a9

Browse files
Moved Spotless config to root script.
1 parent 5ae306c commit 48547a9

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

buildSrc/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ plugins {
77
}
88

99
spotless {
10+
java {
11+
toggleOffOn()
12+
target("**/*.java")
13+
14+
googleJavaFormat("1.32.0")
15+
}
16+
1017
kotlin {
1118
toggleOffOn()
1219
target("**/*.kt")

buildSrc/call-site-instrumentation-plugin/build.gradle.kts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
plugins {
22
java
33
groovy
4-
id("com.diffplug.spotless") version "8.1.0"
54
id("com.gradleup.shadow") version "8.3.6"
65
}
76

@@ -10,17 +9,6 @@ java {
109
targetCompatibility = JavaVersion.VERSION_1_8
1110
}
1211

13-
spotless {
14-
java {
15-
toggleOffOn()
16-
// set explicit target to workaround https://github.com/diffplug/spotless/issues/1163
17-
target("src/**/*.java")
18-
// ignore embedded test projects
19-
targetExclude("src/test/resources/**")
20-
googleJavaFormat("1.32.0")
21-
}
22-
}
23-
2412
apply {
2513
from("$rootDir/../gradle/repositories.gradle")
2614
}

0 commit comments

Comments
 (0)