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
4.4-rc-1 regression: NullPointerException with shadow plugin 1.2.4 #3589
Comments
Note this happens inside a code block that was explicitly kept for backwards compatibility with older versions of the shadow plugin. gradle/subprojects/plugins/src/main/java/org/gradle/api/internal/java/JavaLibrary.java Lines 69 to 81 in 1786557
We could consider to remove this code altogether. That would still give an error, but one that would hint at the fact that you need to upgrade the plugin. Shadow plugin 2.0.0+ seems to work. |
@huxi we are considering to remove the JavaLibrary construct that causes the issue. It is internal API that is not really supported anymore. However, shadow plugin |
We actually made the decision to upgrade our plugin integration tests for the shadow plugin: #3080 PR for removing the deprecated internal constructor that can produce the NPE reported in this issue: #3591 |
I'm still using 1.2.4 of the plugin because 2.0.x fails to work for me and I didn't have the time to isolate the problem for a proper bug report over at the shadow project. The fact that 2.0.1 is still causing Gradle deprecation warnings didn't exactly increase my motivation to upgrade the plugin, either. This is the exception thrown with Gradle 4.3.1 and shadow plugin 2.0.1:
It's not happening while executing the Shadow plugin itself but instead while executing the |
Thanks for reporting @huxi. We've found a fix and have added back smoke test coverage for Shadow-1.2.4. We'll try our best to keep this working until 5.0. |
Thanks. I'll give RC2 a shot when it's out. |
Everything fine with RC2. |
A build that was working with Gradle 4.3.x is throwing a
NullPointerException
with Gradle 4.4-rc-1.Expected Behavior
No exception is thrown.
Current Behavior
The following exception is thrown:
Context
Example
build.gradle
file:Steps to Reproduce (for bugs)
Executing the above file will work with Gradle 4.3 and fail with Gradle 4.4-rc-1.
Your Environment
The text was updated successfully, but these errors were encountered: