Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
3 changes: 2 additions & 1 deletion jme3-screenshot-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies {
implementation 'com.aventstack:extentreports:5.1.2'
implementation platform('org.junit:junit-bom:5.9.1')
implementation 'org.junit.jupiter:junit-jupiter'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

In Gradle 9, the junit-platform-launcher is required at runtime for executing JUnit 5 tests. Since jme3-screenshot-tests acts as a test framework for other modules (providing base classes in src/main), changing this to runtimeOnly ensures the launcher is transitively available to all consumers of this module. This avoids the need to manually add the launcher to every module's dependencies and ensures consistent test execution across the project.

    runtimeOnly 'org.junit.platform:junit-platform-launcher'

testRuntimeOnly project(':jme3-testdata')
}

Expand All @@ -35,4 +36,4 @@ test {
excludeTags 'integration'
}
}
}
}
Loading