forked from eclipse-gef/gef-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
380 lines (365 loc) · 11.7 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.eclipse.gef_root</groupId>
<artifactId>org.eclipse.gef.releng</artifactId>
<version>3.19.0-SNAPSHOT</version>
<packaging>pom</packaging>
<!-- this is the parent POM from which all modules inherit common settings -->
<properties>
<maven-antrun-plugin.version>1.7</maven-antrun-plugin.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<tycho.version>${tycho-version}</tycho.version>
<cbi-plugins.version>1.4.2</cbi-plugins.version>
<tycho.scmUrl>scm:git:https://github.com/eclipse/gef-classic.git</tycho.scmUrl>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<comparator.repo>https://download.eclipse.org/tools/gef/classic/releases/3.18.0</comparator.repo>
<surefire.timeout>300</surefire.timeout>
</properties>
<build>
<plugins>
<plugin>
<!-- enable tycho build extension -->
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho.version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<sourceReferences>
<generate>true</generate>
</sourceReferences>
</configuration>
<dependencies>
<dependency>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-sourceref-jgit</artifactId>
<version>${tycho.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-source-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<id>plugin-source</id>
<goals>
<goal>plugin-source</goal>
</goals>
</execution>
<execution>
<id>feature-source</id>
<goals>
<goal>feature-source</goal>
</goals>
<configuration>
<excludes>
<!-- provide plug-ins not containing any source code -->
<plugin id="org.eclipse.draw2d.doc.isv" />
<plugin id="org.eclipse.gef.doc.isv" />
<plugin id="org.eclipse.zest.doc.isv" />
<!-- also possible to exclude feature-->
</excludes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- This is needed for source feature generation, as outlined in bug
#398250 -->
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<id>attach-p2-metadata</id>
<phase>package</phase>
<goals>
<goal>p2-metadata</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>${maven-antrun-plugin.version}</version>
<executions>
<execution>
<id>replace-tokens</id>
<phase>process-resources</phase>
<configuration>
<target>
<taskdef resource="net/sf/antcontrib/antcontrib.properties"
classpathref="maven.plugin.classpath" />
<if>
<available file="about.mappings" />
<then>
<echo message="Creating backup of about.mappings." />
<copy file="about.mappings" tofile="about.mappings.backup"
overwrite="true" />
<echo
message="Replacing @build@ token within about.mappings with build id." />
<replace file="about.mappings">
<replacefilter token="@build@" value="${buildQualifier}" />
</replace>
</then>
</if>
<if>
<available file="javadocOptions.txt" />
<then>
<copy file="javadocOptions.txt" tofile="javadocOptions.txt.backup"
overwrite="true" />
<echo message="Creating backup of javadocOptions.txt" />
<replace file="javadocOptions.txt">
<replacefilter token="@build@"
value="${unqualifiedVersion}.${buildQualifier}" />
</replace>
</then>
</if>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>replace-back-tokens</id>
<phase>verify</phase>
<configuration>
<target>
<taskdef resource="net/sf/antcontrib/antcontrib.properties"
classpathref="maven.plugin.classpath" />
<if>
<available file="about.mappings.backup" />
<then>
<echo message="Replacing back modified about.mappings with backup." />
<copy file="about.mappings.backup" tofile="about.mappings"
overwrite="true" />
<delete file="about.mappings.backup" />
</then>
</if>
<if>
<available file="javadocOptions.txt.backup" />
<then>
<echo
message="Replacing back modified javadocOptions.txt with backup." />
<copy file="javadocOptions.txt.backup" tofile="javadocOptions.txt"
overwrite="true" />
<delete file="javadocOptions.txt.backup" />
</then>
</if>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>20020829</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-p2-extras-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<id>compare-version-with-baseline</id>
<phase>verify</phase>
<goals>
<goal>compare-version-with-baselines</goal>
</goals>
<configuration>
<baselines>
<baseline>${comparator.repo}</baseline> <!-- Previous release) -->
</baselines>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>2022-03</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<!-- consider pack.gz bundles -->
<includePackedArtifacts>false</includePackedArtifacts>
<!-- add target file content to target platform -->
<target>
<file>../target-platform/GEF_classic.target</file>
</target>
<environments>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>eclipse-sign</id>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<!-- consider pack.gz bundles -->
<includePackedArtifacts>false</includePackedArtifacts>
<!-- add target file content to target platform -->
<target>
<file>../target-platform/GEF_classic.target</file>
</target>
<environments>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.cbi.maven.plugins</groupId>
<artifactId>eclipse-jarsigner-plugin</artifactId>
<version>${cbi-plugins.version}</version>
<executions>
<execution>
<id>sign</id>
<goals>
<goal>sign</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
<configuration>
<excludeInnerJars>${defaultSigning-excludeInnerJars}</excludeInnerJars>
<!--
The default timeout is 0 seconds which means "wait forever": https://www.eclipse.org/cbi/sitedocs/eclipse-jarsigner-plugin/sign-mojo.html#timeoutMillis
We don't want to wait until the build finally aborts, so, setting a timeout (see bug 507369).
Increasing timeout from 60000 to 120000 (see bug 544823).
-->
<timeoutMillis>120000</timeoutMillis>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<id>p2-metadata</id>
<goals>
<goal>p2-metadata</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
<configuration>
<defaultP2Metadata>false</defaultP2Metadata>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<pluginRepositories>
<pluginRepository>
<id>CBI</id>
<url>https://repo.eclipse.org/content/repositories/cbi-releases/</url>
</pluginRepository>
</pluginRepositories>
<modules>
<!--plug-ins-->
<module>org.eclipse.draw2d</module>
<module>org.eclipse.gef</module>
<module>org.eclipse.zest.core</module>
<module>org.eclipse.zest.layouts</module>
<!--docs-->
<module>org.eclipse.zest.doc.isv</module>
<module>org.eclipse.draw2d.doc.isv</module>
<module>org.eclipse.gef.doc.isv</module>
<!--tests-->
<module>org.eclipse.draw2d.tests</module>
<module>org.eclipse.zest.tests</module>
<module>org.eclipse.gef.tests</module>
<!--examples-->
<module>org.eclipse.draw2d.examples</module>
<module>org.eclipse.gef.examples.flow</module>
<module>org.eclipse.gef.examples.logic</module>
<module>org.eclipse.gef.examples.shapes</module>
<module>org.eclipse.gef.examples.text</module>
<module>org.eclipse.gef.examples.ui.capabilities</module>
<module>org.eclipse.gef.examples.ui.pde</module>
<module>org.eclipse.zest.examples</module>
<!--features-->
<module>org.eclipse.gef-feature</module>
<module>org.eclipse.draw2d-feature</module>
<module>org.eclipse.gef.examples-feature</module>
<module>org.eclipse.gef.sdk-feature</module>
<module>org.eclipse.zest-feature</module>
<module>org.eclipse.zest.sdk-feature</module>
<module>org.eclipse.gef.repository</module>
<module>org.eclipse.draw2d.sdk-feature</module>
<!--
-->
</modules>
</project>