-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compile and run with java 11, but require java 17 to run gradle
The bnd (osgi) plugin requires 17 or above. The Gradle toolchain will ensure that java 11 is installed (automatically if absent), compile, and the class version will be 11 based. The build tool alone will require 17 or above. This is how the github action is already set up, so there is zero change except for local dev and jitpack snapshots.
- Loading branch information
Showing
5 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
11.0 | ||
17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,6 @@ tasks.withType<DependencyUpdatesTask> { | |
} | ||
} | ||
} | ||
force(libs.bnd) | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
before_install: | ||
- source "$HOME/.sdkman/bin/sdkman-init.sh" | ||
- sdk update | ||
- sdk install java 11.0.13-zulu | ||
- sdk use java 11.0.13-zulu | ||
- sdk install java 11.0.13-zulu # gradle toolchain | ||
- sdk install java 17.0.9-zulu # gradle build | ||
- sdk use java 17.0.9-zulu |