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

Commit 45e847d

Browse files
committed
Disable Tycho extensions so artifact can be consumed by Java 8 builds, only enable them when building the project artifact
1 parent 914e17a commit 45e847d

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

org.eclipse.sisu.plexus/pom.xml

+27-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</parent>
2222

2323
<artifactId>org.eclipse.sisu.plexus</artifactId>
24-
<packaging>eclipse-plugin</packaging>
24+
<packaging>${sisu.packaging}</packaging>
2525

2626
<dependencies>
2727
<!--
@@ -127,7 +127,7 @@
127127
<plugin>
128128
<groupId>org.eclipse.tycho</groupId>
129129
<artifactId>tycho-maven-plugin</artifactId>
130-
<extensions>true</extensions>
130+
<extensions>${tycho.extensions}</extensions>
131131
</plugin>
132132
<plugin>
133133
<groupId>org.eclipse.tycho</groupId>
@@ -136,4 +136,29 @@
136136
</plugins>
137137
</build>
138138

139+
<!--
140+
Disable Tycho extensions so artifact can be consumed by Java 8 builds.
141+
-->
142+
<properties>
143+
<sisu.packaging>jar</sisu.packaging>
144+
<tycho.extensions>false</tycho.extensions>
145+
</properties>
146+
<profiles>
147+
<profile>
148+
<!--
149+
Enable Tycho extensions when building the project artifact.
150+
-->
151+
<id>sisu.packaging</id>
152+
<activation>
153+
<file>
154+
<exists>src</exists>
155+
</file>
156+
</activation>
157+
<properties>
158+
<sisu.packaging>eclipse-plugin</sisu.packaging>
159+
<tycho.extensions>true</tycho.extensions>
160+
</properties>
161+
</profile>
162+
</profiles>
163+
139164
</project>

0 commit comments

Comments
 (0)