[GRADLE-3416] Compile only dependencies added to incorrect scope in IDEA when conflicting with runtime dependencies Created: 17/Mar/16 Updated: 17/Mar/16 Resolved: 17/Mar/16 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 2.12 |
Fix Version/s: | 2.13-rc-1 |
Type: | Bug | ||
Reporter: | Mark Vieira (Inactive) | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Description |
Consider the following: dependencies { compileOnly 'javax.servlet:servlet-api:2.5' testRuntime 'javax.servlet:servlet-api:2.5' } With Gradle 2.12 the result is that the 'servlet-api' dependency is mapped to scope 'TEST' which is incorrect since it is required on the compile classpath. This dependency needs to be mapped to 'PROVIDED' instead of, or in addition to 'TEST'. |