forked from fraunhoferfokus/Xtensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
410 lines (382 loc) · 12.3 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
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2017 Max Bureck (Fraunhofer FOKUS) and others. All rights
reserved. This program and the accompanying materials are made available
under the terms of the Eclipse Public License v2.0 which accompanies this
distribution, and is available at http://www.eclipse.org/legal/epl-v20.html
Contributors: Max Bureck (Fraunhofer FOKUS) - initial config
* Enable profile "coverage-report" to create a Jacoco coverage
* To push the code coverage report to coveralls.io, pass parameter "coveralls". This automatically enables profile "coverage-report"
* To build incubation bundles, enable profile "incubation"
* On release pass property "release", e.g. passing parameter "-Drelease" -->
<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 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.fraunhoferfokus.xtensions</groupId>
<artifactId>xtensions.master</artifactId>
<version>1.3.0-SNAPSHOT</version>
<name>Xtensions Build Master</name>
<packaging>pom</packaging>
<description>
This library is mainly a collection of Xtend extension methods
for classes in the Java 8 standard library and the Xtend standard library.
</description>
<url>https://github.com/fraunhoferfokus/Xtensions</url>
<licenses>
<license>
<name>Eclipse Public License - v 2.0</name>
<url>https://www.eclipse.org/legal/epl-v20.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:https://github.com/fraunhoferfokus/Xtensions.git</connection>
<developerConnection>scm:git:[email protected]:fraunhoferfokus/Xtensions.git</developerConnection>
<url>https://github.com/fraunhoferfokus/Xtensions</url>
</scm>
<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/fraunhoferfokus/Xtensions/issues</url>
</issueManagement>
<developers>
<developer>
<name>Max Bureck</name>
<organization>Fraunhofer FOKUS</organization>
<organizationUrl>https://www.fokus.fraunhofer.de/</organizationUrl>
</developer>
</developers>
<prerequisites>
<maven>3.6.0</maven>
</prerequisites>
<properties>
<tycho-version>1.4.0</tycho-version>
<xtend-version>2.15.0</xtend-version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco-version>0.8.3</jacoco-version>
</properties>
<repositories>
<repository>
<id>oxygen</id>
<layout>p2</layout>
<url>http://download.eclipse.org/releases/oxygen</url>
</repository>
<repository>
<id>xtext</id>
<layout>p2</layout>
<url>http://download.eclipse.org/modeling/tmf/xtext/updates/releases/${xtend-version}/</url>
</repository>
</repositories>
<modules>
<module>bundles/de.fhg.fokus.xtensions</module>
<module>features/de.fhg.fokus.xtensions.feature</module>
<module>p2/de.fhg.fokus.xtensions.p2</module>
<!-- bundles need to be in build to be deployed as maven project, so POM
hierarchy is in deployed repo -->
<module>bundles</module>
<!-- The following modules are only listed to allow easy version adjustment
from this master -->
<module>features</module>
</modules>
<profiles>
<profile>
<!-- This profile is always active, and only de-activated if property
"release" is set -->
<id>nonRelease</id>
<activation>
<property>
<name>!release</name>
</property>
</activation>
<modules>
<module>tests</module>
<module>tests/de.fhg.fokus.xtensions.tests</module>
</modules>
</profile>
<profile>
<id>incubation</id>
<modules>
<!-- Incubation bundles -->
<module>bundles-incubation/de.fhg.fokus.xtensions.incubation</module>
<module>tests-incubation/de.fhg.fokus.xtensions.incubation.tests</module>
<module>bundles-incubation/de.fhg.fokus.xtensions.circuitbreaker</module>
<module>tests-incubation/de.fhg.fokus.xtensions.circuitbreaker.tests</module>
</modules>
</profile>
<profile>
<id>coverage-report</id>
<activation>
<property>
<name>coveralls</name>
</property>
</activation>
<modules>
<module>releng/de.fhg.fokus.xtensions.report</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<includes>
<include>de/fhg/fokus/xtensions/**/*</include>
</includes>
<excludes>
<exclude>de/fhg/fokus/xtensions/Showcase*</exclude>
<exclude>de/fhg/fokus/xtensions/Util*</exclude>
<exclude>**/*Test*</exclude>
</excludes>
<append>true</append>
</configuration>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<!-- Manually added dependency for xbase lib, so maven can resolve this,
when not using p2 as source of the library -->
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.xbase.lib</artifactId>
<version>${xtend-version}</version>
</dependency>
</dependencies>
<distributionManagement>
<repository>
<id>bintray-boereck-xtensions-maven</id>
<name>boereck-xtensions-maven</name>
<url>https://api.bintray.com/maven/boereck/xtensions-maven/Xtensions/;publish=1</url>
</repository>
<snapshotRepository>
<id>bintray-snapshots-xtensions-maven</id>
<name>oss-jfrog-artifactory-snapshots</name>
<url>http://oss.jfrog.org/artifactory/oss-snapshot-local</url>
</snapshotRepository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-help-plugin</artifactId>
<version>3.1.1</version>
</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-compiler-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<excludeResources>
<exludeResource>**/*.xtend</exludeResource>
</excludeResources>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<!-- set file encoding -->
<appArgLine>-Dfile.encoding=UTF-8</appArgLine>
<useUIThread>false</useUIThread>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-source-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>attach-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-version}</version>
<executions>
<execution>
<id>source-feature</id>
<phase>package</phase>
<goals>
<goal>source-feature</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Needed for source feature -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<!-- Do not attach metadata before the source-feature execution -->
<id>default-p2-metadata-default</id>
<configuration>
<attachP2Metadata>false</attachP2Metadata>
</configuration>
</execution>
<execution>
<!-- Do attach metadata after the source-feature execution -->
<id>attach-p2-metadata</id>
<goals>
<goal>p2-metadata</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<finalName>${project.artifactId}-${qualifiedVersion}</finalName>
</configuration>
</plugin>
<!-- Generate Java from Xtend sources -->
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
<version>${xtend-version}</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>xtend-install-debug-info</goal>
<goal>testCompile</goal>
<goal>xtend-test-install-debug-info</goal>
</goals>
<configuration>
<!-- Tried to make maven build output to ${project.basedir}/xtend-gen
But the tycho-compiler-plugin somehow does not pick up the directory, even
with the build-helper-maven-plugin configuration below. -->
<outputDirectory>${project.basedir}/xtend-gen</outputDirectory>
<testOutputDirectory>${project.basedir}/xtend-gen</testOutputDirectory>
<xtendAsPrimaryDebugSource>true</xtendAsPrimaryDebugSource>
</configuration>
</execution>
</executions>
</plugin>
<!-- Delete Java files generated from Xtend on clean -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}/xtend-gen</directory>
<includes>
<include>**/*</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
<!-- Let build know about generated Java sources -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.basedir}/xtend-gen</source>
</sources>
</configuration>
</execution>
<execution>
<id>add-test-source</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>${project.basedir}/xtend-gen</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<!-- Needed for release on travis-ci -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<pushChanges>false</pushChanges>
<preparationGoals>org.eclipse.tycho:tycho-versions-plugin:${tycho-version}:update-eclipse-metadata
org.apache.maven.plugins:maven-scm-plugin:1.9.5:add
org.apache.maven.plugins:maven-scm-plugin:1.9.5:checkin</preparationGoals>
<completionGoals>org.eclipse.tycho:tycho-versions-plugin:${tycho-version}:update-eclipse-metadata
org.apache.maven.plugins:maven-scm-plugin:1.9.5:add
org.apache.maven.plugins:maven-scm-plugin:1.9.5:checkin</completionGoals>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<types>sources</types>
</configuration>
</plugin>
</plugins>
<!-- Set default versions for plugins used by sub-projects -->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-version}</version>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.3.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>