Skip to content

Share test JVM argument configuration across all Gradle Test tasks.#477

Open
aosen-xiong wants to merge 1 commit into
masterfrom
test-task-jdk9-exports
Open

Share test JVM argument configuration across all Gradle Test tasks.#477
aosen-xiong wants to merge 1 commit into
masterfrom
test-task-jdk9-exports

Conversation

@aosen-xiong

Copy link
Copy Markdown

The aggregate test task already configured Java 8 bootclasspath args and JDK 9+ module export/open args, but generated per-class test tasks like OsTrustedTest only had the Java 8 path.

This change moves that JVM-args selection into a shared helper and applies it through tasks.withType(Test), so both ./gradlew test and generated per-class tasks use the same Java version handling.

It also removes the stale forkEvery(1) workaround now that the underlying issue has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant