This feature requires ASM8_EXPERIMENTAL - task bootJar - Gradle/SpringBoot

less than 1 minute read

So you get:

Execution failed for task ‘:bootJar’

$ .\gradlew build

> Task :compileJava
Note: uses preview language features.
Note: Recompile with -Xlint:preview for details.

> Task :bootJar FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':bootJar'.
> This feature requires ASM8_EXPERIMENTAL

* 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



Update spring-boot to the latest version. The minimum is 2.2.6.RELEASE.

The reason is the ASM dependency that needed to be updated. The ASM is referenced by the spring framework, which is referenced by spring-boot.

Leave a Comment