I've already tried the solutions proposed in: “Invalid signature file” when attempting to run a .jar but I'm still facing issues. My gradle has the following:
task jarWithDependencies(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Test',
'Implementation-Version': version
}
zip64 = true
baseName = project.name + '-all'
archiveName = "$baseName.$extension"
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
}
with jar
}
The problem is that when I run it I get the following output:
log4j:WARN No appenders could be found for logger (com.test.Tester).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
And the program then exits.