| import org.jetbrains.kotlin.ideaExt.idea |
| |
| plugins { |
| kotlin("jvm") |
| id("jps-compatible") |
| } |
| |
| dependencies { |
| testApi(project(":plugins:plugin-sandbox")) |
| testApi(project(":compiler:incremental-compilation-impl")) |
| testApi(projectTests(":compiler:incremental-compilation-impl")) |
| testImplementation(libs.junit.jupiter.api) |
| |
| testCompileOnly(intellijCore()) |
| |
| testRuntimeOnly(project(":core:descriptors.runtime")) |
| testRuntimeOnly(project(":compiler:fir:fir-serialization")) |
| |
| testRuntimeOnly(commonDependency("org.lz4:lz4-java")) |
| testRuntimeOnly(commonDependency("org.jetbrains.intellij.deps.jna:jna")) |
| testRuntimeOnly(intellijJDom()) |
| testRuntimeOnly(commonDependency("org.jetbrains.intellij.deps:trove4j")) |
| testRuntimeOnly(commonDependency("org.jetbrains.intellij.deps.fastutil:intellij-deps-fastutil")) |
| |
| testRuntimeOnly(toolsJar()) |
| } |
| |
| val generationRoot = projectDir.resolve("tests-gen") |
| |
| sourceSets { |
| "main" { |
| projectDefault() |
| } |
| "test" { |
| projectDefault() |
| this.java.srcDir(generationRoot.name) |
| } |
| } |
| |
| if (kotlinBuildProperties.isInJpsBuildIdeaSync) { |
| apply(plugin = "idea") |
| idea { |
| this.module.generatedSourceDirs.add(generationRoot) |
| } |
| } |
| |
| projectTest(parallel = true, jUnitMode = JUnitMode.JUnit4, maxHeapSizeMb = 3072) { |
| workingDir = rootDir |
| useJUnitPlatform() |
| dependsOn(":plugins:plugin-sandbox:jar") |
| dependsOn(":plugins:plugin-sandbox:plugin-annotations:distAnnotations") |
| } |
| |
| testsJar() |