eclipse-ee4j / eclipse-ee4j/jersey

Jersey breaks JDK (java) 8 support by way of new hk2 dependency

Open
#3,617 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

Here's my maven output, which shows a class file being compiled for JDK 1.9 and up only.

[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-bytecode-version) @ apptegic-server ---
[INFO] Restricted to JDK 1.8 yet org.glassfish.hk2.external:asm-all-repackaged:jar:2.5.0-b30:compile contains module-info.class targeted to 53.0
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.EnforceBytecodeVersion failed with message:
Found Banned Dependency: org.glassfish.hk2.external:asm-all-repackaged:jar:2.5.0-b30
Use 'mvn dependency:tree' to locate the source of the banned dependencies.

Here'es the dependency:tree output showing that it's a newer version of hk2 (with a newer version of asm inside of it) being the culprit:

[INFO] +- org.glassfish.jersey.ext:jersey-spring3:jar:2.25.1:compile
[INFO] | +- org.glassfish.hk2:hk2:jar:2.5.0-b32:compile
[INFO] | | +- org.glassfish.hk2:config-types:jar:2.5.0-b32:compile
[INFO] | | +- org.glassfish.hk2:hk2-core:jar:2.5.0-b32:compile
[INFO] | | +- org.glassfish.hk2:hk2-config:jar:2.5.0-b32:compile
[INFO] | | | +- org.jvnet:tiger-types:jar:1.4:compile
[INFO] | | | \- org.hibernate:hibernate-validator:jar:5.2.4.Final:compile
[INFO] | | | +- org.jboss.logging:jboss-logging:jar:3.2.1.Final:compile
[INFO] | | | \- com.fasterxml:classmate:jar:1.1.0:compile
[INFO] | | +- org.glassfish.hk2:hk2-runlevel:jar:2.5.0-b32:compile
[INFO] | | \- org.glassfish.hk2:class-model:jar:2.5.0-b32:compile
[INFO] | | \- org.glassfish.hk2.external:asm-all-repackaged:jar:2.5.0-b32:compile
[INFO] | \- org.glassfish.hk2:spring-bridge:jar:2.5.0-b32:compile

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.