We have jar files as compile dependencies for a Java project. These jar files also contain source code. The compileJava tasks attempts to compile these sources and fails, since there are some legacy dependencies no longer present in the project. If we delete the sources and just have a “.class file only” jar, the compilation of the actual project succeeds.
Is there a way to disable the compilation of the sources in the jar file?