'How to use -parameters javac option in intellij?
I have this all working in eclipse and am trying to do so in intellij now. I opened settings {command and comma} then went to Build, Execution and Deployment and clicked Compiler and in Shared Build Process VM Options I typed in "-parameters" but intellij errored out when I built the project with "Unrecognized option: -parameters"
My project is compiling fine in jdk8 and I am using jdk 8 lambdas and other jdk features. I don't get why I can't get my code compiled with parameters build in.
Solution 1:[1]
If you cannot find an option under Settings > Build, Execution, Deployment > Compiler > Java Compiler (like me in 2021.1.1) you can specify it in your build.gradle file (like here):
tasks.withType(JavaCompile) {
options.compilerArgs << '-parameters'
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | artaxerx |
