Gradle import setting project bytecode settings
We have a multi module project where part of the modules uses java 8, and the rest java 11.
Gradle import resolves this by setting the project bytecode version to 8, and for the modules using 11(most of them) configure a override in the 'per module bytecode version'
All good so far, but for 1 of the java 11 modules we need to configure(using the 'Override compiler parameters per module') a compiler parameter: `--add-exports=XXX`
however intellij will return an error, stating that this isn't allowed because of java 8.
Anyone know a way around this?
One solution would be that intellij would set the project bytecode version to 11, and create overrides for the java 8 modules, but haven't found a way to configure this
Bernard
Please sign in to leave a comment.
Hello,
Please check if workaround from this issue helps: https://youtrack.jetbrains.com/issue/IDEA-241948
Hi,
Thx for the reply, this seems to have fixed the compile error we got,
Thank you for the quick response
You are welcome!