Skip to content

Commit ebfeb62

Browse files
committed
Apply spotless plugin declaratively
1 parent 3d639e2 commit ebfeb62

File tree

6 files changed

+7
-3
lines changed

6 files changed

+7
-3
lines changed

build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ subprojects {
9191
mavenCentral()
9292
}
9393

94-
if (project !== project(':test-platform')) {
95-
apply plugin: 'com.diffplug.spotless'
94+
if (project.plugins.hasPlugin('com.diffplug.spotless')) {
9695
spotless {
9796
java {
9897
googleJavaFormat()
@@ -130,7 +129,7 @@ String getGitCommitOrUnknown() {
130129

131130
subprojects { project ->
132131

133-
if (project.plugins.hasPlugin('scala')) {
132+
if (project.plugins.hasPlugin('scala') && project.plugins.hasPlugin('com.diffplug.spotless')) {
134133
project.scalafix {
135134
configFile = rootProject.file('scalafix.conf')
136135

webauthn-server-attestation/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33
id 'scala'
44
id 'maven-publish'
55
id 'signing'
6+
id 'com.diffplug.spotless'
67
id 'info.solidsoft.pitest'
78
id 'io.github.cosmicsilence.scalafix'
89
}

webauthn-server-core/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33
id 'scala'
44
id 'maven-publish'
55
id 'signing'
6+
id 'com.diffplug.spotless'
67
id 'info.solidsoft.pitest'
78
id 'io.github.cosmicsilence.scalafix'
89
}

webauthn-server-demo/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33
id 'war'
44
id 'application'
55
id 'scala'
6+
id 'com.diffplug.spotless'
67
id 'io.github.cosmicsilence.scalafix'
78
}
89

yubico-util-scala/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
scala
3+
id("com.diffplug.spotless")
34
id("io.github.cosmicsilence.scalafix")
45
}
56

yubico-util/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33
scala
44
`maven-publish`
55
signing
6+
id("com.diffplug.spotless")
67
id("info.solidsoft.pitest")
78
id("io.github.cosmicsilence.scalafix")
89
}

0 commit comments

Comments
 (0)