Hi PJ, You can run Gradle with "--info :poi:jar" to make it print out details about why it does or does not run some tasks.
Here it seems an "onlyIf" in the main build.gradle at line 187 is the culprit. It seems the "onlyIf" here leads to these the "java9" tasks being skipped always. These were added at some point but things changed later. I would assume this check can now simply be removed, at least it works if I remove the three lines completely. Andi might be able to state details and why this was necessary in the first place and if it actually became obsolete when he switched the build to "Gradle toolchains". Regards... Dominik. On Mon, Jul 25, 2022 at 1:25 PM PJ Fanning <[email protected]> wrote: > I used the ant build to regen some of the module-info classes. I had to > change the build.xml to get the compile to work with Java 11. > > https://github.com/apache/poi/commit/9626dd0661159b09e3fbeb93a59cf1b8f0cfee60 > > If anyone knows how to fix the Gradle build or objects to my Ant build > change, please get in touch. > > > On Monday 25 July 2022 at 11:42:31 IST, PJ Fanning < > [email protected]> wrote: > > Hi everyone,When using the Gradle build, I've found that the tasks to > compile the module-info files do not run, even when I use JDK versions > higher than Java 8. They don't fail, they just get skipped.Something about > the Gradle toolchain and/or the onlyIf conditions seems to be not working. > Could someone else have a look?Our checked-in module-info class files are > important for the Java 8 build - which is what we use for our public > releases. The class files are out of date. > Regards,PJ
