I fetched a git project to look at some samples. These where located here https://github.com/spring-projects/spring-security
I noticed that it used Gradle so went and got this and installed it from here https://gradle.org/next-steps/?version=7.0&format=bin . It auto triggered to download this version so I figured they know what is right and accepted what was offered.
Went to the latest branch/tag 5.4.x of the spring security sample mentioned above and did a gradle clean just to give it a nice easy go.
Failure Behavior
$ gradle clean
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Alan\Repos\github\spring-projects\spring-security\buildSrc\build.gradle' line: 21
* What went wrong:
A problem occurred evaluating project ':buildSrc'.
> Could not find method compile() for arguments [com.thaiopensource:trang:20091111] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
* 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 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 5s