[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


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'.

Generated at Wed Jun 30 12:48:14 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.