Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Commit fa27d06

Browse files
committed
Test configuration-cache compatibility
1 parent a0fdbb0 commit fa27d06

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

test/init-scripts/src/test/groovy/com/gradle/gradlebuildaction/TestDependencyGraph.groovy

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ class TestDependencyGraph extends BaseInitScriptTest {
88
static final List<TestGradleVersion> NO_DEPENDENCY_GRAPH_VERSIONS = [GRADLE_3_X, GRADLE_4_X]
99
static final List<TestGradleVersion> DEPENDENCY_GRAPH_VERSIONS = ALL_VERSIONS - NO_DEPENDENCY_GRAPH_VERSIONS
1010

11-
1211
def "does not produce dependency graph when not enabled"() {
1312
assumeTrue testGradleVersion.compatibleWithCurrentJvm
1413

@@ -35,6 +34,20 @@ class TestDependencyGraph extends BaseInitScriptTest {
3534
testGradleVersion << DEPENDENCY_GRAPH_VERSIONS
3635
}
3736

37+
// Dependency-graph plugin doesn't support config-cache for 8.0 of Gradle
38+
def "produces dependency graph with configuration-cache on latest Gradle"() {
39+
assumeTrue testGradleVersion.compatibleWithCurrentJvm
40+
41+
when:
42+
run(['help'], initScript, testGradleVersion.gradleVersion, [], envVars)
43+
44+
then:
45+
assert reportFile.exists()
46+
47+
where:
48+
testGradleVersion << [GRADLE_8_X]
49+
}
50+
3851
def "warns and produces no dependency graph when enabled for older Gradle versions"() {
3952
assumeTrue testGradleVersion.compatibleWithCurrentJvm
4053

0 commit comments

Comments
 (0)