blob: df784a5ea93a38ef6836e605b7e22a456bbba345 [file] [log] [blame]
Stephan Herrmann415903e2012-05-26 15:53:02 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Stephan Herrmannb1453352022-11-17 19:21:57 +01003 Copyright (c) 2012, 2022 Eclipse Foundation and others.
Stephan Herrmann415903e2012-05-26 15:53:02 +02004 All rights reserved. This program and the accompanying materials
5 are made available under the terms of the Eclipse Distribution License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/org/documents/edl-v10.php
Stephan Herrmann7941b7c2013-11-03 16:07:28 +01008
Stephan Herrmann415903e2012-05-26 15:53:02 +02009 Contributors:
10 Igor Fedorenko - initial implementation
Stephan Herrmann7941b7c2013-11-03 16:07:28 +010011 Mickael Istria (Red Hat Inc.) - 416912: tycho-surefire-plugin configuration
Stephan Herrmann415903e2012-05-26 15:53:02 +020012-->
Stephan Herrmannc7600d82013-04-28 22:48:05 +020013<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/xsd/maven-4.0.0.xsd">
Stephan Herrmann415903e2012-05-26 15:53:02 +020014 <modelVersion>4.0.0</modelVersion>
15 <parent>
Stephan Herrmann4c6c5002013-09-12 23:09:47 +020016 <artifactId>tests-pom</artifactId>
Stephan Herrmanne8828ac2022-02-11 21:14:44 +010017 <groupId>org.eclipse.jdt</groupId>
Stephan Herrmanndb1b02a2023-03-30 17:48:39 +020018 <version>4.28.0-SNAPSHOT</version>
Stephan Herrmann4c6c5002013-09-12 23:09:47 +020019 <relativePath>../tests-pom/</relativePath>
Stephan Herrmann415903e2012-05-26 15:53:02 +020020 </parent>
Stephan Herrmann415903e2012-05-26 15:53:02 +020021 <artifactId>org.eclipse.jdt.core.tests.model</artifactId>
Stephan Herrmanna4bf2a32023-03-30 20:14:00 +020022 <version>3.12.0-SNAPSHOT</version>
Stephan Herrmann4c6c5002013-09-12 23:09:47 +020023 <packaging>eclipse-test-plugin</packaging>
24
25 <properties>
26 <defaultSigning-excludeInnerJars>true</defaultSigning-excludeInnerJars>
Stephan Herrmannd4cbc682016-10-28 20:51:00 +020027 <code.ignoredWarnings>-warn:+fieldHiding,-unavoidableGenericProblems</code.ignoredWarnings>
Stephan Herrmann4c6c5002013-09-12 23:09:47 +020028 </properties>
Stephan Herrmann918c05c2012-12-16 20:09:49 +010029
30 <build>
31 <plugins>
32 <plugin>
Stephan Herrmann7941b7c2013-11-03 16:07:28 +010033 <groupId>org.eclipse.tycho</groupId>
34 <artifactId>tycho-surefire-plugin</artifactId>
35 <version>${tycho.version}</version>
36 <configuration>
Stephan Herrmanncf7f96e2022-04-15 20:23:55 +020037 <argLine>-Xmx1G -Djdt.default.test.compliance=1.8 ${tycho.surefire.argLine}</argLine>
Stephan Herrmann7941b7c2013-11-03 16:07:28 +010038 <includes>
39 <include>org/eclipse/jdt/core/tests/model/AllJavaModelTests.class</include>
40 <include>org/eclipse/jdt/core/tests/dom/RunAllTests.class</include>
41 <include>org/eclipse/jdt/core/tests/RunFormatterTests.class</include>
42 </includes>
43 </configuration>
44 </plugin>
Stephan Herrmann918c05c2012-12-16 20:09:49 +010045 </plugins>
46 </build>
Stephan Herrmann3442b522018-01-25 21:18:41 +010047
48 <profiles>
Stephan Herrmann48090d62021-09-11 22:01:12 +020049 <profile>
50 <id>build-individual-bundles</id>
51 <properties>
52 <code.ignoredWarnings>-warn:+fieldHiding,-unavoidableGenericProblems,-discouraged</code.ignoredWarnings>
53 </properties>
54 </profile>
Stephan Herrmann3442b522018-01-25 21:18:41 +010055 <profile>
Stephan Herrmann48090d62021-09-11 22:01:12 +020056 <id>test-on-javase-17</id>
57 <build>
58 <plugins>
59 <plugin>
60 <groupId>org.apache.maven.plugins</groupId>
61 <artifactId>maven-toolchains-plugin</artifactId>
Stephan Herrmann48090d62021-09-11 22:01:12 +020062 <configuration>
63 <toolchains>
64 <jdk>
65 <id>JavaSE-17</id>
66 </jdk>
67 </toolchains>
68 </configuration>
69 </plugin>
70 </plugins>
71 </build>
72 <properties>
73 <tycho.surefire.argLine>--add-modules ALL-SYSTEM -Dcompliance=1.4,1.7,1.8,14,17</tycho.surefire.argLine>
74 </properties>
75 </profile>
Stephan Herrmann2352c112022-04-03 01:28:41 +020076 <profile>
77 <id>test-on-javase-18</id>
78 <build>
79 <plugins>
80 <plugin>
81 <groupId>org.apache.maven.plugins</groupId>
82 <artifactId>maven-toolchains-plugin</artifactId>
Stephan Herrmann2352c112022-04-03 01:28:41 +020083 <configuration>
84 <toolchains>
85 <jdk>
86 <id>JavaSE-18</id>
87 </jdk>
88 </toolchains>
89 </configuration>
90 </plugin>
91 </plugins>
92 </build>
93 <properties>
94 <tycho.surefire.argLine>--add-modules ALL-SYSTEM -Dcompliance=1.4,1.7,1.8,15,18</tycho.surefire.argLine>
95 </properties>
96 </profile>
Stephan Herrmannb1453352022-11-17 19:21:57 +010097 <profile>
98 <id>test-on-javase-19</id>
99 <build>
100 <plugins>
101 <plugin>
102 <groupId>org.apache.maven.plugins</groupId>
103 <artifactId>maven-toolchains-plugin</artifactId>
104 <configuration>
105 <toolchains>
106 <jdk>
107 <id>JavaSE-19</id>
108 </jdk>
109 </toolchains>
110 </configuration>
111 </plugin>
112 </plugins>
113 </build>
114 <properties>
115 <tycho.surefire.argLine>--add-modules ALL-SYSTEM -Dcompliance=1.4,1.7,1.8,17,19</tycho.surefire.argLine>
116 </properties>
117 </profile>
Stephan Herrmann09d23262023-06-02 00:27:26 +0200118 <profile>
119 <id>test-on-javase-20</id>
120 <build>
121 <plugins>
122 <plugin>
123 <groupId>org.apache.maven.plugins</groupId>
124 <artifactId>maven-toolchains-plugin</artifactId>
125 <configuration>
126 <toolchains>
127 <jdk>
128 <id>JavaSE-20</id>
129 </jdk>
130 </toolchains>
131 </configuration>
132 </plugin>
133 </plugins>
134 </build>
135 <properties>
136 <tycho.surefire.argLine>--add-modules ALL-SYSTEM -Dcompliance=1.4,1.7,1.8,17,20</tycho.surefire.argLine>
137 </properties>
138 </profile>
Stephan Herrmann3442b522018-01-25 21:18:41 +0100139 </profiles>
140
Stephan Herrmann415903e2012-05-26 15:53:02 +0200141</project>