/ Published in: Groovy
Custom task using gradle java plugin for build runnable jar file with full dependencies set
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
apply plugin: 'java' task full_jar(type: Jar, dependsOn: classes) { manifest { attributes 'Main-Class': "${project.group}.Main" } from files(compileJava) baseName = "${project.archivesBaseName}-full" }
URL: build_gradle_jar_with_dependencies