Skip to content

Commit

Permalink
Customise JDK version
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Castel committed Nov 29, 2020
1 parent a8d8144 commit 40e7e8f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM qcastel/maven-release:0.0.11
FROM qcastel/maven-release:0.0.13

COPY ./release-github-actions.sh /usr/local/bin
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Maven release uses Git behind it, therefore there were a few features related in
- Signing the commits (GPG) resulting from the maven release [[GPG](#setup-a-gpg-key)]
- Authenticating to private repository using an SSH key [[SSH](#setup-with-ssh)]
- Configuring the git username and email [[Bot](#customise-the-bot-name)]
- Configuring the jdk version [[JDK](#jdk-version)]

You may want to configure a bit maven too. We added the following features:
- Specify the maven project path. In other words, if your maven project is not at the root of your repo, you can configure a sub path. [[Custom project path](#customise-the-m2-folder-path)]
Expand Down Expand Up @@ -207,6 +208,38 @@ See https://maven.apache.org/maven-release/maven-release-plugin/prepare-mojo.htm
maven-options: "-DbranchName=hotfix"
```
### JDK version
You may want to compile your project with a specific JDK version. You will need to specify the JAVa_HOME variable with the according value.
If you need a specific jdk version that is not in the list, please raise an issue in this github action to request it.
#### JDK 8
```yaml
env:
JAVA_HOME: /usr/lib/jvm/java-1.8-openjdk/
```
#### JDK 11
```yaml
env:
JAVA_HOME: /usr/lib/jvm/java-11-openjdk/
```
#### JDK 14
```yaml
env:
JAVA_HOME: /usr/lib/jvm/java-14-openjdk/
```
#### JDK 15
```yaml
env:
JAVA_HOME: /usr/lib/jvm/java-15-openjdk/
```
### Customise the bot name
You can simply customise the bot name as follows:
Expand Down

0 comments on commit 40e7e8f

Please sign in to comment.