All Downloads are FREE. Search and download functionalities are using the official Maven repository.

forbiddenapis-3.8.src.test.antunit.pom-InclExclSuppress.xml Maven / Gradle / Ivy

Go to download

Allows to parse Java byte code to find invocations of method/class/field signatures and fail build (Apache Ant, Apache Maven, Gradle, or CLI)

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<!--
 * (C) Copyright Uwe Schindler (Generics Policeman) and others.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>de.thetaphi</groupId>
  <artifactId>forbiddenapi-test2</artifactId>
  <version>0.0-SNAPSHOT</version>
  <name>Dummy Project to test annotations and includes/excludes</name>
  
  <build>
    <plugins>
      <plugin>
        <groupId>${groupId}</groupId>
        <artifactId>${artifactId}</artifactId>
        <version>${version}</version>
        <configuration>
          <classesDirectory>.</classesDirectory>
          <failOnUnresolvableSignatures>true</failOnUnresolvableSignatures>
          <bundledSignatures>
            <bundledSignature>jdk-system-out</bundledSignature>
          </bundledSignatures>
          <signatures><![CDATA[
            java.lang.Deprecated @ Deprecated annotation
          ]]></signatures>
          <includes>
            <include>Java8Annotations*.class</include>
          </includes>
          <excludes>
            <!-- excludes all inner classes, so only Java8Annotations.class stays alive: -->
            <exclude>Java8Annotations$*.class</exclude>
          </excludes>
          <suppressAnnotations>
            <!-- this should suppress the whole tested class, so above signatures have no effect -->
            <suppressAnnotation>Java8Annotations$*</suppressAnnotation>
          </suppressAnnotations>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

</project>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy