Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-9555

Kotlin example incompatible with Gradle 6

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Duplicate
    • None
    • Not applicable
    • examples-java
    • 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

          Activity

            People

              Unassigned Unassigned
              xuebingli Xuebing Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: