-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix handling jars without manifest #2
Fix handling jars without manifest #2
Conversation
32230a3
to
cd7a5c4
Compare
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.
@iherasymenko Thanks for this fix! Could you please not bump the Gradle version. I want to stay on 6.4 to make sure the plugin works with 6.4 as minimal version.
And would you mind adding a test that reproduces the NPE with "javax.inject-1.jar"? You can add a test with a minimal build doing that to ExtraJavaModuleInfoTest
.
cd7a5c4
to
29f32d5
Compare
@jjohannes thanks for the review. I applied the changes that you requested. Btw, in order to make sure the plugin is compatible with 6.4, we could amend the test runner declaration with the "withGradleVersion" option. I.e. make it looks as follows.
I can create a separate PR with the version bump and this change. |
29f32d5
to
07dd135
Compare
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 for adding the tests @iherasymenko. This looks good now.
Thanks for offering to do another PR to bump the Gradle version, but I would like to keep the it as it is to compile against the right gradleApi()
as long as there is not very good reason to move to a newer version.
I'll merge this and do a new release of the plugin soon.
I just stumbled upon this issue (also with |
@msgilligan there is a properly modularized version of I solved the issue as follows by substituting one with the other.
|
@iherasymenko @msgilligan I just published 0.2 which includes this fix. Let me know if you encounter any issues. |
@iherasymenko Thanks! I didn't know you could do that. That may come in handy in the future. @jjohannes 0.2 seems to be working for me. Thanks! |
An example of such a jar: https://repo1.maven.org/maven2/javax/inject/javax.inject/1/javax.inject-1.jar
P.S. I know that there's a properly modularized Jakarta EE replacement, but I believe the plugin should still support the subject and do not throw an NPE if it encounters a jar like that.