-
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
Gradle: SourceSets added after plugin loading don't get tasks #138
Comments
Fix Gradle bug: SourceSets added after plugin loading don't get tasks. This closes #138.
We are currently trying out jdk10 with forbiddenapis and have a problem there: Parsing signatures failed: Invalid bundled signature reference (JDK version is invalid): jdk-unsafe-1.10 See https://travis-ci.org/graphhopper/graphhopper/jobs/378749464 Is this a different issue or something because we are using unsafe? |
This has nothing to do with this. Update forbidden-apis and specify as "10" not "1.10". The latter is no valid java version. |
Cool. Working now. Thanks a lot! And thanks for your work on this tool! |
I found this by testing Elasticsearch. ES adds a sourceset named "java9", but this does not get tasks setup, so a task named
forbiddenApisJava9
is missing.The reason is that at the time the plugin is applied, the additional sourcesets are not yet defined. Instead of using the standard
collect
groovy closure, it should useall
, which applies a closure to already existing and later added sourcesets: all method of DomainObjectCollectionThe text was updated successfully, but these errors were encountered: