1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3   Copyright (c) 2009, 2018 Mountainminds GmbH & Co. KG and Contributors
4   All rights reserved. This program and the accompanying materials
5   are made available under the terms of the Eclipse Public License v1.0
6   which accompanies this distribution, and is available at
7   http://www.eclipse.org/legal/epl-v10.html
8
9   Contributors:
10      Evgeny Mandrikov - initial API and implementation
11-->
12<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">
13  <modelVersion>4.0.0</modelVersion>
14
15  <parent>
16    <groupId>org.jacoco</groupId>
17    <artifactId>org.jacoco.tests</artifactId>
18    <version>0.8.0</version>
19    <relativePath>../org.jacoco.tests</relativePath>
20  </parent>
21
22  <artifactId>org.jacoco.core.test</artifactId>
23
24  <name>JaCoCo :: Test :: Core</name>
25
26  <properties>
27    <jacoco.includes>org.jacoco.core.*</jacoco.includes>
28  </properties>
29
30  <dependencies>
31    <dependency>
32      <groupId>${project.groupId}</groupId>
33      <artifactId>org.jacoco.core</artifactId>
34    </dependency>
35    <dependency>
36      <groupId>junit</groupId>
37      <artifactId>junit</artifactId>
38    </dependency>
39  </dependencies>
40
41  <profiles>
42    <profile>
43      <id>java7-validation</id>
44      <activation>
45        <property>
46          <name>bytecode.version</name>
47          <value>1.7</value>
48        </property>
49      </activation>
50      <build>
51        <plugins>
52          <plugin>
53            <groupId>org.codehaus.mojo</groupId>
54            <artifactId>build-helper-maven-plugin</artifactId>
55            <executions>
56              <execution>
57                <id>add-source</id>
58                <phase>generate-sources</phase>
59                <goals>
60                  <goal>add-source</goal>
61                </goals>
62                <configuration>
63                  <sources>
64                    <source>src-java7</source>
65                  </sources>
66                </configuration>
67              </execution>
68            </executions>
69          </plugin>
70        </plugins>
71      </build>
72    </profile>
73    <profile>
74      <id>java8-validation</id>
75      <activation>
76        <property>
77          <name>bytecode.version</name>
78          <value>1.8</value>
79        </property>
80      </activation>
81      <build>
82        <plugins>
83          <plugin>
84            <groupId>org.codehaus.mojo</groupId>
85            <artifactId>build-helper-maven-plugin</artifactId>
86            <executions>
87              <execution>
88                <id>add-source</id>
89                <phase>generate-sources</phase>
90                <goals>
91                  <goal>add-source</goal>
92                </goals>
93                <configuration>
94                  <sources>
95                    <source>src-java7</source>
96                    <source>src-java8</source>
97                  </sources>
98                </configuration>
99              </execution>
100            </executions>
101          </plugin>
102        </plugins>
103      </build>
104    </profile>
105    <profile>
106      <id>java9-validation</id>
107      <activation>
108        <!-- for some reason activation should be presented here, even if already defined in parent -->
109        <property>
110          <name>bytecode.version</name>
111          <value>1.9</value>
112        </property>
113      </activation>
114      <properties>
115        <maven.compiler.target>1.9</maven.compiler.target>
116      </properties>
117      <build>
118        <plugins>
119          <plugin>
120            <groupId>org.codehaus.mojo</groupId>
121            <artifactId>build-helper-maven-plugin</artifactId>
122            <executions>
123              <execution>
124                <id>add-source</id>
125                <phase>generate-sources</phase>
126                <goals>
127                  <goal>add-source</goal>
128                </goals>
129                <configuration>
130                  <sources>
131                    <source>src-java7</source>
132                    <source>src-java8</source>
133                  </sources>
134                </configuration>
135              </execution>
136            </executions>
137          </plugin>
138        </plugins>
139      </build>
140    </profile>
141  </profiles>
142
143</project>
144