Hi, i’m trying to migrate build of large project from gradle 3.x to 4.3.1 and experience some very strange problem - ‘jar’ task does not generate any output.
Output of the clean build is following:
:my-dummy-module-api:compileJava :my-dummy-module-api:processResources :my-dummy-module-api:classes :my-dummy-module-api:generatePomFileForMavenJavaPublication :my-dummy-module-api:bundle :my-dummy-module-api:jar UP-TO-DATE :my-dummy-module-api:..
so … it says that JAR is “UP-TO-DATE”, but file is missing at all.
Executing build with ‘–debug’ says
No discovered inputs for task ':my-dummy-module-ap:jar' Skipping task ':my-dummy-module-ap:jar' as it is up-to-date (took 0.011 secs).
Our configuration of ‘jar’ task does not specify inputs and according to documentation this way all output files should be included
https://docs.gradle.org/current/dsl/org.gradle.api.tasks.bundling.Jar.html -> include(includeSpec)
If includes are not provided, then all files in this container will be included.
What’s wrong? Any hints? How the problem can be diagnosed further?