Skip to content

Make use of JavaExecSpec.getJvmArguments() #34413

Open
@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

No one assigned

    Labels

    status: blockedAn issue that's blocked on an external project changetype: taskA general task

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions