Skip to content

Commit 59a75f7

Browse files
committed
[Build] Add profile for expedited version checks
1 parent 73b7934 commit 59a75f7

File tree

1 file changed

+112
-5
lines changed

1 file changed

+112
-5
lines changed

eclipse-platform-parent/pom.xml

Lines changed: 112 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
Copyright (c) 2012, 2022 Eclipse Foundation and others.
3+
Copyright (c) 2012, 2024 Eclipse Foundation and others.
44
All rights reserved. This program and the accompanying materials
55
are made available under the terms of the Eclipse Distribution License v1.0
66
which accompanies this distribution, and is available at
@@ -372,6 +372,12 @@
372372
<groupId>org.eclipse.tycho.extras</groupId>
373373
<artifactId>tycho-p2-extras-plugin</artifactId>
374374
<version>${tycho.version}</version>
375+
<configuration>
376+
<baselines>
377+
<baseline>${previous-release.baseline}</baseline>
378+
</baselines>
379+
<comparator>zip</comparator>
380+
</configuration>
375381
<executions>
376382
<execution> <!-- Checks versions are properly bumped from one stream to the other -->
377383
<id>compare-attached-artifacts-with-release</id>
@@ -380,10 +386,6 @@
380386
</goals>
381387
<configuration>
382388
<skip>${compare-version-with-baselines.skip}</skip>
383-
<baselines>
384-
<baseline>${previous-release.baseline}</baseline>
385-
</baselines>
386-
<comparator>zip</comparator>
387389
</configuration>
388390
</execution>
389391
</executions>
@@ -941,6 +943,111 @@
941943
</build>
942944
</profile>
943945

946+
<profile>
947+
<id>fast-version-check</id>
948+
<build>
949+
<plugins>
950+
<plugin>
951+
<groupId>org.apache.maven.plugins</groupId>
952+
<artifactId>maven-antrun-plugin</artifactId>
953+
<executions>
954+
<execution>
955+
<id>set-skip-properties</id>
956+
<goals>
957+
<goal>run</goal>
958+
</goals>
959+
<phase>generate-sources</phase>
960+
<configuration>
961+
<exportAntProperties>true</exportAntProperties>
962+
<target>
963+
<condition property="skip.packaging.plugin" value="true" else="false">
964+
<not>
965+
<or>
966+
<equals arg1="${project.packaging}" arg2="eclipse-plugin"/>
967+
<equals arg1="${project.packaging}" arg2="eclipse-test-plugin"/>
968+
</or>
969+
</not>
970+
</condition>
971+
<condition property="skip.packaging.feature" value="true" else="false">
972+
<not>
973+
<equals arg1="${project.packaging}" arg2="eclipse-feature"/>
974+
</not>
975+
</condition>
976+
<condition property="skip.version.check" value="true" else="false">
977+
<and>
978+
<istrue value="${skip.packaging.plugin}"/>
979+
<istrue value="${skip.packaging.feature}"/>
980+
</and>
981+
</condition>
982+
</target>
983+
</configuration>
984+
</execution>
985+
</executions>
986+
</plugin>
987+
<plugin>
988+
<groupId>org.eclipse.tycho</groupId>
989+
<artifactId>tycho-packaging-plugin</artifactId>
990+
<executions>
991+
<execution>
992+
<id>package-plugin-placeholder</id>
993+
<goals>
994+
<goal>package-plugin</goal>
995+
</goals>
996+
<phase>generate-sources</phase>
997+
<configuration>
998+
<skip>${skip.packaging.plugin}</skip>
999+
<checkServiceComponentFilesExist>false</checkServiceComponentFilesExist>
1000+
</configuration>
1001+
</execution>
1002+
<execution>
1003+
<id>package-feature-placeholder</id>
1004+
<goals>
1005+
<goal>package-feature</goal>
1006+
</goals>
1007+
<phase>generate-sources</phase>
1008+
<configuration>
1009+
<skip>${skip.packaging.feature}</skip>
1010+
</configuration>
1011+
</execution>
1012+
</executions>
1013+
</plugin>
1014+
<plugin>
1015+
<groupId>org.eclipse.tycho</groupId>
1016+
<artifactId>tycho-p2-plugin</artifactId>
1017+
<executions>
1018+
<execution>
1019+
<id>generate-p2-metadata</id>
1020+
<goals>
1021+
<goal>p2-metadata</goal>
1022+
</goals>
1023+
<phase>generate-sources</phase>
1024+
<configuration>
1025+
<baselineMode>disable</baselineMode>
1026+
</configuration>
1027+
</execution>
1028+
</executions>
1029+
</plugin>
1030+
<plugin>
1031+
<groupId>org.eclipse.tycho.extras</groupId>
1032+
<artifactId>tycho-p2-extras-plugin</artifactId>
1033+
<executions>
1034+
<execution>
1035+
<id>compare-artifact-version-with-release</id>
1036+
<goals>
1037+
<goal>compare-version-with-baselines</goal>
1038+
</goals>
1039+
<phase>generate-sources</phase>
1040+
<configuration>
1041+
<skip>${skip.version.check}</skip>
1042+
<ignoredPatterns>**</ignoredPatterns>
1043+
</configuration>
1044+
</execution>
1045+
</executions>
1046+
</plugin>
1047+
</plugins>
1048+
</build>
1049+
</profile>
1050+
9441051
<profile>
9451052
<id>update-branding-plugins-about.mappings</id>
9461053
<activation>

0 commit comments

Comments
 (0)