Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Disable Tycho extensions so artifact can be consumed by Java 8 builds…
Browse files Browse the repository at this point in the history
…, only enable them when building the project artifact
  • Loading branch information
mcculls committed May 8, 2022
1 parent 914e17a commit 45e847d
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions org.eclipse.sisu.plexus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</parent>

<artifactId>org.eclipse.sisu.plexus</artifactId>
<packaging>eclipse-plugin</packaging>
<packaging>${sisu.packaging}</packaging>

<dependencies>
<!--
Expand Down Expand Up @@ -127,7 +127,7 @@
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<extensions>true</extensions>
<extensions>${tycho.extensions}</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
Expand All @@ -136,4 +136,29 @@
</plugins>
</build>

<!--
Disable Tycho extensions so artifact can be consumed by Java 8 builds.
-->
<properties>
<sisu.packaging>jar</sisu.packaging>
<tycho.extensions>false</tycho.extensions>
</properties>
<profiles>
<profile>
<!--
Enable Tycho extensions when building the project artifact.
-->
<id>sisu.packaging</id>
<activation>
<file>
<exists>src</exists>
</file>
</activation>
<properties>
<sisu.packaging>eclipse-plugin</sisu.packaging>
<tycho.extensions>true</tycho.extensions>
</properties>
</profile>
</profiles>

</project>

0 comments on commit 45e847d

Please sign in to comment.