美文网首页
Gradle build fat jar

Gradle build fat jar

作者: 天玑云象 | 来源:发表于2017-10-26 13:30 被阅读719次

    gradle build one fat jar to include dependency jars

    build fatjar

    task fatJar(type: Jar) {
        manifest {
            attributes 'Implementation-Title': 'Gradle Jar File Example',
                'Implementation-Version': version,
                'Main-Class': 'com.mkyong.DateUtils'
        }
        baseName = project.name + '-all'
        from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
        with jar
    }
    

    相关文章

      网友评论

          本文标题:Gradle build fat jar

          本文链接:https://www.haomeiwen.com/subject/uoxkpxtx.html