|
38 | 38 | </repository> |
39 | 39 | </distributionManagement> |
40 | 40 | <dependencies> |
41 | | - |
42 | | - <!-- <dependency> |
43 | | - <groupId>dev.fastball</groupId> |
44 | | - <artifactId>fastball-runtime-spring-devtools</artifactId> |
45 | | - <version>0.4.0</version> |
46 | | - </dependency> --> |
47 | 41 | <dependency> |
48 | 42 | <groupId>org.apache.tomcat.embed</groupId> |
49 | 43 | <artifactId>tomcat-embed-core</artifactId> |
|
54 | 48 | <artifactId>spring-boot-starter-web</artifactId> |
55 | 49 | <version>3.4.1</version> |
56 | 50 | </dependency> |
57 | | - |
| 51 | + <dependency> |
| 52 | + <groupId>org.jacoco</groupId> |
| 53 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 54 | + <version>0.8.12</version> |
| 55 | + </dependency> |
58 | 56 | <dependency> |
59 | 57 | <groupId>org.springframework.boot</groupId> |
60 | 58 | <artifactId>spring-boot-starter-test</artifactId> |
|
83 | 81 | <artifactId>lombok</artifactId> |
84 | 82 | <scope>annotationProcessor</scope> |
85 | 83 | </dependency> |
86 | | - <!-- <dependency> |
87 | | - <groupId>org.springframework.boot</groupId> |
88 | | - <artifactId>spring-boot-docker-compose</artifactId> |
89 | | - <scope>runtime</scope> |
90 | | - </dependency> --> |
91 | 84 | <dependency> |
92 | 85 | <groupId>com.mysql</groupId> |
93 | 86 | <artifactId>mysql-connector-j</artifactId> |
|
97 | 90 | </dependencies> |
98 | 91 |
|
99 | 92 | <build> |
| 93 | + <pluginManagement> |
| 94 | + <plugins> |
| 95 | + <plugin> |
| 96 | + <groupId>org.jacoco</groupId> |
| 97 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 98 | + <version>0.8.12</version> |
| 99 | + </plugin> |
| 100 | + </plugins> |
| 101 | + </pluginManagement> |
100 | 102 | <plugins> |
101 | 103 | <plugin> |
102 | 104 | <groupId>org.apache.maven.plugins</groupId> |
|
124 | 126 | <outputDirectory>${project.basedir}/target</outputDirectory> |
125 | 127 | </configuration> |
126 | 128 | </plugin> |
| 129 | + <plugin> |
| 130 | + <groupId>org.jacoco</groupId> |
| 131 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 132 | + <executions> |
| 133 | + <execution> |
| 134 | + <goals> |
| 135 | + <goal>prepare-agent</goal> |
| 136 | + </goals> |
| 137 | + </execution> |
| 138 | + <execution> |
| 139 | + <id>report</id> |
| 140 | + <phase>test</phase> |
| 141 | + <goals> |
| 142 | + <goal>report</goal> |
| 143 | + </goals> |
| 144 | + </execution> |
| 145 | + <execution> |
| 146 | + <id>jacoco-check</id> |
| 147 | + <goals> |
| 148 | + <goal>check</goal> |
| 149 | + </goals> |
| 150 | + <configuration> |
| 151 | + <rules> |
| 152 | + <rule> |
| 153 | + <element>PACKAGE</element> |
| 154 | + <limits> |
| 155 | + <limit> |
| 156 | + <counter>LINE</counter> |
| 157 | + <value>COVEREDRATIO</value> |
| 158 | + <minimum>20%</minimum> |
| 159 | + </limit> |
| 160 | + </limits> |
| 161 | + </rule> |
| 162 | + </rules> |
| 163 | + </configuration> |
| 164 | + </execution> |
| 165 | + </executions> |
| 166 | + </plugin> |
127 | 167 | </plugins> |
128 | 168 | </build> |
129 | 169 | </project> |
0 commit comments