Can I remove the 'jar' task in gradle build?

前端 未结 2 1457
旧时难觅i
旧时难觅i 2021-01-19 03:02

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

2条回答
  •  醉酒成梦
    2021-01-19 03:22

    This worked for me:

    configurations.archives.with {
        artifacts.remove artifacts.find { it.toString().contains("jar") }
    }
    

提交回复
热议问题