I did,
but as soon as I comment destinationDir = compileJava.destinationDir
then I get:
error: package is empty or does not exist: uno.awt
exports uno.awt;
Which is not
The thing is if you leave that line, this is gonna be deprecated in Gradle 7, unless you explicitely specify your exclude strategy