Skip to content

Commit

Permalink
Add java level profiles (#893)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Vlatombe committed Feb 9, 2024
1 parent 076a446 commit b5d6788
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1453,5 +1453,27 @@
<yarn.lint.skip>true</yarn.lint.skip>
</properties>
</profile>
<profile>
<id>java-level-17</id>
<activation>
<file>
<exists>target/java-level/17</exists>
</file>
</activation>
<properties>
<maven.compiler.release>17</maven.compiler.release>
</properties>
</profile>
<profile>
<id>java-level-21</id>
<activation>
<file>
<exists>target/java-level/21</exists>
</file>
</activation>
<properties>
<maven.compiler.release>21</maven.compiler.release>
</properties>
</profile>
</profiles>
</project>

0 comments on commit b5d6788

Please sign in to comment.