graalvm-native-plugin | Gradle Plugin for building Java applications | Plugin library
kandi X-RAY | graalvm-native-plugin Summary
kandi X-RAY | graalvm-native-plugin Summary
Gradle Plugin for building Java applications as GraalVM native images
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of graalvm-native-plugin
graalvm-native-plugin Key Features
graalvm-native-plugin Examples and Code Snippets
plugins {
id 'com.formkiq.gradle.graalvm-native-plugin' version '1.1.0'
}
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.formkiq.gradle:graalvm-native-plugin:1.
nativeImage {
mainClassName = 'com.example.Application'
enableHttp = true
enableHttps = true
}
Community Discussions
Trending Discussions on graalvm-native-plugin
QUESTION
I am trying to create a sample application using spring boot and GraalVM Native Image, however as soon as I add the dependency for Springdoc the generated executable is no longer working due to the following:
...ANSWER
Answered 2020-Aug-31 at 09:25For the moment, there is not official spring gradle plugin, because the integration of spring applications with graalVM is still in experimental mode and might face a lot other issues.
The error you are having, is because your native configuration image is not complete.
You can use the spring-graalvm-native, which is supported by the Spring Team, and which works like a charm with springdoc-openapi:
The usage is all explained here:
For the class you are mentionning, you should have in the reflect-config.json:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install graalvm-native-plugin
Run the Gradle task graalvmNativeImage
The native image can be located at <buildDir>/graalvm
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page