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

前端 未结 2 1418
旧时难觅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:33

    You can do that by 2 ways:

    1. explicitly exclude the jar task from execution: gradle build -x jar

    2. disable the jar task in build.gradle: apply plugin: 'java' jar.enabled = false

提交回复
热议问题