The Jar task is packing all Java code to a .jar file in a Gradle Java project. It is a mystery to me which files are accepted for the jar file. Attached you find a sample Java project (created with buildship) with a source package (under “src/main/java”) that has unusual files. I would expect that while assembling the jar file these files will be taken into account. But they are not.
Then I printed excludes and includes of the java sourceSet and of the jar task. Just build with “./gradlew clean build”. The sets are empty but the unusual files are not copied into the JAR. Why?
Gradle Version: Gradle Wrapper 2.14.1
Operating System: Ubuntu 16.x
Is this a regression? If yes, which version of Gradle do you know it last worked for? No