jackson-jr-record-test
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.fasterxml.jackson.jr</groupId> <artifactId>jackson-jr-record-test</artifactId> <version>2.19.1</version> </dependency>
<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> <parent> <groupId>com.fasterxml.jackson.jr</groupId> <artifactId>jackson-jr-parent</artifactId> <version>2.19.1</version> </parent> <artifactId>jackson-jr-record-test</artifactId> <name>Jackson-jr: Record test(s)</name> <packaging>jar</packaging> <description>Test Module for testing JDK 17 Record support</description> <url>https://github.com/FasterXML/jackson-jr</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>com.fasterxml.jackson.jr</groupId> <artifactId>jackson-jr-objects</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${maven.compiler.source}</source> <target>${maven.compiler.target}</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <executions> <execution> <goals> <goal>test</goal> </goals> </execution> </executions> <configuration> <includes> <include>**/*Test.java</include> <include>**/Test*.java</include> </includes> </configuration> </plugin> <!-- 13-Jun-2024, tatu: Should NOT publish jar --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> </plugins> </build> <!-- 13-Jun-2024, tatu: To support JDK 17 tests only when built using 17 or later, need to define Profile... copied from jackson-databind --> <profiles> <profile> <id>java17</id> <activation> <jdk>[17,)</jdk> </activation> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>add-test-source</id> <phase>generate-test-sources</phase> <goals> <goal>add-test-source</goal> </goals> <configuration> <sources> <source>src/test-jdk17/java</source> </sources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <inherited>true</inherited> <configuration> <!-- Enable Java 17 for all sources so that Intellij picks the right language level --> <source>17</source> <release>17</release> <compilerArgs> <arg>-parameters</arg> </compilerArgs> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED</argLine> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project>