[JAVA-28949] Upgrade spring-native to spring-boot 3 (#16229)

This commit is contained in:
sam-gardner 2024-03-25 22:12:47 +00:00 committed by GitHub
parent 4435123918
commit 5fbc3a252b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,75 +10,40 @@
<parent> <parent>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>parent-boot-2</artifactId> <artifactId>parent-boot-3</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<relativePath>../parent-boot-2</relativePath> <relativePath>../parent-boot-3</relativePath>
</parent> </parent>
<repositories> <repositories>
<repository> <repository>
<id>spring-release</id> <id>spring-milestone</id>
<name>Spring release</name> <name>Spring Milestone</name>
<url>https://repo.spring.io/release</url> <url>https://repo.spring.io/milestone</url>
</repository>
<repository>
<id>spring-snapshot</id>
<name>Spring Snapshot</name>
<url>https://repo.spring.io/snapshot</url>
</repository> </repository>
</repositories> </repositories>
<pluginRepositories> <pluginRepositories>
<pluginRepository> <pluginRepository>
<id>spring-release</id> <id>spring-plugins-snapshot</id>
<name>Spring release</name> <name>Spring Plugins Snapshot</name>
<url>https://repo.spring.io/release</url> <url>https://repo.spring.io/plugins-snapshot</url>
</pluginRepository> </pluginRepository>
</pluginRepositories> </pluginRepositories>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>spring-boot-starter</artifactId>
<version>${spring-boot.version}</version> <version>${spring-boot.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-native</artifactId>
<version>${spring-native.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-aot</artifactId>
<version>${spring-native.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</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>
<profiles> <profiles>
<profile> <profile>
<id>native</id> <id>native</id>
@ -92,28 +57,21 @@
<execution> <execution>
<id>build-native</id> <id>build-native</id>
<goals> <goals>
<goal>build</goal> <goal>compile-no-fork</goal>
</goals> </goals>
<phase>package</phase> <phase>package</phase>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<classifier>exec</classifier>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
</profile> </profile>
</profiles> </profiles>
<properties> <properties>
<spring-boot.version>2.7.1</spring-boot.version> <spring-boot.version>3.2.0</spring-boot.version>
<spring-native.version>0.12.1</spring-native.version> <java.version>17</java.version>
<native-maven-plugin.version>0.9.17</native-maven-plugin.version> <native-maven-plugin.version>0.10.1</native-maven-plugin.version>
</properties> </properties>
</project> </project>