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>
|
|
|
|
<version>2.5.4</version>
|
2021-11-09 05:57:03 -05:00
|
|
|
<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>
|
|
|
|
<groupId>io.r2dbc</groupId>
|
|
|
|
<artifactId>r2dbc-postgresql</artifactId>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.postgresql</groupId>
|
|
|
|
<artifactId>postgresql</artifactId>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
</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>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<classifier>${repackage.classifier}</classifier>
|
|
|
|
<image>
|
|
|
|
<builder>paketobuildpacks/builder:tiny</builder>
|
|
|
|
<env>
|
|
|
|
<BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE>
|
|
|
|
</env>
|
|
|
|
</image>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.springframework.experimental</groupId>
|
|
|
|
<artifactId>spring-aot-maven-plugin</artifactId>
|
|
|
|
<version>${spring-native.version}</version>
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<repositories>
|
|
|
|
<repository>
|
|
|
|
<id>spring-releases</id>
|
|
|
|
<name>Spring Releases</name>
|
|
|
|
<url>https://repo.spring.io/release</url>
|
|
|
|
<snapshots>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</snapshots>
|
|
|
|
</repository>
|
|
|
|
</repositories>
|
|
|
|
<pluginRepositories>
|
|
|
|
<pluginRepository>
|
|
|
|
<id>spring-releases</id>
|
|
|
|
<name>Spring Releases</name>
|
|
|
|
<url>https://repo.spring.io/release</url>
|
|
|
|
<snapshots>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</snapshots>
|
|
|
|
</pluginRepository>
|
|
|
|
</pluginRepositories>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>native</id>
|
|
|
|
<properties>
|
|
|
|
<repackage.classifier>exec</repackage.classifier>
|
|
|
|
<native-buildtools.version>0.9.3</native-buildtools.version>
|
|
|
|
</properties>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.graalvm.buildtools</groupId>
|
|
|
|
<artifactId>junit-platform-native</artifactId>
|
|
|
|
<version>${native-buildtools.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.graalvm.buildtools</groupId>
|
|
|
|
<artifactId>native-maven-plugin</artifactId>
|
|
|
|
<version>${native-buildtools.version}</version>
|
|
|
|
<configuration>
|
|
|
|
<buildArgs combine.children="append">
|
|
|
|
<buildArgs>-H:+AllowVMInspection</buildArgs>
|
|
|
|
</buildArgs>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>test-native</id>
|
|
|
|
<phase>test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>test</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>build-native</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>build</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<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>
|
|
|
|
<repackage.classifier />
|
|
|
|
<spring-native.version>0.10.3</spring-native.version>
|
|
|
|
</properties>
|
|
|
|
|
2021-09-23 05:07:26 -04:00
|
|
|
</project>
|