Я хочу создать uberjar (также известный как 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
}
}