-
Notifications
You must be signed in to change notification settings - Fork 112
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
Optimize imports with Eclipse IDE to remove unused test imports #582
Optimize imports with Eclipse IDE to remove unused test imports #582
Conversation
https://ci.eclipse.org/jakartaee-tck/job/jakartaee-tck-scottmarlow/job/optimize_imports_eclipse/1/testReport/ had some test failures that need to be looked into. |
Somehow |
90426ec
to
f7bf2a2
Compare
I see the build has failures in this run. One of the causes is "import com.sun.jmx.mbeanserver.Repository.RegistrationContext" missing? |
thanks @alwin-joseph , I'll revert the removal of that. I added the Jakarta SPEC API jar to my Eclipse IDE project but I suspect the project still is missing classes like the com.sun.jmx.mbeanserver.Repository.RegistrationContext dependency. |
From searching the build logs for I didn't see any references to com.sun.jmx.mbeanserver.Repository.RegistrationContext or RegistrationContext in the |
dcc9aa0
to
59d2248
Compare
I started https://ci.eclipse.org/jakartaee-tck/job/jakartaee-tck-scottmarlow/job/optimize_imports_eclipse/4/testReport/ this morning after addressing some of the missing imports. I'll look in the build log after for more |
I see the compile failure for webservices now. Looks like a number of extra unneeded imports were added by Eclipse that cause the compile failures. It is likely that Intellij + Eclipse would of done a better job of eliminating the unneeded imports if I had added all of the proper dependencies to the Intellij/Eclipse project. Lesson learned :) For example:
The |
…rted webservices changes Signed-off-by: Scott Marlow <[email protected]>
59d2248
to
6169ab9
Compare
There were too many bad webservices changes, so reverted those and squashed the rest. Will build/test again now. |
https://ci.eclipse.org/jakartaee-tck/job/jakartaee-tck-scottmarlow/job/optimize_imports_eclipse/5/ passed the Full Platform tests. |
Next will be updating copyright date to 2020, I think that a glassfish-copyright-plugin change will be needed to deal with some Apache copyright statements. |
Signed-off-by: Scott Marlow <[email protected]>
The copyright date was updated to 2020. I created eclipse-ee4j/glassfish-copyright-plugin#23 for better handling of the Apache v1.1 license references (I didn't create a pr for the glassfish-copyright-plugin issue). |
Addressed! |
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.
LGTM
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.
LGTM!!!
Eliminated the unused Java imports in support of running the https://gist.github.com/scottmarlow/d4a13d15e7c0ea83d35004445b4b84f0 script to product the https://gist.github.com/scottmarlow/0e31e5256507ad0e5c78b3f274d8d4a7 output that shows the per (Jakarta EE Platform TCK) test group dependencies and number of Platform SPEC assertions as well (per test group).