Skip to content

Commit 6f8098c

Browse files
committed
Run scalafix before spotless
Otherwise scalafix runs into issues because the sources in the file system change between compiling them (which builds a semantic database during compilation) and scalafix-ing them.
1 parent ecda765 commit 6f8098c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ subprojects { project ->
133133
configFile = rootProject.file('scalafix.conf')
134134
}
135135
dependencies.scalafix('com.github.liancheng:organize-imports_2.13:0.5.0')
136-
project.tasks.scalafix.dependsOn(project.tasks.spotlessApply)
137-
project.tasks.checkScalafix.dependsOn(project.tasks.spotlessCheck)
138-
project.tasks.spotlessApply.finalizedBy(project.tasks.scalafix)
139-
project.tasks.spotlessCheck.finalizedBy(project.tasks.checkScalafix)
136+
project.tasks.spotlessApply.dependsOn(project.tasks.scalafix)
137+
project.tasks.spotlessCheck.dependsOn(project.tasks.checkScalafix)
138+
project.tasks.scalafix.finalizedBy(project.tasks.spotlessApply)
139+
project.tasks.checkScalafix.finalizedBy(project.tasks.spotlessCheck)
140140
}
141141

142142
tasks.withType(JavaCompile) {

0 commit comments

Comments
 (0)