Details
-
Bug
-
Status: Resolved
-
P2
-
Resolution: Duplicate
-
None
-
None
Description
When compiling Kotlin example with Gradle 6, the following error appears. Note the "What went wrong" section.
$ gradle build Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details > Task :buildSrc:spotlessGroovy FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':buildSrc:spotlessGroovy'. > You must declare outputs or use `TaskOutputs.upToDateWhen()` when using the incremental task API * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.2.2/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 4s
The cause is likely outdated version of spotless. This GitHub issue mentions the exact same error.
P.S. I chose examples-java as this Jira issue's component because examples-kotlin is not an option.
Attachments
Issue Links
- duplicates
-
BEAM-9456 Upgrade to gradle 6.6.1
- Resolved