Skip to content

Commit 9fe13c4

Browse files
committed
Don't apply spotless plugin to test-platform subproject
1 parent 2359971 commit 9fe13c4

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

build.gradle

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ allprojects {
6262
ext.dirtyMarker = "-DIRTY"
6363

6464
apply plugin: 'com.cinnober.gradle.semver-git'
65-
apply plugin: 'com.diffplug.spotless'
6665
apply plugin: 'idea'
6766

6867
group = 'com.yubico'
@@ -91,12 +90,15 @@ subprojects {
9190
mavenCentral()
9291
}
9392

94-
spotless {
95-
java {
96-
googleJavaFormat()
97-
}
98-
scala {
99-
scalafmt('2.6.3').configFile(rootProject.file('scalafmt.conf'))
93+
if (project !== project(':test-platform')) {
94+
apply plugin: 'com.diffplug.spotless'
95+
spotless {
96+
java {
97+
googleJavaFormat()
98+
}
99+
scala {
100+
scalafmt('2.6.3').configFile(rootProject.file('scalafmt.conf'))
101+
}
100102
}
101103
}
102104
}

0 commit comments

Comments
 (0)