|
125 | 125 | <plugin> |
126 | 126 | <groupId>org.apache.felix</groupId> |
127 | 127 | <artifactId>maven-bundle-plugin</artifactId> |
128 | | - <version>2.5.4</version> |
| 128 | + <version>3.5.0</version> |
129 | 129 | <executions> |
130 | 130 | <execution> |
131 | 131 | <id>bundle-manifest</id> |
|
181 | 181 | <scope>test</scope> |
182 | 182 | </dependency> |
183 | 183 |
|
| 184 | + <dependency> |
| 185 | + <groupId>org.jacoco</groupId> |
| 186 | + <artifactId>org.jacoco.agent</artifactId> |
| 187 | + <version>${jacoco.version}</version> |
| 188 | + <classifier>runtime</classifier> |
| 189 | + <scope>test</scope> |
| 190 | + </dependency> |
| 191 | + |
184 | 192 | <dependency> |
185 | 193 | <groupId>junit</groupId> |
186 | 194 | <artifactId>junit</artifactId> |
|
223 | 231 | <properties> |
224 | 232 | <antlr-version>4.7.1</antlr-version> |
225 | 233 | </properties> |
| 234 | + |
| 235 | + <profiles> |
| 236 | + <profile> |
| 237 | + <id>coverage</id> |
| 238 | + <build> |
| 239 | + <plugins> |
| 240 | + <!-- sure-fire --> |
| 241 | + <plugin> |
| 242 | + <groupId>org.apache.maven.plugins</groupId> |
| 243 | + <artifactId>maven-surefire-plugin</artifactId> |
| 244 | + <configuration> |
| 245 | + <includes> |
| 246 | + <include>**/*Test.java</include> |
| 247 | + <include>**/*Hbs.java</include> |
| 248 | + <include>**/*Issue*.java</include> |
| 249 | + </includes> |
| 250 | + <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine> |
| 251 | + <systemPropertyVariables> |
| 252 | + <!-- JaCoCo runtime must know where to dump coverage: --> |
| 253 | + <jacoco-agent.destfile>target${file.separator}jacoco.exec</jacoco-agent.destfile> |
| 254 | + </systemPropertyVariables> |
| 255 | + </configuration> |
| 256 | + </plugin> |
| 257 | + |
| 258 | + <plugin> |
| 259 | + <groupId>org.jacoco</groupId> |
| 260 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 261 | + <version>${jacoco.version}</version> |
| 262 | + <configuration> |
| 263 | + <excludes> |
| 264 | + <exclude>**/Hbs*</exclude> |
| 265 | + </excludes> |
| 266 | + </configuration> |
| 267 | + <executions> |
| 268 | + <execution> |
| 269 | + <id>instrument</id> |
| 270 | + <phase>process-classes</phase> |
| 271 | + <goals> |
| 272 | + <goal>instrument</goal> |
| 273 | + </goals> |
| 274 | + </execution> |
| 275 | + <execution> |
| 276 | + <id>restore</id> |
| 277 | + <phase>prepare-package</phase> |
| 278 | + <goals> |
| 279 | + <goal>restore-instrumented-classes</goal> |
| 280 | + <goal>report</goal> |
| 281 | + </goals> |
| 282 | + </execution> |
| 283 | + </executions> |
| 284 | + </plugin> |
| 285 | + <!-- coveralls --> |
| 286 | + <plugin> |
| 287 | + <groupId>org.eluder.coveralls</groupId> |
| 288 | + <artifactId>coveralls-maven-plugin</artifactId> |
| 289 | + <version>4.3.0</version> |
| 290 | + </plugin> |
| 291 | + </plugins> |
| 292 | + </build> |
| 293 | + </profile> |
| 294 | + </profiles> |
226 | 295 | </project> |
0 commit comments