I understand that Gradle wrapper will be the preferred way for running Gradle (somewhat like daemon will be in 3.0). I’m starting a new project and want to use wrapper.
Main problem is that the client has specific non-functional requirement for the source repository – no jar files (or other non-specific binary formats are allowed) cannot be versioned.
How can I bootstrap wrapper for the build and download
gradle-wrapper.jar initially? Is there any official solution for this? The manual states that “All of these files should be submitted to your version control system.” (including
There are several ways for doing this:
- adding a manual step in building instructions
- adding a separate script for downloading the distribution and extracting jar
gradlewscript itself to download & extract.
Manual step in instructions are cumbersome and scripting seems a bit hacky.
Any other solution?