Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support JDK 15 #14

Closed
izeye opened this issue Sep 22, 2020 · 3 comments
Closed

Support JDK 15 #14

izeye opened this issue Sep 22, 2020 · 3 comments
Assignees

Comments

@izeye
Copy link

izeye commented Sep 22, 2020

JDK 15 doesn't seem to be supported yet. If I run bootBuildImage task from Spring Boot Gradle plugin with sourceCompatibility set to be 15, the following error occurs:

    [creator]     Paketo BellSoft Liberica Buildpack 3.2.0
    [creator]       https://github.com/paketo-buildpacks/bellsoft-liberica
    [creator]       Build Configuration:
    [creator]         $BP_JVM_VERSION              15.*            the Java version
    [creator]       Launch Configuration:
    [creator]         $BPL_JVM_HEAD_ROOM           0               the headroom in memory calculation
    [creator]         $BPL_JVM_LOADED_CLASS_COUNT  35% of classes  the number of loaded classes in memory calculation
    [creator]         $BPL_JVM_THREAD_COUNT        250             the number of threads in memory calculation
    [creator]         $JAVA_TOOL_OPTIONS                           the JVM launch flags
    [creator]       No valid JRE available, providing matching JDK instead. Using a JDK at runtime has security implications.
    [creator]     
    [creator]     Paketo BellSoft Liberica Buildpack 3.2.0
    [creator]       unable to find dependency
    [creator]       no valid dependencies for jdk, 15.*, and io.buildpacks.stacks.bionic in [(jre, 8.0.265, [io.buildpacks.stacks.bionic org.cloudfoundry.stacks.cflinuxfs3]) (jre, 11.0.8, [io.buildpacks.stacks.bionic org.cloudfoundry.stacks.cflinuxfs3]) (jre, 14.0.2, [io.buildpacks.stacks.bionic org.cloudfoundry.stacks.cflinuxfs3]) (jdk, 8.0.265, [io.buildpacks.stacks.bionic org.cloudfoundry.stacks.cflinuxfs3]) (jdk, 11.0.8, [io.buildpacks.stacks.bionic org.cloudfoundry.stacks.cflinuxfs3]) (jdk, 14.0.2, [io.buildpacks.stacks.bionic org.cloudfoundry.stacks.cflinuxfs3]) (jvmkill, 1.16.0, [io.buildpacks.stacks.bionic org.cloudfoundry.stacks.cflinuxfs3])]
    [creator]     ERROR: failed to build: exit status 1

> Task :bootBuildImage FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':bootBuildImage'.
> Builder lifecycle 'creator' failed with status code 145
nebhale added a commit that referenced this issue Sep 23, 2020
This change adds the placeholders for Java 15 support.

[#14]

Signed-off-by: Ben Hale <bhale@vmware.com>
@nebhale nebhale self-assigned this Sep 23, 2020
@nebhale
Copy link
Member

nebhale commented Sep 24, 2020

Thanks for the nudge. Bellsoft Liberica and all other JVM's that released 15's (for example, Corretto and GraalVM did not) now released with 15.0.0 included. Expect another release next month with 15.0.1 in it.

@nebhale nebhale closed this as completed Sep 24, 2020
@JeremyTwiggs
Copy link

I know this issue is closed, but I thought I'd add a comment for others who might end up here...

Today we started getting No valid JRE available for BP_JVM_VERSION = 14.*

Switching to either 15.* or just using the default (11.*) got us over this problem.

@benleb
Copy link

benleb commented Nov 8, 2020

same problem like @JeremyTwiggs -.-^ Would be cool if we could get 14.* back, at least for a few weeks 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants