One more attempt to ignore obsolete code

This commit is contained in:
Liam Newman
2021-04-12 14:00:18 -07:00
parent 2f9ff32176
commit 941573af49
2 changed files with 16 additions and 12 deletions

View File

@@ -1,3 +1,3 @@
ignore:
- "**/extras/okhtp3/ObsoleteUrlFactory.*"
- "**ObsoleteUrlFactory**"

26
pom.xml
View File

@@ -103,6 +103,20 @@
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.6</version>
<configuration>
<excludes>
<!-- Code implemented externally -->
<exclude>**/extras/okhtp3/ObsoleteUrlFactory.*</exclude>
<exclude>**/extras/okhtp3/ObsoleteUrlFactory*</exclude>
<!-- Sample only -->
<exclude>**/example/**</exclude>
<!-- Deprecated -->
<exclude>org/kohsuke/github/extras/OkHttpConnector.*</exclude>
<exclude>org/kohsuke/github/extras/OkHttp3Connector.*</exclude>
<exclude>org/kohsuke/github/EnforcementLevel.*</exclude>
<exclude>org/kohsuke/github/GHPerson$1.*</exclude>
</excludes>
</configuration>
<executions>
<execution>
<goals>
@@ -110,17 +124,6 @@
</goals>
<configuration>
<propertyName>jacoco.surefire.argLine</propertyName>
<excludes>
<!-- Code implemented externally -->
<exclude>org/kohsuke/github/extras/okhtp3/ObsoleteUrlFactory.*</exclude>
<exclude>org/kohsuke/github/extras/okhtp3/ObsoleteUrlFactory$*.*</exclude>
<!-- Sample only -->
<exclude>org/kohsuke/github/example/**</exclude>
<!-- Deprecated -->
<exclude>org/kohsuke/github/extras/OkHttp3Connector.*</exclude>
<exclude>org/kohsuke/github/EnforcementLevel.*</exclude>
<exclude>org/kohsuke/github/GHPerson$1.*</exclude>
</excludes>
</configuration>
</execution>
<!-- attached to Maven test phase -->
@@ -171,6 +174,7 @@
<!-- Deprecated -->
<exclude>org.kohsuke.github.extras.OkHttpConnector</exclude>
<exclude>org.kohsuke.github.extras.OkHttp3Connector</exclude>
<exclude>org.kohsuke.github.EnforcementLevel</exclude>
<exclude>org.kohsuke.github.GHPerson.1</exclude>