Skip to content

Commit

Permalink
#757 Add update instructions for gradle wrapper
Browse files Browse the repository at this point in the history
Signed-off-by: Nigel Jones <[email protected]>
  • Loading branch information
planetf1 committed May 12, 2023
1 parent 5b5d32d commit 65bed5d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions site/docs/guides/contributor/guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,28 @@ An example is spring where we also include tomcat:
- "*spring*"
- "*tomcat*"
```
### Language environments - ie Java, Python etc
#### Java
The compiler/language version should be reviewed periodically. For Java we have moved from 8, to 11, to 17. Usually we aim to use the current LTS after it has been out for a while. For java 11-17 this was around a year.
### Build tools
Build tool versions should also be kept up to date.
#### Gradle
We update the [Gradle wrapper](https://docs.gradle.org/current/userguide/gradle_wrapper.html) at the same time as handling dependabot updates. Minor versions are usually compatible. Major versions may require changes, but any incompatibilities are usually reported as gradle warnings with the previous version, so these should be acted on promptly.
To update the gradle wrapper use:
```xml
./gradlew wrapper --gradle-version=latest
```

The build should then be tested.

Any warnings related to changing in the future release should be actioned to avoid future issues.


--8<-- "snippets/abbr.md"

0 comments on commit 65bed5d

Please sign in to comment.