providedCompile without war plugin

后端 未结 7 1718
忘掉有多难
忘掉有多难 2020-12-23 10:00

I want to reuse certain filter for many projects so I want to extract it and use a single jar to just add it to any Web App.

For building I am using Gradle 1.3 and t

7条回答
  •  失恋的感觉
    2020-12-23 10:28

    As of Gradle 2.12 the issue of defining compile only dependencies is finally solved in a simple and natural manner by the new "copmpileOnly" configuration:

    dependencies {
        compileOnly 'javax.servlet:servlet-api:2.5'
    }
    

提交回复
热议问题