-
Notifications
You must be signed in to change notification settings - Fork 54
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
Adding build and runtime support for open jdk 11 #71
Conversation
* Removed unused retrofit library
nice! reviewing now. |
Makefile
Outdated
@@ -13,7 +13,7 @@ build: | |||
./mvnw clean install -B | |||
|
|||
run: | |||
java -Xmx2G -server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Djava.awt.headless=true -jar assembly/target/stream-registry*SNAPSHOT.jar server config-dev.yaml | |||
java --add-opens java.base/java.lang=ALL-UNNAMED -Xmx2G -server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Djava.awt.headless=true -jar assembly/target/stream-registry*SNAPSHOT.jar server config-dev.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to leave a comment or reference for others in a breadcrumb comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
along with instructions of what to add when we target jdk11 runtime (vs jdk8 runtime)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a rebase. The run command no longer looks like this
https://github.com/homeaway/stream-registry/blob/master/Makefile#L20-L21
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-based saketanisha:openjdk11
with homeaway:master
. As part of the merge updated STREAM_REGISTRY_JAVA_OPTS
and STREAM_REGISTRY_DEBUG_OPTS
in Makefile
with appropriate JDK flag ( i.e. --add-opens java.base/java.lang=ALL-UNNAMED
)
<groupId>javax.xml.bind</groupId> | ||
<artifactId>jaxb-api</artifactId> | ||
<scope>runtime</scope> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we specify this scope at the parent level?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also.. since this was deprecated in jdk9 doesn't this mean the jdk runtime will not supply it anymore?
If we are expecting this at runtime should we add a --add_modules
to startup scripts?
https://blog.codefx.org/java/five-command-line-options-hack-java-module-system/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previous comment (--add_modules
) ... disregard.
We still want to target JDK8 runtime for now for clients that haven't switched to JDK11. We will likely fix this when we switch to JDK11 target runtime in some future release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved <scope>runtime</scope>
to parent pom.xml
core/pom.xml
Outdated
<dependency> | ||
<groupId>org.ow2.asm</groupId> | ||
<artifactId>asm</artifactId> | ||
<version>7.0</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7.0
is repeated a lot. Can we make it a property?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to asm.version
property.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where's the change ? ${asm.version}
core/pom.xml
Outdated
<dependency> | ||
<groupId>org.ow2.asm</groupId> | ||
<artifactId>asm</artifactId> | ||
<version>7.0</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where's the change ? ${asm.version}
Update CHANGELOG.md with the changes made in this PR. Please target a new milestone: |
stream-registry PR
Tweaked stream-registry base pom to build and run against Open JDK 11
Changed
pom.xml
withjaxb-api
dependencycore/pom.xml
to consumejaxb-api
dependency at runtimepom.xml
--add-opens java.base/java.lang=ALL-UNNAMED
option to java command inMakefile
. This is to alleviateIllegal reflective access by com.fasterxml.jackson.module.afterburner.util.MyClassLoader to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
. We may revisit this in near future once the underlying 3rd party libs extends support for JDK 11PR Checklist Forms