Skip to content

Make use of JavaExecSpec.getJvmArguments() #34413

@wilkinsona

Description

@wilkinsona

Gradle 8.1 will add and jvmArguments property to JavaExecSpec. We should be able to use this new property instead of our current convention mapping:

run.getConventionMapping().map("jvmArgs", () -> {
if (project.hasProperty("applicationDefaultJvmArgs")) {
return project.property("applicationDefaultJvmArgs");
}
return Collections.emptyList();
});

Unless we wait until we've raised our Gradle baseline to 8.1, we'll have to check the version of Gradle that we're running against or perhaps use reflection to maintain compatibility with older versions of Gradle.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions