Skip to content
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

Add clone of IgnoreEmptyDirectories annotation to allow compiling forbiddenapis task with it #193

Merged
merged 4 commits into from
Mar 24, 2022

Conversation

uschindler
Copy link
Member

@uschindler uschindler commented Mar 24, 2022

This works around problems with Gradle 7.4+.

See issue #189 for details.

… forbiddenapis task with it. This works around problems with Grdale 7.4+. Closes #189
@uschindler
Copy link
Member Author

This also set path sensitivity, which is unrelated, but for completeness and better caching (build cache) it should be done.

@uschindler
Copy link
Member Author

uschindler commented Mar 24, 2022

I figured out we do not need to ship the annotation, we can remove it from JAR file. Works fine. Reason is that runtime annotations are required to be available during compilation, but at runtime they are still optional, see https://docs.oracle.com/javase/specs/jls/se8/html/jls-9.html#jls-9.6.4.2 and https://docs.oracle.com/javase/specs/jls/se8/html/jls-13.html#jls-13.5.7

"Adding or removing annotations has no effect on the correct linkage of the binary representations of programs in the Java programming language."

@uschindler uschindler merged commit b95dc27 into main Mar 24, 2022
@uschindler uschindler deleted the issues/189 branch March 24, 2022 11:48
@uschindler
Copy link
Member Author

Thanks @reta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Yet another Gradle update issue: 7.4 deprecated FileTrees using @SkipWhenEmpty
2 participants