forked from google/error-prone
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
By default Jitpack builds with Java 11.0.2 and Maven 3.6.1. Additionally, its read-only `/script/toolchains.xml` file points to at least one nonexistent JDK home directory. See jitpack/jitpack.io#5795. These days Error Prone releases are built using JDK 17 and require at least Maven 3.6.3. Additionally, its `maven-toolchains-plugin` configuration rejects invalid `toolchains.xml` configurations. As such this change uses SDKMAN! to configure recent Java and Maven versions, and modifies the build by disabling Maven Toolchains usage.
- Loading branch information
1 parent
4294aac
commit 9061447
Showing
2 changed files
with
8 additions
and
20 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
before_install: | ||
- mvn -version | ||
- source "${HOME}/.sdkman/bin/sdkman-init.sh" | ||
- sdk update | ||
- sdk install java 17.0.12-tem | ||
- sdk use java 17.0.12-tem | ||
- sdk install maven 3.9.9 | ||
- sdk use maven 3.9.9 |
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