Browse Source

changed spring native

master
winloong 2 years ago
parent
commit
6d01cc055c
  1. 30
      pom.xml

30
pom.xml

@ -6,7 +6,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.4.3</version>
<version>2.6.7</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.fs.camunda.bpm</groupId>
@ -62,7 +62,11 @@
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.1.1</version>
</dependency>
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-native</artifactId>
<version>0.11.5</version>
</dependency>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
@ -169,6 +173,15 @@
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.fs.camunda.bpm.example.ExampleApplication</mainClass>
<image>
<builder>paketobuildpacks/builder:tiny</builder>
<env>
<BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE>
</env>
<buildpacks>
<buildpack>gcr.io/paketo-buildpacks/java-native-image:7.1.0</buildpack>
</buildpacks>
</image>
</configuration>
<executions>
<execution>
@ -178,6 +191,19 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-aot-maven-plugin</artifactId>
<version>0.11.5</version>
<executions>
<execution>
<id>generate</id>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>

Loading…
Cancel
Save