Today I Learned 1
Gradle에서 dependencies들을 함께 빌드하여 jar 파일을 만드는 방법을 배웠다.
// Include dependent libraries in archive.
mainClassName = "com.company.application.Main"
jar {
manifest {
attributes "Main-Class": "$mainClassName"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
References
https://stackoverflow.com/a/4894308/14058876