spring-graalvm-native-plugin | building Spring Boot applications as GraalVM | Plugin library
kandi X-RAY | spring-graalvm-native-plugin Summary
kandi X-RAY | spring-graalvm-native-plugin Summary
Supports for building Spring Boot applications as GraalVM native images.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Perform the actual download
- Decompress the given input stream
- Download the given url to the output directory
- Returns command line arguments
- Apply the native plugin
- Gets the task dependency
- Sets the Java version to be downloaded
- Sets whether or not yaml support should be removed
- Sets whether or not the JVM supports XML support
- Sets whether or disabled configurations should be removed
- Set whether SpEL support should be removed from Spring Boot
- Set whether JMX support should be removed from Spring Boot
- Sets whether or not the analysis call tree should be printed
- Sets the maximum heap size allowed
- Set the fully qualified class name
- Set the properties that should be initialized at once
- Sets whether or not the engine should be removed
- List of URL protocols
- Enables or disables HTTPS support
- Enables or disables http support
- Enables or disables all security services
- Sets the file path to dump the configuration
- Sets whether Graal VM should be downloaded
- Sets extra arguments
spring-graalvm-native-plugin Key Features
spring-graalvm-native-plugin Examples and Code Snippets
plugins {
id 'com.github.ayltai.spring-graalvm-native-plugin' version '1.4.10'
}
buildscript {
repositories {
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'gradle.plug
nativeImage {
mainClassName = 'com.example.springboot.Application'
reportExceptionStackTraces = true
removeUnusedAutoConfig = true
removeYamlSupport = true
maxHeapSize = '6G'
}
@SpringBootApplication(proxyBeanMethods = false)
public class TomcatApplication {
public static void main(final String[] args) {
SpringApplication.run(TomcatApplication.class, args);
}
}
Community Discussions
Trending Discussions on spring-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 spring-graalvm-native-plugin
Run the Gradle task buildNativeImage
The native image can be located at <buildDir>/native
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