Arreglo de codacy

This commit is contained in:
Pablo Franco Sánchez 2021-04-03 13:33:08 +02:00
parent 03c741b770
commit 189b80e947

100
pom.xml
View file

@ -27,7 +27,12 @@
<webjars-jquery.version>2.2.4</webjars-jquery.version> <webjars-jquery.version>2.2.4</webjars-jquery.version>
<wro4j.version>1.8.0</wro4j.version> <wro4j.version>1.8.0</wro4j.version>
<jacoco.version>0.8.5</jacoco.version> <jacoco.version>0.7.6.201602180812</jacoco.version>
<jacoco.outputDir>${project.build.directory}</jacoco.outputDir>
<jacoco.utreportpath>${project.build.directory}/jacoco</jacoco.utreportpath>
<jacoco.utreportfile>${jacoco.utreportpath}/jacoco.exec</jacoco.utreportfile>
<jacoco.itreportpath>${project.build.directory}/jacoco</jacoco.itreportpath>
<jacoco.itreportfile>${jacoco.itreportpath}/jacoco-it.exec</jacoco.itreportfile>
<nohttp-checkstyle.version>0.0.4.RELEASE</nohttp-checkstyle.version> <nohttp-checkstyle.version>0.0.4.RELEASE</nohttp-checkstyle.version>
<spring-format.version>0.0.25</spring-format.version> <spring-format.version>0.0.25</spring-format.version>
</properties> </properties>
@ -152,46 +157,59 @@
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.jacoco</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>jacoco-maven-plugin</artifactId>
<executions> <version>${jacoco.version}</version>
<execution> <executions>
<!-- Spring Boot Actuator displays build-related information <execution>
if a META-INF/build-info.properties file is present --> <id>pre-unit-test</id>
<goals> <phase>process-test-classes</phase>
<goal>build-info</goal> <goals>
</goals> <goal>prepare-agent</goal>
<configuration> </goals>
<additionalProperties> <configuration>
<encoding.source>${project.build.sourceEncoding}</encoding.source> <propertyName>surefireArgLine</propertyName>
<encoding.reporting>${project.reporting.outputEncoding}</encoding.reporting> <destFile>${jacoco.utreportfile}</destFile>
<java.source>${maven.compiler.source}</java.source> <append>true</append>
<java.target>${maven.compiler.target}</java.target> </configuration>
</additionalProperties> </execution>
</configuration> <execution>
</execution> <id>post-unit-test</id>
</executions> <phase>test</phase>
</plugin> <goals>
<plugin> <goal>report</goal>
<groupId>org.jacoco</groupId> </goals>
<artifactId>jacoco-maven-plugin</artifactId> <configuration>
<version>${jacoco.version}</version> <outputDirectory>${jacoco.utreportpath}</outputDirectory>
<executions> <dataFile>${jacoco.utreportfile}</dataFile>
<execution> </configuration>
<goals> </execution>
<goal>prepare-agent</goal> <execution>
</goals> <id>pre-integration-test</id>
</execution> <phase>pre-integration-test</phase>
<execution> <goals>
<id>report</id> <goal>prepare-agent-integration</goal>
<phase>prepare-package</phase> </goals>
<goals> <configuration>
<goal>report</goal> <propertyName>failsafeArgLine</propertyName>
</goals> <destFile>${jacoco.itreportfile}</destFile>
</execution> <append>true</append>
</executions> </configuration>
</plugin> </execution>
<execution>
<id>post-integration-test</id>
<phase>post-integration-test</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<outputDirectory>${jacoco.itreportpath}</outputDirectory>
<dataFile>${jacoco.itreportfile}</dataFile>
</configuration>
</execution>
</executions>
</plugin>
<!-- Spring Boot Actuator displays build-related information if a git.properties <!-- Spring Boot Actuator displays build-related information if a git.properties
file is present at the classpath --> file is present at the classpath -->