Skip to content

Commit

Permalink
pom: Use system properties to enable profiles
Browse files Browse the repository at this point in the history
Instead of activating Maven profiles directly (-Prelease), activate
them through system properties (e.g., -Drelease).

This allows enabling multiple profiles with a single argument.
  • Loading branch information
kohlschuetter committed Sep 26, 2023
1 parent 6d46982 commit d7e65e8
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 2 deletions.
5 changes: 5 additions & 0 deletions junixsocket-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
<profiles>
<profile>
<id>release</id>
<activation>
<property>
<name>release</name>
</property>
</activation>
<build>
<plugins>
<plugin>
Expand Down
3 changes: 1 addition & 2 deletions junixsocket-native-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@
<id>release</id>
<activation>
<property>
<name>cross</name>
<value>true</value>
<name>release</name>
</property>
</activation>
<properties>
Expand Down
5 changes: 5 additions & 0 deletions junixsocket-native-cross/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
<profiles>
<profile>
<id>release</id>
<activation>
<property>
<name>release</name>
</property>
</activation>
<properties>
<junixsocket.cross.disabled>false</junixsocket.cross.disabled>
<junixsocket.cross.enabled>true</junixsocket.cross.enabled>
Expand Down
11 changes: 11 additions & 0 deletions junixsocket-native/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@
</profile>
<profile>
<id>cross</id>
<activation>
<property>
<name>cross</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -128,6 +134,11 @@
</profile>
<profile>
<id>codeql-skip-c</id>
<activation>
<property>
<name>codeql-skip-c</name>
</property>
</activation>
<build>
<plugins>
<plugin>
Expand Down
5 changes: 5 additions & 0 deletions junixsocket-selftest-native-image/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
<profiles>
<profile>
<id>native</id>
<activation>
<property>
<name>native</name>
</property>
</activation>
<build>
<plugins>
<plugin>
Expand Down
25 changes: 25 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ In contrast to other implementations, junixsocket extends the Java Sockets API (
<profiles>
<profile>
<id>release</id>
<activation>
<property>
<name>release</name>
</property>
</activation>
<modules>
<module>junixsocket-native</module>
<module>junixsocket-native-cross</module>
Expand Down Expand Up @@ -169,6 +174,11 @@ In contrast to other implementations, junixsocket extends the Java Sockets API (
</profile>
<profile>
<id>codeql</id>
<activation>
<property>
<name>codeql</name>
</property>
</activation>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -205,6 +215,11 @@ In contrast to other implementations, junixsocket extends the Java Sockets API (
</profile>
<profile>
<id>release-native</id>
<activation>
<property>
<name>release-native</name>
</property>
</activation>
<modules>
<module>junixsocket-native</module>
<module>junixsocket-native-cross</module>
Expand Down Expand Up @@ -327,6 +342,11 @@ In contrast to other implementations, junixsocket extends the Java Sockets API (
</profile>
<profile>
<id>use-snapshots</id>
<activation>
<property>
<name>use-snapshots</name>
</property>
</activation>
<repositories>
<repository>
<id>snapshots-repo</id>
Expand All @@ -342,6 +362,11 @@ In contrast to other implementations, junixsocket extends the Java Sockets API (
</profile>
<profile>
<id>use-staging</id>
<activation>
<property>
<name>use-staging</name>
</property>
</activation>
<repositories>
<repository>
<id>snapshots-staging</id>
Expand Down

0 comments on commit d7e65e8

Please sign in to comment.