kafka-junit
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.salesforce.kafka.test</groupId> <artifactId>kafka-junit</artifactId> <version>3.2.5</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright (c) 2017-2021, Salesforce.com, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --> <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.salesforce.kafka.test</groupId> <artifactId>kafka-junit</artifactId> <version>3.2.5</version> <!-- Submodules --> <modules> <module>kafka-junit-core</module> <module>kafka-junit4</module> <module>kafka-junit5</module> </modules> <packaging>pom</packaging> <name>kafka-junit</name> <description>This library wraps Kafka's embedded test cluster, allowing you to more easily create and run integration tests using JUnit against a "real" kafka server running within the context of your tests.</description> <inceptionYear>2017</inceptionYear> <url>https://github.com/salesforce/kafka-junit</url> <organization> <name>Salesforce</name> <url>http://www.salesforce.com</url> </organization> <licenses> <license> <name>BSD-3</name> <url>https://github.com/salesforce/kafka-junit/blob/master/LICENSE.txt</url> </license> </licenses> <developers> <developer> <name>Stephen Powis</name> <email>stephen.powis@gmail.com</email> <organization>Salesforce</organization> </developer> </developers> <scm> <connection>scm:git:git://github.com/salesforce/kafka-junit.git</connection> <developerConnection>scm:git:ssh://github.com:salesforce/kafka-junit.git</developerConnection> <url>https://github.com/salesforce/kafka-junit/tree/master</url> </scm> <!-- Require Maven 3.3.9 --> <prerequisites> <maven>3.3.9</maven> </prerequisites> <!-- defined properties --> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.source>1.8</maven.compiler.source> <!-- Define which kafka version --> <kafkaVersion>3.4.0</kafkaVersion> <kafkaScalaVersion>kafka_2.12</kafkaScalaVersion> <!-- Define which Curator Test version --> <curatorTestVersion>2.12.0</curatorTestVersion> <!-- For logging in tests --> <slf4jVersion>1.7.36</slf4jVersion> <!-- JUnit versions --> <junit4.version>4.13.2</junit4.version> <junit5.version>5.9.2</junit5.version> <junit5PlatformProvider.version>1.3.2</junit5PlatformProvider.version> <!-- test toggling --> <skipTests>false</skipTests> <skipCheckStyle>false</skipCheckStyle> <checkstyle.ruleset>script/checkstyle-ruleset.xml</checkstyle.ruleset> <!-- plugin versions --> <checkstyle.version>3.1.0</checkstyle.version> <javadoc.version>3.3.0</javadoc.version> <surefire.version>2.22.2</surefire.version> <!-- excluded tests based on specific kafka versions --> <!-- default to excluding 0.11.0.x tests --> <tests.excluded>0_11_0_x</tests.excluded> <tests.heapSize>5120M</tests.heapSize> </properties> <!-- Module Scoped Dependencies --> <dependencies> <!-- Kafka --> <dependency> <groupId>org.apache.kafka</groupId> <artifactId>${kafkaScalaVersion}</artifactId> <version>${kafkaVersion}</version> <exclusions> <!-- Don't bring in kafka's logging framework --> <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> </exclusion> <exclusion> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> </exclusion> </exclusions> <scope>provided</scope> </dependency> <!-- Kafka Client --> <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka-clients</artifactId> <version>${kafkaVersion}</version> <scope>provided</scope> </dependency> <!-- Apache Curator Test --> <dependency> <groupId>org.apache.curator</groupId> <artifactId>curator-test</artifactId> <version>${curatorTestVersion}</version> </dependency> <!-- Logging in tests --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>${slf4jVersion}</version> <scope>test</scope> </dependency> <!-- API, java.xml.bind module --> <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.3.1</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.0.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <!-- source and target is java 1.8 --> <source>1.8</source> <target>1.8</target> <testExcludes> <!-- by default exclude kafka 0.11.0.x specific tests --> <testExclude>**/kafka_${tests.excluded}/*.java</testExclude> </testExcludes> </configuration> </plugin> <!-- License Auditing --> <plugin> <groupId>com.mycila</groupId> <artifactId>license-maven-plugin</artifactId> <version>3.0</version> <configuration> <header>LICENSE.txt</header> <includes> <include>**/.java</include> </includes> </configuration> <executions> <execution> <phase>compile</phase> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> <!-- Enforce Checkstyles Validation --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>${checkstyle.version}</version> <executions> <execution> <id>checkstyle-validate</id> <phase>validate</phase><!-- when we need to run checkstyle::check --> <configuration> <configLocation>${checkstyle.ruleset}</configLocation> <includeTestSourceDirectory>true</includeTestSourceDirectory> <encoding>utf-8</encoding> <consoleOutput>true</consoleOutput> <violationSeverity>warning</violationSeverity> <failsOnError>true</failsOnError> <enableRSS>false</enableRSS> <linkXRef>false</linkXRef> <!-- By default we enable checkstyle validation --> <skip>${skipCheckStyle}</skip> </configuration> <goals> <!-- Generate site/html report --> <goal>checkstyle</goal> <!-- Enforce failing build on checkstyle failure --> <goal>check</goal> </goals> </execution> </executions> </plugin> <!-- Release plugin --> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>1.6.12</version> <extensions>true</extensions> <configuration> <serverId>ossrh</serverId> <nexusUrl>https://oss.sonatype.org/</nexusUrl> <autoReleaseAfterClose>true</autoReleaseAfterClose> </configuration> </plugin> </plugins> <pluginManagement> <plugins> <!-- Use a current version of checkstyle --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>${checkstyle.version}</version> <dependencies> <dependency> <groupId>com.puppycrawl.tools</groupId> <artifactId>checkstyle</artifactId> <version>8.29</version> </dependency> </dependencies> </plugin> </plugins> </pluginManagement> </build> <reporting> <plugins> <!-- Generates Public API Docs --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>${javadoc.version}</version> <configuration> <show>public</show> <source>8</source> </configuration> </plugin> <!-- Code Style Results --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>${checkstyle.version}</version> <configuration> <configLocation>${checkstyle.ruleset}</configLocation> </configuration> </plugin> </plugins> </reporting> <profiles> <profile> <id>release-kafka-junit</id> <build> <plugins> <!-- Build Sources Jar --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <!-- Build Javadoc Jar --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>${javadoc.version}</version> <executions> <execution> <id>build-javadocs</id> <goals> <goal>jar</goal> </goals> <configuration> <source>8</source> </configuration> </execution> </executions> </plugin> <!-- GPG Signing of Artifacts --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>1.6</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> <configuration> <keyname>KafkaJUnitReleaseKey</keyname> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> <!-- For deploying to maven central --> <distributionManagement> <!-- Snapshot repository --> <snapshotRepository> <id>ossrh</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> </snapshotRepository> </distributionManagement> </project>