xref: /aosp_15_r20/external/jacoco/jacoco-maven-plugin.test/it/it-java9/pom.xml (revision 7e63c1270baf9bfa84f5b6aecf17bd0c1a75af94)
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3   Copyright (c) 2009, 2021 Mountainminds GmbH & Co. KG and Contributors
4   This program and the accompanying materials are made available under
5   the terms of the Eclipse Public License 2.0 which is available at
6   http://www.eclipse.org/legal/epl-2.0
7
8   SPDX-License-Identifier: EPL-2.0
9
10   Contributors:
11      Evgeny Mandrikov - initial API and implementation
12-->
13<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
15  <modelVersion>4.0.0</modelVersion>
16
17  <parent>
18    <groupId>jacoco</groupId>
19    <artifactId>setup-parent</artifactId>
20    <version>1.0-SNAPSHOT</version>
21    <relativePath>../setup-parent</relativePath>
22  </parent>
23
24  <artifactId>it-java9</artifactId>
25
26  <build>
27    <plugins>
28      <plugin>
29        <groupId>org.apache.maven.plugins</groupId>
30        <artifactId>maven-compiler-plugin</artifactId>
31        <configuration>
32          <source>9</source>
33          <target>9</target>
34        </configuration>
35      </plugin>
36      <plugin>
37        <groupId>@project.groupId@</groupId>
38        <artifactId>jacoco-maven-plugin</artifactId>
39        <executions>
40          <execution>
41            <goals>
42              <goal>prepare-agent</goal>
43              <goal>report</goal>
44            </goals>
45          </execution>
46          <execution>
47            <id>check</id>
48            <goals>
49              <goal>check</goal>
50            </goals>
51            <configuration>
52              <rules>
53                <rule>
54                  <limits>
55                    <limit>
56                      <counter>INSTRUCTION</counter>
57                      <value>COVEREDCOUNT</value>
58                      <minimum>8</minimum>
59                      <maximum>8</maximum>
60                    </limit>
61                  </limits>
62                </rule>
63              </rules>
64            </configuration>
65          </execution>
66        </executions>
67      </plugin>
68    </plugins>
69  </build>
70</project>
71