forked from groovy/groovy-eclipse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
489 lines (449 loc) · 15.8 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
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.codehaus.groovy.eclipse</groupId>
<artifactId>org.codehaus.groovy.eclipse.parent</artifactId>
<version>3.4.0-SNAPSHOT</version>
<packaging>pom</packaging>
<!-- To run this build, use the following commands (depending on what you are trying to do):
mvn clean verify -Pe47
mvn clean deploy -Pe47 -Pmilestone -Ddist.qualifier=-M1
mvn clean deploy -Pe47 -Prelease
Running 'deploy' requires s3 accessKey and secretKey to be provided in a
properties file. The properties file must be specified via env variable
'dist_properties'. The existence of this env variable enables the deployment
profile automatically and will allow 'deploy' to execute.
-->
<properties>
<!-- See https://www.eclipse.org/tycho/sitedocs/index.html -->
<tycho-version>1.3.0</tycho-version>
<!-- See https://www.eclipse.org/tycho/sitedocs-extras/index.html -->
<tycho-extras-version>1.3.0</tycho-extras-version>
<!-- Versions of groovy compiler components to use for building. Some bundles,
mostly test related, have Groovy code that can't be compiled with standard
tycho ecj compiler. These two properties define what compiler will be used
for those bundles.
-->
<groovy-eclipse-compiler-version>3.0.0-01</groovy-eclipse-compiler-version>
<!-- This should align with the oldest supported Groovy version. -->
<groovy-eclipse-batch-version>2.4.17-01</groovy-eclipse-batch-version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Used by tycho-packaging-plugin to add Eclipse-SourceReferences to plugins. -->
<tycho.scmUrl>scm:git:git://github.com/gitroot/groovy/groovy-eclipse</tycho.scmUrl>
<!-- Properties that define where stuff gets uploaded and how jar is named etc. -->
<dist.bucket>dist.springsource.org</dist.bucket>
<dist.project>org.codehaus.groovy</dist.project>
<dist.name>Groovy Eclipse</dist.name>
<dist.key>GRECLIPSE</dist.key>
<dist.type>snapshot</dist.type>
<dist.path>${dist.type}/${dist.key}/${dist.target}</dist.path>
<dist.qualifier></dist.qualifier> <!-- appended to the end of p2 qualifier, used to add stuff like '-M1', '-RELEASE' etc. -->
<!-- Signing properties: These properties here are only 'documentation'.
The real values are furnished by the 'bamboo-signing' profile.
When not running on bamboo, singing is disabled by default.
-->
<signing.skip>true</signing.skip>
<signing.alias>pivotal</signing.alias>
<signing.keystore></signing.keystore>
<signing.key.password></signing.key.password>
<signing.store.password></signing.store.password>
</properties>
<modules>
<module>base/org.codehaus.groovy24</module>
<module>base/org.codehaus.groovy25</module>
<module>base/org.codehaus.groovy30</module>
<module>base/org.codehaus.groovy.eclipse.compilerResolver</module>
<module>base/org.eclipse.jdt.groovy.core</module>
<module>ide/org.codehaus.groovy.eclipse</module>
<module>ide/org.codehaus.groovy.eclipse.core</module>
<module>ide/org.codehaus.groovy.eclipse.ant</module>
<module>ide/org.codehaus.groovy.eclipse.astviews</module>
<module>ide/org.codehaus.groovy.eclipse.codeassist</module>
<module>ide/org.codehaus.groovy.eclipse.codebrowsing</module>
<module>ide/org.codehaus.groovy.eclipse.dsl</module>
<module>ide/org.codehaus.groovy.eclipse.quickfix</module>
<module>ide/org.codehaus.groovy.eclipse.refactoring</module>
<module>ide/org.codehaus.groovy.eclipse.ui</module>
<module>ide/Feature-org.codehaus.groovy24.feature</module>
<module>ide/Feature-org.codehaus.groovy25.feature</module>
<module>ide/Feature-org.codehaus.groovy30.feature</module>
<module>ide/Feature-org.codehaus.groovy.compilerless.feature</module>
<module>ide/Feature-org.codehaus.groovy.eclipse.feature</module>
<module>ide/Feature-org.codehaus.groovy.headless.feature</module>
<module>base-test/org.eclipse.jdt.groovy.core.tests.builder</module>
<module>base-test/org.eclipse.jdt.groovy.core.tests.compiler</module>
<module>ide-test/org.codehaus.groovy.eclipse.codeassist.test</module>
<module>ide-test/org.codehaus.groovy.eclipse.codebrowsing.test</module>
<module>ide-test/org.codehaus.groovy.eclipse.core.test</module>
<module>ide-test/org.codehaus.groovy.eclipse.dsl.tests</module>
<module>ide-test/org.codehaus.groovy.eclipse.junit.test</module>
<module>ide-test/org.codehaus.groovy.eclipse.quickfix.test</module>
<module>ide-test/org.codehaus.groovy.eclipse.refactoring.test</module>
<module>ide-test/org.codehaus.groovy.eclipse.tests</module>
<module>ide-test/org.codehaus.groovy.alltests</module>
<!-- m2e integration -->
<module>extras/org.codehaus.groovy.m2eclipse</module>
<module>extras/Feature-org.codehaus.groovy.m2eclipse</module>
<!-- update site -->
<module>Site-org.codehaus.groovy.eclipse</module>
<!-- These are not all the modules. There are are also some profile-specific ones declared below! -->
</modules>
<profiles>
<profile>
<id>e4.12</id>
<repositories>
<repository>
<id>2019-06</id>
<layout>p2</layout>
<url>https://download.eclipse.org/releases/2019-06</url>
</repository>
<repository>
<id>eclipse</id>
<layout>p2</layout>
<url>https://download.eclipse.org/eclipse/updates/4.12milestones</url>
</repository>
</repositories>
<modules>
<module>jdt-patch/e412/org.eclipse.jdt.core</module>
<module>jdt-patch/e412/org.eclipse.jdt.core.tests.builder</module>
<module>jdt-patch/e412/org.eclipse.jdt.core.tests.compiler</module>
<module>jdt-patch/e412/Feature-org.codehaus.groovy.jdt.patch</module>
</modules>
<properties>
<dist.target>e4.12</dist.target>
<greclipse.build.qualifier>'v'yyyyMMddHHmm'-e1906${dist.qualifier}'</greclipse.build.qualifier>
</properties>
</profile>
<profile>
<id>e4.11</id>
<repositories>
<repository>
<id>2019-03</id>
<layout>p2</layout>
<url>https://download.eclipse.org/releases/2019-03</url>
</repository>
<repository>
<id>eclipse</id>
<layout>p2</layout>
<url>https://download.eclipse.org/eclipse/updates/4.11</url>
</repository>
</repositories>
<modules>
<module>jdt-patch/e411/org.eclipse.jdt.core</module>
<module>jdt-patch/e411/org.eclipse.jdt.core.tests.builder</module>
<module>jdt-patch/e411/org.eclipse.jdt.core.tests.compiler</module>
<module>jdt-patch/e411/Feature-org.codehaus.groovy.jdt.patch</module>
</modules>
<properties>
<dist.target>e4.11</dist.target>
<greclipse.build.qualifier>'v'yyyyMMddHHmm'-e1903${dist.qualifier}'</greclipse.build.qualifier>
</properties>
</profile>
<profile>
<id>e4.10</id>
<repositories>
<repository>
<id>2018-12</id>
<layout>p2</layout>
<url>https://download.eclipse.org/releases/2018-12</url>
</repository>
<repository>
<id>eclipse</id>
<layout>p2</layout>
<url>https://download.eclipse.org/eclipse/updates/4.10</url>
</repository>
</repositories>
<modules>
<module>jdt-patch/e410/org.eclipse.jdt.core</module>
<module>jdt-patch/e410/org.eclipse.jdt.core.tests.builder</module>
<module>jdt-patch/e410/org.eclipse.jdt.core.tests.compiler</module>
<module>jdt-patch/e410/Feature-org.codehaus.groovy.jdt.patch</module>
</modules>
<properties>
<dist.target>e4.10</dist.target>
<greclipse.build.qualifier>'v'yyyyMMddHHmm'-e1812${dist.qualifier}'</greclipse.build.qualifier>
</properties>
</profile>
<profile>
<id>e49</id>
<repositories>
<repository>
<id>2018-09</id>
<layout>p2</layout>
<url>https://download.eclipse.org/releases/2018-09</url>
</repository>
<repository>
<id>eclipse49</id>
<layout>p2</layout>
<url>https://download.eclipse.org/eclipse/updates/4.9</url>
</repository>
</repositories>
<modules>
<module>jdt-patch/e49/org.eclipse.jdt.core</module>
<module>jdt-patch/e49/org.eclipse.jdt.core.tests.builder</module>
<module>jdt-patch/e49/org.eclipse.jdt.core.tests.compiler</module>
<module>jdt-patch/e49/Feature-org.codehaus.groovy.jdt.patch</module>
</modules>
<properties>
<dist.target>e4.9</dist.target>
<greclipse.build.qualifier>'v'yyyyMMddHHmm'-e1809${dist.qualifier}'</greclipse.build.qualifier>
</properties>
</profile>
<profile>
<id>e48</id>
<repositories>
<repository>
<id>photon</id>
<layout>p2</layout>
<url>https://download.eclipse.org/releases/photon</url>
</repository>
<repository>
<id>eclipse48</id>
<layout>p2</layout>
<url>https://download.eclipse.org/eclipse/updates/4.8</url>
</repository>
</repositories>
<modules>
<module>jdt-patch/e48/org.eclipse.jdt.core</module>
<module>jdt-patch/e48/org.eclipse.jdt.core.tests.builder</module>
<module>jdt-patch/e48/org.eclipse.jdt.core.tests.compiler</module>
<module>jdt-patch/e48/Feature-org.codehaus.groovy.jdt.patch</module>
</modules>
<properties>
<dist.target>e4.8</dist.target>
<greclipse.build.qualifier>'v'yyyyMMddHHmm'-e48${dist.qualifier}'</greclipse.build.qualifier>
</properties>
</profile>
<profile>
<id>e47</id>
<repositories>
<repository>
<id>oxygen</id>
<layout>p2</layout>
<url>https://download.eclipse.org/releases/oxygen</url>
</repository>
<repository>
<id>eclipse47</id>
<layout>p2</layout>
<url>https://download.eclipse.org/eclipse/updates/4.7</url>
</repository>
</repositories>
<modules>
<module>jdt-patch/e47/org.eclipse.jdt.core</module>
<module>jdt-patch/e47/org.eclipse.jdt.core.tests.builder</module>
<module>jdt-patch/e47/org.eclipse.jdt.core.tests.compiler</module>
<module>jdt-patch/e47/Feature-org.codehaus.groovy.jdt.patch</module>
</modules>
<properties>
<dist.target>e4.7</dist.target>
<greclipse.build.qualifier>'v'yyyyMMddHHmm'-e47${dist.qualifier}'</greclipse.build.qualifier>
</properties>
</profile>
<profile>
<id>s3-deploy</id>
<activation>
<property>
<name>env.dist_properties</name>
</property>
</activation>
<build>
<plugins>
<!-- This will define ${accessKey} and ${secretKey} properties to use for uploading to s3. -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<quiet>true</quiet>
<files>
<file>${env.dist_properties}</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- profile to sign jars. Enabled automatically on bamboo when detecting 'bamboo_signing_key_password' env variable is defined -->
<profile>
<id>bamboo-signing</id>
<activation>
<property>
<name>env.bamboo_signing_key_password</name>
</property>
</activation>
<properties>
<signing.skip>false</signing.skip>
<signing.alias>pivotal</signing.alias>
<signing.store.password>${env.bamboo_signing_store_password}</signing.store.password>
<signing.key.password>${env.bamboo_signing_key_password}</signing.key.password>
<signing.keystore>~/.keytool/pivotal.jks</signing.keystore>
</properties>
</profile>
<!-- snaphshot builds are the default. Enable one of the profiles below to do a milestone or release build -->
<profile>
<id>milestone</id>
<properties>
<dist.type>milestone</dist.type>
</properties>
</profile>
<profile>
<id>release</id>
<properties>
<dist.type>release</dist.type>
<dist.version>3.4.0</dist.version>
<dist.qualifier>-RELEASE</dist.qualifier>
<!-- use the below for 'practice' builds, comment out to do the 'real' build -->
<dist.path>${dist.type}/${dist.key}/${dist.version}/${dist.target}</dist.path>
</properties>
</profile>
</profiles>
<pluginRepositories>
<pluginRepository>
<id>groovy-bintray</id>
<name>Groovy Bintray</name>
<url>https://dl.bintray.com/groovy/maven</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<!-- We'll be doing our own deployment to s3, so disable default behavior. -->
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>sign</id>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>${signing.skip}</skip>
<alias>${signing.alias}</alias>
<keystore>${signing.keystore}</keystore>
<keypass>${signing.key.password}</keypass>
<storepass>${signing.store.password}</storepass>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<environments>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
</environments>
<!--dependency-resolution>
<extraRequirements>
<requirement>
<id>org.eclipse.xyz</id>
<type>eclipse-feature</type>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
<pomDependencies>consider</pomDependencies-->
</configuration>
</plugin>
<plugin>
<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-packaging-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<format>${greclipse.build.qualifier}</format>
<sourceReferences>
<generate>true</generate>
</sourceReferences>
</configuration>
<dependencies>
<dependency>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-sourceref-jgit</artifactId>
<version>${tycho-extras-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>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-source-feature-plugin</artifactId>
<version>${tycho-extras-version}</version>
<executions>
<execution>
<id>source-feature</id>
<phase>package</phase>
<goals>
<goal>source-feature</goal>
</goals>
<configuration>
<excludes>
<plugin id="org.codehaus.groovy.eclipse" />
</excludes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<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>
</plugins>
</build>
</project>