[GRADLE-3523] Native binaries plugins prevent from registering root nodes of type File Created: 17/Aug/16 Updated: 18/Aug/16 Resolved: 18/Aug/16 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 2.14.1, 3.0 |
Fix Version/s: | 3.1-rc-1 |
Type: | Bug | ||
Reporter: | Cédric Champeau (Inactive) | Assignee: | Paul Merlin |
Resolution: | Fixed | Votes: | 0 |
Description |
There seems to be a bug at line 32 of file NativeBinaryRules.java [1]. The rule assume only one node will be of type File which maps to buildDir (the @Path is commented out). This is problematic when trying to follow the same pattern and have root element for reports directory and possibly more. The following code show the failure: {{class Rules extends RuleSource { } model { components { main(NativeExecutableSpec) }}}} > Exception thrown while executing model rule: NativeComponentModelPlugin.Rules#createBinaries(TargetedNativeComponentInterval, PlatformResolvers, BuildTypeContainer, FlavorContainer, ServiceRegistry) > named(executable, org.gradle.nativeplatform.internal.configure.NativeBinaryRules)
|