Add `old-intellij` profile to support the old way. (#4740)

Activate the `old-intellij` profile to get the old behaviour
where everything is Java 17.
This commit is contained in:
michaelabuckley 2023-04-14 17:38:38 -04:00 committed by GitHub
parent 35bd1c400a
commit 83f216bcee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 29 additions and 0 deletions

29
pom.xml
View File

@ -3001,6 +3001,35 @@
</plugins>
</build>
</profile>
<!--
This profile is basically here to work around an IJ bug where the
<testSource> tag is ignored in IJ's compiler. See:
https://youtrack.jetbrains.com/issue/IDEA-85478
IntelliJ 2023.1 now supports this, so we removed the activation.
But if you want to run an older IntelliJ, activate the old-intellij profile in the Maven tab.
-->
<profile>
<id>old-intellij</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>17</source>
<target>17</target>
<release>17</release>
<testSource>17</testSource>
<testTarget>17</testTarget>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>ossrh-repo</id>
<activation>