-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Directory 'build/spotless/spotlessKotlin' specified for property 'spotlessOutDirectory' does not exist #741
Comments
The problem is solved if I specify Kotlin targets: diff --git a/build.gradle b/build.gradle
index 80187b5..442ebe2 100644
--- a/build.gradle
+++ b/build.gradle
@@ -122,6 +122,7 @@ subprojects {
endWithNewline()
}
kotlin {
+ target '**/src/**/*.kt', '**/src/**/*.kts'
ktlint()
}
} |
Now the problem has solved itself. 😕 I'm confused. |
Interesting. Each format has three tasks. In your case, there is The job of The other two tasks, For a clean build, the directory needed by spotless/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessTask.java Lines 140 to 143 in d9474fb
spotless/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessCheck.java Lines 46 to 50 in d9474fb
spotless/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessApply.java Lines 43 to 47 in d9474fb
Since |
Related to this, we should enable support for |
… they don't have any outputs (fixes #741).
Fixed in |
Thanks, I'll try it ASAP and you'll hear from me if anything's wrong (but I don't expect any issues 😉). |
Gradle 6.7.1
Spotless 5.8.2
macOS 10.14.6 (18G6042)
and a link to a public git repo that reproduces the problem if possiblegradlew spotless[Apply/Check] --stacktrace
See summary above.
The text was updated successfully, but these errors were encountered: