mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 01:46:46 +00:00
feat: added support to build.gradle
This commit is contained in:
parent
d878c91127
commit
934495da49
5 changed files with 215 additions and 2 deletions
|
@ -485,4 +485,8 @@ It is able to parse the following files as `java-version-file`:
|
|||
- Maven compiler plugin
|
||||
- Setting the [source](https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html).
|
||||
- Setting the [release](https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-release.html).
|
||||
- **Note:** Since we are using a RegExp to find the java version, it doesn't grab the values from the tags `source` or `release` on `maven-compiler-plugin`.
|
||||
- `build.gradle`
|
||||
- Java library plugin: uses what is defined by `JavaLanguageVersion` example: `JavaLanguageVersion.of(11)`
|
||||
- Java plugin [docs](https://docs.gradle.org/current/userguide/java_plugin.html#toolchain_and_compatibility):
|
||||
- sourceCompatibility
|
||||
- targetCompatibility
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue