You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Xuebing Li (Jira)" <ji...@apache.org> on 2020/03/19 12:20:00 UTC
[jira] [Created] (BEAM-9555) Kotlin example incompatible with
Gradle 6
Xuebing Li created BEAM-9555:
--------------------------------
Summary: Kotlin example incompatible with Gradle 6
Key: BEAM-9555
URL: https://issues.apache.org/jira/browse/BEAM-9555
Project: Beam
Issue Type: Bug
Components: examples-java
Reporter: Xuebing Li
When compiling Kotlin example with Gradle 6, the following error appears. Note the "What went wrong" section.
{noformat}
$ 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
{noformat}
The cause is likely outdated version of spotless. [This GitHub issue|https://github.com/diffplug/spotless/issues/440] mentions the exact same error.
P.S. I chose _examples-java_ as this Jira issue's component because _examples-kotlin_ is not an option.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)