➜ ./gradlew jar
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/ml/projects/java-hello-world/build.gradle' line: 15
* What went wrong:
Could not determine the dependencies of task ':jar'.
> Could not get unknown property 'compile' for configuration container of type org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer.
* 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
BUILD FAILED in 582ms
Gradle version: 7.3.2
tutorials/gradle/gradle-fat-jar/build.gradle
Line 23 in 0cf6490
Fix seems to change
compiletoruntimeClasspathMore information:
https://docs.gradle.org/current/userguide/upgrading_version_6.html#sec:configuration_removal