Why intelliJ IDEA dependency scope is “provided” instead of “compile”?

前端 未结 1 1893
清歌不尽
清歌不尽 2020-12-16 18:57

I would like IntelliJ IDEA to have my libraries as \"compile\" scope instead of \"provided\" scope. This is a part of my gradle file:

apply plugin: \'java\'         


        
相关标签:
1条回答
  • 2020-12-16 19:40

    It's a known issue in IntelliJ IDEA that is specific to Gradle 3.4:

    • IDEA-167412 Gradle 3.4-rc-1 changes compile dependencies to provided
    • original bug report in the Gradle project with more details
    • comment from the responsible developer regarding "Create Module per source set" option and how Gradle integration works in IntelliJ IDEA

    It's already fixed in 2017.1 EAP build.

    You can use Gradle 3.3 or older as a workaround until IDEA 2017.1 is released.

    0 讨论(0)
提交回复
热议问题