-
Notifications
You must be signed in to change notification settings - Fork 273
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
[WIP] Java 10 Support #1007
[WIP] Java 10 Support #1007
Conversation
@ChristianMurphy thanks for taking a look at this. We are testing at OU with OpenJDK 9. |
No problem, 😄 |
@ChristianMurphy @Josh31415 is looking at this issue. Looks like we have a few JAXB issues. Josh will fill in the details as he moves along. |
d5f7113
to
d1ccca8
Compare
Rebased changes off of latest master, Gradle 4.2.1 resolved some conflicts between Gradle and openJDK 9. |
@ChristianMurphy I am working on the javax.annotation.Generated class not found error. The problem seems to be that the javax.annotation package was moved to the java.xml.ws.annotation module. |
Thanks @JoshBrudnak! 🙇 |
d1ccca8
to
7a124e5
Compare
rebased on current master |
7a124e5
to
19d5b40
Compare
Rebased on master, re-adds error prone, which now supports Java 9. |
@JoshBrudnak any luck looking into the generated class not found error? |
19d5b40
to
3692260
Compare
@ChristianMurphy Yes I was able to fix the generated class error by adding its new path to the dependencies list. There is also an problem with the jaxb dependencies in uPortal-api/uPortal-api-search that I am currently working on. |
Awesome, thanks @JoshBrudnak! |
@ChristianMurphy Yes, will do 👍. I was also able to get the jaxb dependencies problem resolved. |
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.
Thanks @JoshBrudnak!
gradle.properties
Outdated
@@ -38,6 +38,7 @@ servletApiDependency=javax.servlet:javax.servlet-api:3.0.1 | |||
portletApiDependency=org.apache.portals:portlet-api_2.1.0_spec:1.0 | |||
|
|||
# Dependency Versions | |||
activationVersion:1.0.2 |
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.
❓ is activationVersion:1.0.2
intended here or should this be activationVersion=1.0.2
?
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.
No, that was a mistake sorry.
@@ -78,6 +80,9 @@ dependencies { | |||
compileOnly "${servletApiDependency}" | |||
} | |||
|
|||
sourceCompatibility = '9' |
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.
🤔 its interesting that this needed to be set here.
I thought allprojects
would have covered this 🤷♂️
build.gradle
Outdated
@@ -75,7 +75,7 @@ allprojects { | |||
} | |||
|
|||
// Version has to be set directly here, using a variable does not set Java compatability version | |||
sourceCompatibility = 1.8 | |||
sourceCompatibility = 1.9 |
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.
❓ Open Question ❓
How do we want to handle Java versions with Semantic Versioning?
Upgrading from Java 8 to Java 9 could be considered breaking change (major), however Java 9 is something that would be valuable to get into the 5.x release line.
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.
My thought is would be to set a lower target compatibility allowing this to be added in a feature (minor) release.
sourceCompatibility = 1.9
targetCompatibility = 1.8
Then removing the backwards target in uPortal 6.
🚧 👷♂️ 🐧 ⛔ CI is running into issues with JpaClusterLockDao
https://travis-ci.org/Jasig/uPortal/jobs/301570883#L1008-L1009 |
drop Java 8 from test matrix
fa9a153
to
4868f54
Compare
Fwiw, if you want Java 10 support for Error Prone, you need to use I'm working on bringing the configuration of |
Thanks @tbroyer! 🙇
We are moving toward using Java 10+ and dropping Java <= 9 support. |
The merge conflicts are becoming untenable, closing this. |
🏗️ Work in Progress
Checklist
Description of change
Proof of concept investigating what changes will be needed to support Java 9.
🔲 TODO
☑️ Done