mirror of https://github.com/qos-ch/slf4j
Add animal sniffer plugin
Due to some signatures in slf4j-api has some ignores because signatures cannot be determined and will error otherwise. This is isolated to interfaces and code that shouldn't otherwise be present in usage per various javadocs around these.
This commit is contained in:
parent
d6e34cd57c
commit
5b52c710e9
34
pom.xml
34
pom.xml
|
|
@ -44,6 +44,9 @@
|
|||
<junit.version>4.10</junit.version>
|
||||
<maven-site-plugin.version>3.3</maven-site-plugin.version>
|
||||
<javadoc.plugin.version>2.10.2</javadoc.plugin.version>
|
||||
|
||||
<signature.artifact>java15</signature.artifact>
|
||||
<signature.version>1.0</signature.version>
|
||||
</properties>
|
||||
|
||||
<developers>
|
||||
|
|
@ -128,7 +131,38 @@
|
|||
</resource>
|
||||
</resources>
|
||||
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>animal-sniffer-maven-plugin</artifactId>
|
||||
<version>1.14</version>
|
||||
<configuration>
|
||||
<signature>
|
||||
<groupId>org.codehaus.mojo.signature</groupId>
|
||||
<artifactId>${signature.artifact}</artifactId>
|
||||
<version>${signature.version}</version>
|
||||
</signature>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>animal-sniffer-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>test-sniffer</id>
|
||||
<phase>test</phase>
|
||||
<goals>
|
||||
<goal>check</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
|
|
|
|||
|
|
@ -20,6 +20,22 @@
|
|||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>animal-sniffer-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<!-- Signatures cannot be determined and will error unless excluded. This is isolated to
|
||||
interfaces or code otherwise already marked as not being present in normal usage
|
||||
where the concrete code does not exist in same modules as a result. -->
|
||||
<ignores>
|
||||
<ignore>org.slf4j.impl.StaticMDCBinder</ignore>
|
||||
<ignore>org.slf4j.spi.MDCAdapter</ignore>
|
||||
<ignore>org.slf4j.impl.StaticLoggerBinder</ignore>
|
||||
<ignore>org.slf4j.impl.StaticMarkerBinder</ignore>
|
||||
<ignore>org.slf4j.IMarkerFactory</ignore>
|
||||
</ignores>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
|
|
|
|||
Loading…
Reference in New Issue