|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
3 |
| - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
4 |
| - <modelVersion>4.0.0</modelVersion> |
5 |
| - <parent> |
6 |
| - <groupId>org.springframework.boot</groupId> |
7 |
| - <artifactId>spring-boot-starter-parent</artifactId> |
8 |
| - <version>2.3.4.RELEASE</version> |
9 |
| - <relativePath/> <!-- lookup parent from repository --> |
10 |
| - </parent> |
11 |
| - <groupId>de.filefighter</groupId> |
12 |
| - <artifactId>rest</artifactId> |
13 |
| - <version>0.0.1-SNAPSHOT</version> |
14 |
| - <name>rest</name> |
15 |
| - <description>RestApi</description> |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + <parent> |
| 6 | + <groupId>org.springframework.boot</groupId> |
| 7 | + <artifactId>spring-boot-starter-parent</artifactId> |
| 8 | + <version>2.3.4.RELEASE</version> |
| 9 | + <relativePath/> <!-- lookup parent from repository --> |
| 10 | + </parent> |
| 11 | + <groupId>de.filefighter</groupId> |
| 12 | + <artifactId>rest</artifactId> |
| 13 | + <version>0.0.1-SNAPSHOT</version> |
| 14 | + <name>rest</name> |
| 15 | + <description>RestApi</description> |
16 | 16 |
|
17 |
| - <properties> |
18 |
| - <java.version>11</java.version> |
19 |
| - </properties> |
| 17 | + <properties> |
| 18 | + <java.version>11</java.version> |
| 19 | + </properties> |
20 | 20 |
|
21 |
| - <dependencies> |
| 21 | + <dependencies> |
22 | 22 |
|
23 |
| - <dependency> |
24 |
| - <groupId>org.springframework.boot</groupId> |
25 |
| - <artifactId>spring-boot-starter-web</artifactId> |
26 |
| - </dependency> |
| 23 | + <dependency> |
| 24 | + <groupId>org.springframework.boot</groupId> |
| 25 | + <artifactId>spring-boot-starter-web</artifactId> |
| 26 | + </dependency> |
27 | 27 |
|
28 |
| - <!-- |
29 |
| - <dependency> |
30 |
| - <groupId>org.springframework.boot</groupId> |
31 |
| - <artifactId>spring-boot-starter-data-mongodb</artifactId> |
32 |
| - </dependency> |
33 |
| - --> |
| 28 | + <!-- |
| 29 | + <dependency> |
| 30 | + <groupId>org.springframework.boot</groupId> |
| 31 | + <artifactId>spring-boot-starter-data-mongodb</artifactId> |
| 32 | + </dependency> |
| 33 | + --> |
34 | 34 |
|
35 |
| - <dependency> |
36 |
| - <groupId>io.springfox</groupId> |
37 |
| - <artifactId>springfox-boot-starter</artifactId> |
38 |
| - <version>3.0.0</version> |
39 |
| - </dependency> |
| 35 | + <dependency> |
| 36 | + <groupId>io.springfox</groupId> |
| 37 | + <artifactId>springfox-boot-starter</artifactId> |
| 38 | + <version>3.0.0</version> |
| 39 | + </dependency> |
40 | 40 |
|
41 |
| - <dependency> |
42 |
| - <groupId>org.projectlombok</groupId> |
43 |
| - <artifactId>lombok</artifactId> |
44 |
| - <version>1.18.12</version> |
45 |
| - </dependency> |
| 41 | + <dependency> |
| 42 | + <groupId>org.projectlombok</groupId> |
| 43 | + <artifactId>lombok</artifactId> |
| 44 | + <version>1.18.12</version> |
| 45 | + </dependency> |
46 | 46 |
|
47 |
| - <!-- tag::spring-hateoas[] --> |
48 |
| - <dependency> |
49 |
| - <groupId>org.springframework.boot</groupId> |
50 |
| - <artifactId>spring-boot-starter-hateoas</artifactId> |
51 |
| - </dependency> |
52 |
| - <!-- end::spring-hateoas[] --> |
| 47 | + <!-- tag::spring-hateoas[] --> |
| 48 | + <dependency> |
| 49 | + <groupId>org.springframework.boot</groupId> |
| 50 | + <artifactId>spring-boot-starter-hateoas</artifactId> |
| 51 | + </dependency> |
| 52 | + <!-- end::spring-hateoas[] --> |
53 | 53 |
|
54 |
| - <!-- TESTING --> |
55 |
| - <dependency> |
56 |
| - <groupId>org.junit.jupiter</groupId> |
57 |
| - <artifactId>junit-jupiter</artifactId> |
58 |
| - <scope>test</scope> |
59 |
| - </dependency> |
60 |
| - <dependency> |
61 |
| - <groupId>org.mockito</groupId> |
62 |
| - <artifactId>mockito-core</artifactId> |
63 |
| - <version>3.5.7</version> |
64 |
| - </dependency> |
65 |
| - <dependency> |
66 |
| - <groupId>org.mockito</groupId> |
67 |
| - <artifactId>mockito-inline</artifactId> |
68 |
| - <version>3.5.5</version> |
69 |
| - </dependency> |
70 |
| - <dependency> |
71 |
| - <groupId>org.jetbrains</groupId> |
72 |
| - <artifactId>annotations</artifactId> |
73 |
| - <version>20.1.0</version> |
74 |
| - </dependency> |
75 |
| - <dependency> |
76 |
| - <groupId>org.springframework.boot</groupId> |
77 |
| - <artifactId>spring-boot-starter-test</artifactId> |
78 |
| - <scope>test</scope> |
79 |
| - </dependency> |
80 |
| - <!-- TESTING --> |
| 54 | + <!-- TESTING --> |
| 55 | + <dependency> |
| 56 | + <groupId>org.junit.jupiter</groupId> |
| 57 | + <artifactId>junit-jupiter</artifactId> |
| 58 | + <scope>test</scope> |
| 59 | + </dependency> |
| 60 | + <dependency> |
| 61 | + <groupId>org.mockito</groupId> |
| 62 | + <artifactId>mockito-core</artifactId> |
| 63 | + <version>3.5.7</version> |
| 64 | + </dependency> |
| 65 | + <dependency> |
| 66 | + <groupId>org.mockito</groupId> |
| 67 | + <artifactId>mockito-inline</artifactId> |
| 68 | + <version>3.5.5</version> |
| 69 | + </dependency> |
| 70 | + <dependency> |
| 71 | + <groupId>org.jetbrains</groupId> |
| 72 | + <artifactId>annotations</artifactId> |
| 73 | + <version>20.1.0</version> |
| 74 | + </dependency> |
| 75 | + <dependency> |
| 76 | + <groupId>org.springframework.boot</groupId> |
| 77 | + <artifactId>spring-boot-starter-test</artifactId> |
| 78 | + <scope>test</scope> |
| 79 | + </dependency> |
| 80 | + <!-- TESTING --> |
81 | 81 |
|
82 |
| - </dependencies> |
| 82 | + </dependencies> |
83 | 83 |
|
84 |
| - <build> |
85 |
| - <plugins> |
86 |
| - <plugin> |
87 |
| - <groupId>org.springframework.boot</groupId> |
88 |
| - <artifactId>spring-boot-maven-plugin</artifactId> |
89 |
| - </plugin> |
90 |
| - </plugins> |
91 |
| - </build> |
92 | 84 |
|
| 85 | + <build> |
| 86 | + <plugins> |
| 87 | + <plugin> |
| 88 | + <groupId>org.springframework.boot</groupId> |
| 89 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 90 | + </plugin> |
| 91 | + <plugin> |
| 92 | + <groupId>org.jacoco</groupId> |
| 93 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 94 | + <version>0.8.5</version> |
| 95 | + <executions> |
| 96 | + <execution> |
| 97 | + <goals> |
| 98 | + <goal>prepare-agent</goal> |
| 99 | + </goals> |
| 100 | + </execution> |
| 101 | + <!-- attached to Maven test phase --> |
| 102 | + <execution> |
| 103 | + <id>report</id> |
| 104 | + <phase>test</phase> |
| 105 | + <goals> |
| 106 | + <goal>report</goal> |
| 107 | + </goals> |
| 108 | + </execution> |
| 109 | + |
| 110 | + <execution> |
| 111 | + <id>jacoco-check</id> |
| 112 | + <goals> |
| 113 | + <goal>check</goal> |
| 114 | + </goals> |
| 115 | + <configuration> |
| 116 | + <rules> |
| 117 | + <rule> |
| 118 | + <element>PACKAGE</element> |
| 119 | + <limits> |
| 120 | + <limit> |
| 121 | + <counter>LINE</counter> |
| 122 | + <value>COVEREDRATIO</value> |
| 123 | + <minimum>0.9</minimum> |
| 124 | + </limit> |
| 125 | + </limits> |
| 126 | + </rule> |
| 127 | + </rules> |
| 128 | + </configuration> |
| 129 | + </execution> |
| 130 | + |
| 131 | + </executions> |
| 132 | + </plugin> |
| 133 | + </plugins> |
| 134 | + </build> |
93 | 135 | </project>
|
0 commit comments