Last active
March 13, 2022 19:30
-
-
Save susimsek/2d89fc3fe745d7e9d7badb2c4183d2b4 to your computer and use it in GitHub Desktop.
Spring Native pom.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<spring-native.version>0.11.3</spring-native.version> | |
<dependency> | |
<groupId>org.springframework.experimental</groupId> | |
<artifactId>spring-native</artifactId> | |
<version>${spring-native.version}</version> | |
</dependency> | |
<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> | |
<profile> | |
<id>native-image</id> | |
<dependencies> | |
<dependency> | |
<groupId>org.springdoc</groupId> | |
<artifactId>springdoc-openapi-native</artifactId> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
<configuration> | |
<excludes> | |
<exclude> | |
<groupId>org.projectlombok</groupId> | |
<artifactId>lombok</artifactId> | |
</exclude> | |
</excludes> | |
<image> | |
<builder>paketobuildpacks/builder:tiny</builder> | |
<name>${heroku.image.name}</name> | |
<publish>true</publish> | |
<pullPolicy>IF_NOT_PRESENT</pullPolicy> | |
<env> | |
<BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE> | |
<BP_BINARY_COMPRESSION_METHOD>upx</BP_BINARY_COMPRESSION_METHOD> | |
<BP_NATIVE_IMAGE_BUILD_ARGUMENTS> | |
-H:+ReportExceptionStackTraces --enable-https | |
--enable-http | |
--initialize-at-build-time=sun.instrument.InstrumentationImpl | |
--initialize-at-run-time=io.netty.handler.ssl.BouncyCastleAlpnSslUtils | |
</BP_NATIVE_IMAGE_BUILD_ARGUMENTS> | |
</env> | |
</image> | |
<docker> | |
<publishRegistry> | |
<username>${DOCKER_REGISTRY_USER}</username> | |
<password>${DOCKER_REGISTRY_PWD}</password> | |
</publishRegistry> | |
</docker> | |
</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> | |
<plugin> | |
<groupId>org.hibernate.orm.tooling</groupId> | |
<artifactId>hibernate-enhance-maven-plugin</artifactId> | |
<version>${hibernate.version}</version> | |
<executions> | |
<execution> | |
<id>enhance</id> | |
<goals> | |
<goal>enhance</goal> | |
</goals> | |
<configuration> | |
<failOnError>true</failOnError> | |
<enableLazyInitialization>true</enableLazyInitialization> | |
<enableDirtyTracking>true</enableDirtyTracking> | |
<enableAssociationManagement>true</enableAssociationManagement> | |
<enableExtendedEnhancement>false</enableExtendedEnhancement> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment