Skip to content

Commit

Permalink
Programmatically set current Gradle version in integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
baron1405 committed Dec 4, 2024
1 parent fb35888 commit ce382b4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.gradle.testkit.runner.BuildTask;
import org.gradle.testkit.runner.GradleRunner;
import org.gradle.testkit.runner.TaskOutcome;
import org.gradle.util.GradleVersion;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
Expand All @@ -39,7 +40,7 @@ public class PluginIntegTest {
public static Stream<Arguments> gradleVersionProvider() {
return Stream.of(
arguments("8.2"),
arguments("8.10.2")
arguments(GradleVersion.current().getVersion())
);
}

Expand Down

0 comments on commit ce382b4

Please sign in to comment.