Files
java-testing-lab/assertj/pom.xml
T

70 lines
2.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<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.ankurm.testing</groupId>
<artifactId>assertj-lab</artifactId>
<version>1.0.0</version>
<properties>
<maven.compiler.release>25</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<junit.version>6.1.3</junit.version>
<assertj.version>3.27.7</assertj.version>
<!-- last release of the generator plugin (2019); see output/12-generator-javax-annotation.txt -->
<assertj.generator.plugin.version>2.2.0</assertj.generator.plugin.version>
</properties>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>${assertj.version}</version>
<scope>test</scope>
</dependency>
<!-- The generator still stamps @javax.annotation.Generated on its output, and that package left
the JDK in Java 11. Without this the generated sources do not compile on JDK 25. -->
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.6</version>
</plugin>
<!-- Generates OrderAssert, CustomerAssert ... for every class in lab.assertj.domain into
target/generated-test-sources, before the tests compile. -->
<plugin>
<groupId>org.assertj</groupId>
<artifactId>assertj-assertions-generator-maven-plugin</artifactId>
<version>${assertj.generator.plugin.version}</version>
<executions>
<execution>
<goals><goal>generate-assertions</goal></goals>
</execution>
</executions>
<configuration>
<packages>
<param>lab.assertj.domain</param>
</packages>
<entryPointClassPackage>lab.assertj.generated</entryPointClassPackage>
<generateSoftAssertions>true</generateSoftAssertions>
</configuration>
</plugin>
</plugins>
</build>
</project>