Skip to content

Commit

Permalink
Update Spring Boot to 2.4.0 (#182)
Browse files Browse the repository at this point in the history
* Bump spring-graalvm-native from 0.7.1 to 0.8.0

Bumps [spring-graalvm-native](https://github.com/spring-projects-experimental/spring-graalvm-native) from 0.7.1 to 0.8.0.
- [Release notes](https://github.com/spring-projects-experimental/spring-graalvm-native/releases)
- [Commits](spring-attic/spring-native@0.7.1...0.8.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jan-Otto Kröpke <joe@adorsys.de>
  • Loading branch information
dependabot[bot] and jkroepke authored Nov 23, 2020
1 parent cdb98f3 commit 67972d4
Show file tree
Hide file tree
Showing 19 changed files with 83 additions and 6,328 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
- name: Setup graalvm
uses: DeLaGuardo/setup-graalvm@8bbfe44ef9c6f5c07e5af036a1bffd561c037d18
with:
graalvm-version: '20.1.0.java8'
graalvm-version: '20.3.0.java8'

- uses: actions/cache@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:
- name: Setup graalvm
uses: DeLaGuardo/setup-graalvm@8bbfe44ef9c6f5c07e5af036a1bffd561c037d18
with:
graalvm-version: '20.1.0.java8'
graalvm-version: '20.3.0.java8'

- uses: actions/cache@v2
with:
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ dependency-reduced-pom.xml
tmp/
release.properties

src/main/resources/META-INF/native-image/proxy-config.json
src/main/resources/META-INF/native-image/reflect-config.json

/native-image-config*/
/providers/

Expand Down
85 changes: 31 additions & 54 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@

<properties>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<keycloak.version>11.0.3</keycloak.version>
Expand Down Expand Up @@ -90,14 +91,14 @@

<!-- graalvm -->
<native-image-plugin.version>20.3.0</native-image-plugin.version>
<spring.profiles.include />
<spring.profiles.active />
<start-class>de.adorsys.keycloak.config.KeycloakConfigApplication</start-class>
</properties>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.5.RELEASE</version>
<version>2.4.0</version>
</parent>

<!-- Intellij friendly POM -->
Expand Down Expand Up @@ -244,17 +245,6 @@

<build>
<finalName>${project.artifactId}</finalName>

<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>META-INF/native-image/*.*.*/**/*</exclude>
</excludes>
<filtering>true</filtering>
</resource>
</resources>

<pluginManagement>
<plugins>
<plugin>
Expand Down Expand Up @@ -333,6 +323,13 @@
</pluginManagement>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<propertiesEncoding>${project.build.sourceEncoding}</propertiesEncoding>
</configuration>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
Expand Down Expand Up @@ -536,54 +533,46 @@
<id>native</id>
<properties>
<skipTests>true</skipTests>
<spring.profiles.include>native</spring.profiles.include>
<spring.profiles.active>native</spring.profiles.active>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-graalvm-native</artifactId>
<version>0.7.1</version>
<version>0.8.3</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-indexer</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-milestone</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/src/main/resources/META-INF/native-image/
</outputDirectory>
<resources>
<resource>
<directory>
${basedir}/src/main/resources/META-INF/native-image/${keycloak.version}/
</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.graalvm.nativeimage</groupId>
<artifactId>native-image-maven-plugin</artifactId>
<version>${native-image-plugin.version}</version>
<configuration>
<imageName>keycloak-config-cli-native</imageName>
<buildArgs>--no-fallback --no-server
<mainClass>${start-class}</mainClass>
<buildArgs>--enable-all-security-services
--enable-http --enable-https
--initialize-at-run-time=org.hibernate.validator.internal.engine.messageinterpolation.ElTermResolver
-H:EnableURLProtocols=http
-H:+ReportExceptionStackTraces
-Dspring.native.dump-config=feature-reflect-config.json
-Dspring.native.verify=true
Expand All @@ -593,6 +582,8 @@
-Dspring.native.remove-spel-support=true
-Dspring.native.remove-yaml-support=false
-Dspring.native.remove-xml-support=false
-Dspring.spel.ignore=true
-Dspring.xml.ignore=true
</buildArgs>
</configuration>
<executions>
Expand All @@ -610,20 +601,6 @@
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-milestone</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
</pluginRepository>
</pluginRepositories>
</profile>
<profile>
<id>coverage</id>
Expand Down
Loading

0 comments on commit 67972d4

Please sign in to comment.