cortinico/ktfmt-gradle

Circular dependency between tasks caused by Spring Boot native build

Closed this issue ยท 1 comments

๐Ÿ› Describe the bug

When Spring Native build is used ("org.graalvm.buildtools.native") Gradle complains about circular dependency.

โš ๏ธ Current behavior

Circular dependency between the following tasks:
:classes
\--- :compileJava
     \--- :compileKotlin
          +--- :ktfmtCheckAot
          |    \--- :processAot
          |         +--- :classes (*)
          |         +--- :compileJava (*)
          |         +--- :compileKotlin (*)
          |         \--- :resolveMainClassName
          |              +--- :classes (*)
          |              +--- :compileJava (*)
          |              \--- :compileKotlin (*)
...

โœ… Expected behavior

I expect it to pass

๐Ÿ’ฃ Steps to reproduce

Clone https://github.com/lukas-krecan/ktfmt-native and run ./gradlew check

The project was genberated by https://start.spring.io/ and ktfmt plugin added, nothing special.

Thansk for the repro @lukas-krecan, this was really valuable in helping me fix this.