-
Notifications
You must be signed in to change notification settings - Fork 34
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
Deprecation warning with Gradle 4.0-rc-1 #120
Comments
Thanks for the hint. Up to now I have no idea how to fix this proerly, because the current Gradle plugin compiles against version 2.3 of Gradle and I don't plan to release an update in a minor version, as this change would break it for users with all earlier Gradle versions. I think I can fix this with the next major version of forbiddenapis, but I have no idea what the correct fix is. I'd suggest to wait for the official Gradle documentatation about this. Up to now I have not found anything about this on the net. This is just a warning and I see no urgency. It looks like many plugins are affected by this. |
I saw someone on the forum talking about dodging it using reflection to call the newer method: https://discuss.gradle.org/t/gradle-4-0-warning-what-is-this/23004/8 We're getting this in our build too, but we have so many plugins and more than half of them might be doing it, and there is no way to know because Gradle doesn't print out who called the thing. |
As the plugin bootstrap is written in Groovy inside forbidden-apis, this should be easy to fix. I just had no time to do it up to now, but the approach is:
I will prepare a fix duing the summer vacation! As said before, it's no urgent :-) |
I added a PR #124 that fixes the warning and changes the plugin to also use the If anybody could check this with his build, I'd be happy! |
Remove warning in Gradle 4. This closes #120
Could you perform a release including the fix? |
Is going to happen soon. I just wanted to wait for Java 9 release to update all signatures and ASM parser. |
Makes sense. |
The following deprecation warning is generated with Gradle 4.0-rc-1:
Output above is generated with
--stacktrace
option, grepping the stacktrace elements onthetaphi
.The text was updated successfully, but these errors were encountered: