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
This worked for me:
configurations.archives.with {
artifacts.remove artifacts.find { it.toString().contains("jar") }
}
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