forked from helidon-io/helidon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4.x: Native image update (helidon-io#7711)
* Native image update - Java 21 - latest version - replace artifact id - remove initialize-at-build-time in SE - doc fix - Updates to graalvm github action - Upgrade jar plugin to honor main class attribute for modules - Add main class to modularized test - Add kotlin dependency to resolve modularized failure - Native packaging test fixed. - Fix archetypes to work with new jar plugin - Kafka connector native image updates --------- Co-authored-by: Daniel Kec <[email protected]>
- Loading branch information
1 parent
93cfc36
commit 8c56894
Showing
118 changed files
with
1,503 additions
and
1,106 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,22 +140,25 @@ jobs: | |
- name: Test archetypes | ||
run: etc/scripts/test-archetypes.sh | ||
packaging: | ||
timeout-minutes: 30 | ||
timeout-minutes: 60 | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-20.04, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK ${{ env.JAVA_VERSION }} | ||
uses: actions/[email protected] | ||
- uses: graalvm/setup-graalvm@v1 | ||
with: | ||
distribution: ${{ env.JAVA_DISTRO }} | ||
java-version: ${{ env.JAVA_VERSION }} | ||
java-version: 21 | ||
distribution: graalvm-community | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
native-image-job-reports: true | ||
cache: maven | ||
- name: Build Helidon | ||
run: etc/scripts/github-compile.sh | ||
- name: JAR packaging | ||
run: etc/scripts/test-packaging-jar.sh | ||
- name: JLink packaging | ||
run: etc/scripts/test-packaging-jlink.sh | ||
- name: Native-Image packaging | ||
run: etc/scripts/test-packaging-native.sh |
This file contains 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
5 changes: 1 addition & 4 deletions
5
archetypes/helidon/src/main/archetype/common/files/Dockerfile.native.mustache
This file contains 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
This file contains 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
17 changes: 17 additions & 0 deletions
17
...types/helidon/src/main/archetype/mp/common/files/src/main/java/__pkg__/Main.java.mustache
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
package {{package}}; | ||
|
||
/** | ||
* Main entry point of the application. | ||
* This class is registered as the main class in the jar manifest, as well as the main class of the module. | ||
*/ | ||
public class Main { | ||
/** | ||
* Main method. Starts CDI (and the application). | ||
* | ||
* @param args ignored | ||
*/ | ||
public static void main(String[] args) { | ||
io.helidon.Main.main(args); | ||
} | ||
} |
This file contains 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
18 changes: 0 additions & 18 deletions
18
.../resources/META-INF/native-image/io.helidon.common/helidon-common/native-image.properties
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
...META-INF/native-image/io.helidon.common/helidon-common-media-type/native-image.properties
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
...es/META-INF/native-image/io.helidon.common/helidon-common-media-type/resource-config.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"resources": [ | ||
{ | ||
"pattern": "META-INF/helidon/media-types.properties" | ||
}, | ||
{ | ||
"pattern": "io/helidon/common/media/type/default-media-types.properties" | ||
} | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
.../resources/META-INF/native-image/io.helidon.config/helidon-conifg-mp/resource-config.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"resources": [ | ||
{ | ||
"pattern": "mp-meta-config.yaml" | ||
}, | ||
{ | ||
"pattern": "mp-meta-config.properties" | ||
} | ||
] | ||
} |
This file contains 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
This file contains 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
17 changes: 0 additions & 17 deletions
17
...es/META-INF/native-image/io.helidon.config/helidon-config-yaml-mp/native-image.properties
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
...urces/META-INF/native-image/io.helidon.config/helidon-config-yaml/native-image.properties
This file was deleted.
Oops, something went wrong.
This file contains 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
41 changes: 0 additions & 41 deletions
41
.../META-INF/native-image/io.helidon.dbclient/helidon-dbclient-mongo/native-image.properties
This file was deleted.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.