I was able to resolve the problem. Firstly, I verified in a simple HelloWorld project that the failures I noted in my original post happen with gradle 4.10.3 with sourceCompatibility set to 11 (but everything works with sourceCompability set to 1.8). I then verified that upgrading to 5.6.4 resolved the problems in the HelloWorld project. Finally, I went back to our larger project and found that the gradle wrapper hadn’t been upgraded to 5.6.4 as I thought I had attempted to do. The upshot is that there was a problem with even the latest versions of 4.x, but the problems have been resolved with 5.x.
↧