Jitpack.io: Can't compile artifact for java 15

Created on 25 Oct 2020  路  5Comments  路  Source: jitpack/jitpack.io

Packaging ends up with an error
2020-10-26_00-27-03
Report shows

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project table-wrapper-api: Fatal error compiling: invalid target release: 15 -> [Help 1]

Most helpful comment

All 5 comments

I found solution for java 14 in gh-4260.

$ cat jitpack.yml
before_install:
  - wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
  - source install-jdk.sh --feature 14
  - jshell --version

But it does not work for java 15. Can you add support for openjdk15? Usual configuration way

$ cat jitpack.yml
jdk:
  - openjdk14 # or openjdk15

will be best solution. Thanks!

I am in the same situation, trying to compile a java 15 project.

@vananiev , I am now with this situation.

sormuras/bach project now supposedly supports Java 15 and for what I understood Java 16, but I have not tested it yet. I'm going to try sdkman

I'm stucking in this situation too, and this one works

Was this page helpful?
0 / 5 - 0 ratings