How do I create an executable fat jar with Gradle with implementation dependencies

前端 未结 5 601
广开言路
广开言路 2020-12-01 09:02

I\'ve got a simple project in Gradle 4.6 and would like to make an executable jar of it. I\'ve tried shadow, gradle-fatjar-plugin, gradle-one

5条回答
  •  甜味超标
    2020-12-01 09:33

    from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }

    This line is essential to me.

提交回复
热议问题