IntelliJ project configuration: use Ant 1.7.1 as a dependency when compiling intellij.java.rt module

The shared Ant project library was updated to a version which requires Java 8, but intellij.java.rt has language level 1.3 and compiled with Java 1.6. This works when javac from Java 8 is used for compilation, but when a module with JDK 11 is added to IntelliJ project build process starts to use javac from JDK 11 as the main one and compile intellij.java.rt module using a forced javac from 1.6 and compilation fails.

GitOrigin-RevId: 2f30734e5594b13e14421d3d462e7d0755df086d
This commit is contained in:
nik
2019-08-28 10:43:38 +00:00
committed by intellij-monorepo-bot
parent 3c711dec38
commit c2f9e23919
+11 -1
View File
@@ -8,6 +8,16 @@
<orderEntry type="jdk" jdkName="IDEA jdk" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" scope="PROVIDED" name="JUnit4" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Ant" level="project" />
<orderEntry type="module-library" scope="PROVIDED">
<library name="ant-1.7.1" type="repository">
<properties maven-id="org.apache.ant:ant:1.7.1" />
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/apache/ant/ant/1.7.1/ant-1.7.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
</component>
</module>