File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
libraries/tools/kotlinp/jvm Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
1
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2
- import org.jetbrains.kotlin.ideaExt.idea
3
2
4
3
description = " kotlinp-jvm"
5
4
6
5
plugins {
7
6
kotlin(" jvm" )
8
7
id(" jps-compatible" )
9
8
id(" project-tests-convention" )
9
+ id(" test-inputs-check" )
10
10
}
11
11
12
12
val shadows by configurations.creating
@@ -45,13 +45,21 @@ sourceSets {
45
45
}
46
46
47
47
projectTests {
48
- testTask(jUnitMode = JUnitMode .JUnit5 ) {
49
- workingDir = rootDir
50
- }
48
+ testData(isolated, " testData" )
49
+ testData(project(" :compiler" ).isolated, " testData/loadJava" )
50
+ testData(project(" :compiler" ).isolated, " testData/serialization" )
51
+
52
+ testTask(jUnitMode = JUnitMode .JUnit5 )
51
53
52
54
testGenerator(" org.jetbrains.kotlin.kotlinp.jvm.test.GenerateKotlinpTestsKt" , doNotSetFixturesSourceSetDependency = true )
53
55
54
56
withJvmStdlibAndReflect()
57
+ withScriptRuntime()
58
+ withMockJdkAnnotationsJar()
59
+ withTestJar()
60
+ withMockJdkRuntime()
61
+ withAnnotations()
62
+ withScriptingPlugin()
55
63
}
56
64
57
65
val shadowJar by task<ShadowJar > {
@@ -69,10 +77,6 @@ tasks {
69
77
" assemble" {
70
78
dependsOn(shadowJar)
71
79
}
72
- " test" {
73
- // These dependencies are needed because ForTestCompileRuntime loads jars from dist
74
- dependsOn(rootProject.tasks.named(" dist" ))
75
- }
76
80
}
77
81
78
82
testsJar()
You can’t perform that action at this time.
0 commit comments