Skip to content

Commit

Permalink
RESTEASY-2359 - remove cobertura plugin from resteasy-spring-boot (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
liweinan committed Oct 15, 2019
1 parent c9858a1 commit 17fda2a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 63 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
<!-- Set-up TravisCI, Codacy and deploy a first release with RESTEasy group id and artifact id, then uncomment and adjust accordingly the lines below replacing ?????? by correct values -->
<!-- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ -->
[![Build Status](https://travis-ci.org/resteasy/resteasy-spring-boot.svg?branch=master)](https://travis-ci.org/resteasy/resteasy-spring-boot)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/b30b165246e64b0a8b920acb389333bc)](https://www.codacy.com/app/asoldano/resteasy-spring-boot)
[![Codacy Coverage Badge](https://api.codacy.com/project/badge/Coverage/b30b165246e64b0a8b920acb389333bc)](https://www.codacy.com/app/asoldano/resteasy-spring-boot)
<!-- [![Maven Central](https://maven-badges.herokuapp.com/maven-central/??????/resteasy-spring-boot-starter/badge.svg?style=flat)](http://search.maven.org/#search|ga|1|g:??????) -->

# RESTEasy Spring Boot Starter

Expand Down
57 changes: 0 additions & 57 deletions resteasy-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -452,52 +452,6 @@
</plugins>
</build>
</profile>
<profile>
<id>cobertura</id>
<activation>
<jdk>[,1.9)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<configuration>
<check>
<lineRate>${coverage.line}</lineRate>
<packageLineRate>${coverage.line}</packageLineRate>
<totalLineRate>${coverage.line}</totalLineRate>
<branchRate>${coverage.branch}</branchRate>
<packageBranchRate>${coverage.branch}</packageBranchRate>
<totalBranchRate>${coverage.branch}</totalBranchRate>
<haltOnFailure>true</haltOnFailure>
<regexes>
<regex>
<pattern>org.jboss.resteasy.springboot.JaxrsApplicationScanner</pattern>
<lineRate>${coverage.lineRate}</lineRate>
<branchRate>${coverage.branchRate}</branchRate>
</regex>
</regexes>
</check>
<formats>
<format>html</format>
<format>xml</format>
</formats>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>clean</goal>
<goal>cobertura</goal>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
Expand Down Expand Up @@ -559,15 +513,4 @@
</plugin>
</plugins>
</build>

<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
</plugin>
</plugins>
</reporting>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ private void testServletContextListener(ServletContext servletContext) throws Ex
Assert.assertNotNull(servletContextDispatcher);
Assert.assertNotNull(servletContextRegistry);

// Exercising fully cobertura branch coverage
servletContextListener.contextDestroyed(sce);
ServletContextListener servletContextListener2 = resteasyAutoConfiguration.resteasyBootstrapListener(beanFactoryPostProcessor);
servletContextListener2.contextDestroyed(sce);
}


Expand Down

0 comments on commit 17fda2a

Please sign in to comment.