== 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 [[https://github.com/rosjava/android_core/commit/ab9b7538e15e92ff17ba6c1bbae562d7a5c81cfc|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 [[https://groups.google.com/group/ros-sig-java|rosjava sig mailing list]]
 * Fork [[https://github.com/rosjava/rosjava_build_tools|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.