Skip to content

Gradle plugin: bootStartScripts doesn't honor applicationDefaultJvmArgs #12631

@phxql

Description

@phxql

Hi,
I'm using Spring Boot 2.0.0.RELEASE, Gradle and the org.springframework.boot Gradle plugin. I also applied the application plugin in my build.gradle.

I've set applicationDefaultJvmArgs to some Xmx settings. bootRun seems to use this setting, but when I build a distribution with the bootDistZip, the starter scripts don't contain the Xmx values.

I can get them to do that by specifying

bootStartScripts {
    defaultJvmOpts = project.applicationDefaultJvmArgs
}

but it looks like a bug to me that bootRun uses the applicationDefaultJvmArgs, but bootDistZip doesn't. Am I missing something?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions