Let’s say you have a very simple Java project that uses Gradle as build tool.
./gradlew jar
works as expected and creates a jar file containing the required classes files and the manifest.
Why is it that this one is NOT working?
tasks.register('createJar', Jar) {
group = 'Creating supadupa jar'
description = "Blah blah ..."
dependsOn 'jar'
}
./gradlew createJar
creates a jar file that does NOT contain any class files (only the manifest file).