Update Gradle Wrapper

Individual Repos

  • Update the version number in your root build.gradle file (e.g. 1.7->1.8):

task wrapper(type: Wrapper) {
    gradleVersion = '1.8'
}
  • Run ./gradlew wrapper in the root of your project.

  • Run git status, git diff to check things - should be similar to this example commit.

  • Commit, push.
  • Send us a pull request with the changes.

/!\ If you get errors running ./gradlew wrapper, try commenting all subprojects in settings.gradle so that it doesn't fall over due to subproject problems.

Centralised Changes

We currently set a default version of the gradle wrapper in rosjava-android when creating packages/projects with the catkin_create_xxx scripts.

You can easily change the version you use in your own project after executing the scripts, but to upgrade the default version used by the scripts, do the following.

  • Make a request on the rosjava sig mailing list

  • Fork rosjava_build_tools

  • Update src/rosjava_build_tools/gradle with gradle jars/files corresponding to the new version (i.e. the ones that got modified after you ran ./gradle wrapper in each repo).

  • Update the gradle version number in build.gradle.in for src/rosjava_build_tools/templates/rosjava_package and android_package directories. e.g.

task wrapper(type: Wrapper) {
    gradleVersion = '1.8' /* this number */
}
  • Send us a pull request.

Wiki: rosjava/FAQ/Upgrade Gradle Wrapper (last edited 2014-03-20 03:10:46 by DanielStonier)