Gradle Application Plugin - Building multiple start scripts / dists for the same project with different mainClassName

前端 未结 2 993
情歌与酒
情歌与酒 2021-02-08 21:45

We have a Gradle project using the java plugin that has a couple of command line tools it needs to build. The project is just packaged up into a jar with its dependencies. We\

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-08 21:51

    You can always drop down to the task level and declare/configure/wire the necessary tasks yourself, or declare additional tasks on top of what apply plugin: "application" provides. See the application plugin chapter in the Gradle user guide for which related tasks are available.

提交回复
热议问题