Skip to content

Commit

Permalink
Set different java version profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-debricked committed Jan 14, 2025
1 parent 1f920bc commit aa5c18e
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions java/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,73 @@
</plugins>
</build>

<profiles>
<!-- Profile for Java 11 -->
<profile>
<id>java11</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<finalName>SootWrapper-java11</finalName>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
</plugin>
</plugins>
</build>
</profile>

<!-- Profile for Java 17 -->
<profile>
<id>java17</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<finalName>SootWrapper-java17</finalName>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
</plugin>
</plugins>
</build>
</profile>

<!-- Profile for Java 21 -->
<profile>
<id>java21</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<finalName>SootWrapper-java21</finalName>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
</plugin>
</plugins>
</build>
</profile>
</profiles>


</project>

0 comments on commit aa5c18e

Please sign in to comment.