-
Notifications
You must be signed in to change notification settings - Fork 110
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
Enforces source compatibility with animal-sniffer #346
Conversation
NetflixOSS » denominator » denominator-pull-requests #89 SUCCESS |
tested by adding a use of :denominator-core:animalSniffer FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':denominator-core:animalSniffer'.
> Signature errors found. Verify them and ignore them with the proper annotation if needed. |
in build.gradle at top level
configure the one that needs 1.7 in that one subprojects and you probably want to keep the sourceCompatibility = 1.6 since it will also set the jdk generated to jdk6 compatible bytecode otherwise gradle defaults you to the jdk it is running in (and the netflixoss plugin will default it to java 1.7 if nothing else is set) The plugins block imports and applies plugins so it is good in some use cases and not others |
Thanks for the instructions. Will give it a go!
|
5184d60
to
4961c83
Compare
Before, finding source compatibility issues relied on building with an old JDK. This uses animal-sniffer to enforce java language level 6 for libraries and 7 for executables. closes #344
4961c83
to
d2e04ca
Compare
NetflixOSS » denominator » denominator-pull-requests #90 SUCCESS |
NetflixOSS » denominator » denominator-pull-requests #91 SUCCESS |
Enforces source compatibility with animal-sniffer
Beaten to the punch by @rspieldenner . |
Yes. His punches are fast!
|
Before, finding source compatibility issues relied on building with an
old JDK. This uses animal-sniffer to enforce java language level 6 for
libraries and 7 for executables.
closes #344