When I use the code below, a file of jar will generate after gradle build.
apply plugin 'java'
Is there any settings won't generate the file of jar??
I can write a custom plugins,but the code below was wrong.
dependencies {
compile project(':crm.common')
testCompile group: 'junit', name: 'junit', version: '4.12'
}
I want find a way that donot generate the file of jar. And can run compile in dependencies. Is there any way can do that???
You can do that by 2 ways:
explicitly exclude the jar
task from execution:
gradle build -x jar
disable the jar
task in build.gradle
:
apply plugin: 'java'
jar.enabled = false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With