Skip to content

Commit 7d189ee

Browse files
CristianGMSpace Team
authored andcommitted
Make :core:descriptors.runtime:test cacheable
^KTI-2586
1 parent 5066743 commit 7d189ee

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

core/descriptors.runtime/build.gradle.kts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33
id("java-test-fixtures")
44
id("jps-compatible")
55
id("project-tests-convention")
6+
id("test-inputs-check")
67
}
78

89
project.configureJvmToolchain(JdkMajorVersion.JDK_1_8)
@@ -30,14 +31,17 @@ sourceSets {
3031
}
3132

3233
projectTests {
33-
testTask(jUnitMode = JUnitMode.JUnit4) {
34-
dependsOn(":dist")
35-
workingDir = rootDir
36-
}
34+
testData(project(":compiler").isolated, "testData/loadJava")
35+
testData(project(":compiler").isolated, "testData/loadJava8")
36+
withJvmStdlibAndReflect()
37+
withMockJdkAnnotationsJar()
38+
withMockJdkRuntime()
39+
withScriptRuntime()
40+
withTestJar()
41+
withAnnotations()
3742

43+
testTask(jUnitMode = JUnitMode.JUnit4)
3844
testGenerator("org.jetbrains.kotlin.generators.tests.GenerateRuntimeDescriptorTestsKt")
39-
40-
withJvmStdlibAndReflect()
4145
}
4246

4347
testsJar()

0 commit comments

Comments
 (0)