According to Cannot add task 'wrapper' as a task with that name already exists CircleCI uses
- the
task wrapper(type: Wrapper) {
[...]}
syntax inconfig.yml
(tested: no, it doesn't in my case) - the
wrapper {
[...]}
syntax inconfig.yml
(tested: no, it doesn't in my case) - takes the version from
gradle-wrapper.properties
(tested: no, it doesn't in my case)
Every time my tests end up with CircleCI using gradle v6.2.2 - but Spring Boot plugin requires Gradle 5 (5.6.x only) or Gradle 6 (6.3 or later).
I also can't understand, why https://stackoverflow.com/a/54741656/7773582 refers to
wrapper {
gradleVersion = '4.4'
distributionUrl = distributionUrl.replace("bin", "all")
}
when there is an -all
-package and also a -bin
-package for every gradle wrapper version in https://services.gradle.org/distributions? Maybe someone can tell me the background to this?
How can I convince CircleCI to download and use the gradle wrapper I use in my development environment and build?