Skip to content

Commit b5d6788

Browse files
authored
Add java level profiles (#893)
These will get used by IDEs (e.g. IDEA IntelliJ) to set the appropriate java level if it differs from the default java level defined in the pom file. In practice, maven-hpi-plugin will generate and manage the files used as activation markers for these profiles, depending on the java level required by the jenkins version the plugin required.
1 parent 076a446 commit b5d6788

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

pom.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,5 +1453,27 @@
14531453
<yarn.lint.skip>true</yarn.lint.skip>
14541454
</properties>
14551455
</profile>
1456+
<profile>
1457+
<id>java-level-17</id>
1458+
<activation>
1459+
<file>
1460+
<exists>target/java-level/17</exists>
1461+
</file>
1462+
</activation>
1463+
<properties>
1464+
<maven.compiler.release>17</maven.compiler.release>
1465+
</properties>
1466+
</profile>
1467+
<profile>
1468+
<id>java-level-21</id>
1469+
<activation>
1470+
<file>
1471+
<exists>target/java-level/21</exists>
1472+
</file>
1473+
</activation>
1474+
<properties>
1475+
<maven.compiler.release>21</maven.compiler.release>
1476+
</properties>
1477+
</profile>
14561478
</profiles>
14571479
</project>

0 commit comments

Comments
 (0)