Я новичок Gradle. Я хочу построить uberjar (AKA fatjar), который включает в себя все транзитивные зависимости проекта. Какие строки мне нужно добавить в мой "build.gradle"?
Это то, что у меня сейчас есть: (я скопировал его откуда-то несколько дней назад, но не вспоминаю откуда.)
task uberjar(type: Jar) {
from files(sourceSets.main.output.classesDir)
manifest {
attributes 'Implementation-Title': 'Foobar',
'Implementation-Version': version,
'Built-By': System.getProperty('user.name'),
'Built-Date': new Date(),
'Built-JDK': System.getProperty('java.version'),
'Main-Class': mainClassName
}
}