Set different java language level between source code and test in the lastest stable version of Idea?
已回答
Actually, I configured the Maven pom as followed:
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<testSource>8</testSource>
<testTarget>8</testTarget>
</configuration>
</plugin>
But it doesn't work for Idea, How should I do to solve this?
请先登录再写评论。
It's not supported at the moment: https://youtrack.jetbrains.com/issue/IDEA-85478.
I have seen that workaround, but it's not an elegant solution, Will it be supported in the future version of Idea?
Yes, we hope to add support for this configuration in one of the future updates.