2021-09-23 05:07:26 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
2021-11-09 05:57:03 -05:00
|
|
|
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>
|
|
|
|
<artifactId>spring-project</artifactId>
|
|
|
|
<groupId>com.baeldung</groupId>
|
|
|
|
<version>0.1-SNAPSHOT</version>
|
2021-09-23 05:07:26 -04:00
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
2022-07-30 08:26:16 -04:00
|
|
|
<version>2.6.9</version>
|
|
|
|
<relativePath/>
|
2021-09-23 05:07:26 -04:00
|
|
|
</parent>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-data-r2dbc</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-webflux</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.experimental</groupId>
|
|
|
|
<artifactId>spring-native</artifactId>
|
|
|
|
<version>${spring-native.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2022-07-30 08:26:16 -04:00
|
|
|
<groupId>com.github.jasync-sql</groupId>
|
|
|
|
<artifactId>jasync-r2dbc-mysql</artifactId>
|
|
|
|
<version>2.0.8</version>
|
2021-09-23 05:07:26 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.projectreactor</groupId>
|
|
|
|
<artifactId>reactor-test</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2022-07-30 08:26:16 -04:00
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.testcontainers</groupId>
|
|
|
|
<artifactId>testcontainers</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.testcontainers</groupId>
|
|
|
|
<artifactId>r2dbc</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.testcontainers</groupId>
|
|
|
|
<artifactId>mysql</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.testcontainers</groupId>
|
|
|
|
<artifactId>junit-jupiter</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
2021-09-23 05:07:26 -04:00
|
|
|
</dependencies>
|
|
|
|
|
2022-07-30 08:26:16 -04:00
|
|
|
<dependencyManagement>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.testcontainers</groupId>
|
|
|
|
<artifactId>testcontainers-bom</artifactId>
|
|
|
|
<version>1.17.2</version>
|
|
|
|
<type>pom</type>
|
|
|
|
<scope>import</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</dependencyManagement>
|
|
|
|
|
2021-09-23 05:07:26 -04:00
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
2022-07-30 08:26:16 -04:00
|
|
|
<classifier>exec</classifier>
|
|
|
|
<layers>
|
|
|
|
<enabled>true</enabled>
|
|
|
|
</layers>
|
2021-09-23 05:07:26 -04:00
|
|
|
<image>
|
|
|
|
<builder>paketobuildpacks/builder:tiny</builder>
|
|
|
|
<env>
|
2022-07-30 08:26:16 -04:00
|
|
|
<BP_NATIVE_IMAGE>false</BP_NATIVE_IMAGE>
|
|
|
|
<BPL_JFR_ENABLED>true</BPL_JFR_ENABLED>
|
2021-09-23 05:07:26 -04:00
|
|
|
</env>
|
|
|
|
</image>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
2022-07-30 08:26:16 -04:00
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<version>${surefire-plugin.version}</version>
|
|
|
|
<configuration>
|
|
|
|
<includes>
|
|
|
|
<include>**/*IT</include>
|
|
|
|
</includes>
|
|
|
|
</configuration>
|
2021-09-23 05:07:26 -04:00
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<repositories>
|
|
|
|
<repository>
|
2022-07-30 08:26:16 -04:00
|
|
|
<id>spring-release</id>
|
|
|
|
<name>Spring release</name>
|
2021-09-23 05:07:26 -04:00
|
|
|
<url>https://repo.spring.io/release</url>
|
2021-12-04 00:03:19 -05:00
|
|
|
</repository>
|
2021-09-23 05:07:26 -04:00
|
|
|
</repositories>
|
|
|
|
<pluginRepositories>
|
|
|
|
<pluginRepository>
|
2022-07-30 08:26:16 -04:00
|
|
|
<id>spring-release</id>
|
|
|
|
<name>Spring release</name>
|
2021-09-23 05:07:26 -04:00
|
|
|
<url>https://repo.spring.io/release</url>
|
2021-12-04 00:03:19 -05:00
|
|
|
</pluginRepository>
|
2021-09-23 05:07:26 -04:00
|
|
|
</pluginRepositories>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>native</id>
|
2022-07-30 08:26:16 -04:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.junit.platform</groupId>
|
|
|
|
<artifactId>junit-platform-launcher</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<layers>
|
|
|
|
<enabled>true</enabled>
|
|
|
|
</layers>
|
|
|
|
<image>
|
|
|
|
<builder>paketobuildpacks/builder:tiny</builder>
|
|
|
|
<env>
|
|
|
|
<BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE>
|
|
|
|
<BPL_JFR_ENABLED>true</BPL_JFR_ENABLED>
|
|
|
|
</env>
|
|
|
|
</image>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.springframework.experimental</groupId>
|
|
|
|
<artifactId>spring-aot-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>test-generate</id>
|
|
|
|
<goals>
|
|
|
|
<goal>test-generate</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>generate</id>
|
|
|
|
<goals>
|
|
|
|
<goal>generate</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>local-native</id>
|
2021-09-23 05:07:26 -04:00
|
|
|
<properties>
|
|
|
|
<repackage.classifier>exec</repackage.classifier>
|
2022-07-30 08:26:16 -04:00
|
|
|
<native-buildtools.version>0.9.11</native-buildtools.version>
|
2021-09-23 05:07:26 -04:00
|
|
|
</properties>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
2022-07-30 08:26:16 -04:00
|
|
|
<groupId>org.junit.platform</groupId>
|
|
|
|
<artifactId>junit-platform-launcher</artifactId>
|
|
|
|
<scope>test</scope>
|
2021-09-23 05:07:26 -04:00
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
2022-07-30 08:26:16 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.springframework.experimental</groupId>
|
|
|
|
<artifactId>spring-aot-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>test-generate</id>
|
|
|
|
<goals>
|
|
|
|
<goal>test-generate</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>generate</id>
|
|
|
|
<goals>
|
|
|
|
<goal>generate</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2021-09-23 05:07:26 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.graalvm.buildtools</groupId>
|
|
|
|
<artifactId>native-maven-plugin</artifactId>
|
|
|
|
<version>${native-buildtools.version}</version>
|
2022-07-30 08:26:16 -04:00
|
|
|
<extensions>true</extensions>
|
2021-09-23 05:07:26 -04:00
|
|
|
<configuration>
|
|
|
|
<buildArgs combine.children="append">
|
|
|
|
<buildArgs>-H:+AllowVMInspection</buildArgs>
|
|
|
|
</buildArgs>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2022-07-30 08:26:16 -04:00
|
|
|
<id>build-native</id>
|
2021-09-23 05:07:26 -04:00
|
|
|
<goals>
|
2022-07-30 08:26:16 -04:00
|
|
|
<goal>build</goal>
|
2021-09-23 05:07:26 -04:00
|
|
|
</goals>
|
2022-07-30 08:26:16 -04:00
|
|
|
<phase>package</phase>
|
2021-09-23 05:07:26 -04:00
|
|
|
</execution>
|
|
|
|
<execution>
|
2022-07-30 08:26:16 -04:00
|
|
|
<id>test-native</id>
|
2021-09-23 05:07:26 -04:00
|
|
|
<goals>
|
2022-07-30 08:26:16 -04:00
|
|
|
<goal>test</goal>
|
2021-09-23 05:07:26 -04:00
|
|
|
</goals>
|
2022-07-30 08:26:16 -04:00
|
|
|
<phase>test</phase>
|
2021-09-23 05:07:26 -04:00
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
2022-07-30 08:26:16 -04:00
|
|
|
<version>3.0.0-M6</version>
|
2021-09-23 05:07:26 -04:00
|
|
|
<configuration>
|
2021-11-09 05:57:03 -05:00
|
|
|
<argLine>-DspringAot=true
|
|
|
|
-agentlib:native-image-agent=access-filter-file=src/test/resources/access-filter.json,config-merge-dir=target/classes/META-INF/native-image</argLine>
|
2021-09-23 05:07:26 -04:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
2021-11-09 05:57:03 -05:00
|
|
|
|
|
|
|
<properties>
|
|
|
|
<java.version>11</java.version>
|
2022-07-30 08:26:16 -04:00
|
|
|
<spring-native.version>0.12.1</spring-native.version>
|
|
|
|
<surefire-plugin.version>3.0.0-M6</surefire-plugin.version>
|
2021-11-09 05:57:03 -05:00
|
|
|
</properties>
|
|
|
|
|
2022-07-30 08:26:16 -04:00
|
|
|
</project>
|