Fix 'fir:lightTree' build script to be able to run light tree tests
This commit is contained in:
@@ -15,14 +15,24 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) }
|
|
||||||
compile(project(":compiler:psi"))
|
compile(project(":compiler:psi"))
|
||||||
compile(project(":compiler:fir:tree"))
|
compile(project(":compiler:fir:tree"))
|
||||||
compile(project(":compiler:fir:psi2fir"))
|
compile(project(":compiler:fir:psi2fir"))
|
||||||
|
|
||||||
testCompile("junit", "junit", "4.4")
|
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) }
|
||||||
|
|
||||||
|
testCompile(intellijDep())
|
||||||
|
|
||||||
|
testCompile(commonDep("junit:junit"))
|
||||||
|
testCompileOnly(project(":kotlin-test:kotlin-test-jvm"))
|
||||||
|
testCompileOnly(project(":kotlin-test:kotlin-test-junit"))
|
||||||
|
testCompile(projectTests(":compiler:tests-common"))
|
||||||
testCompile(projectTests(":compiler:fir:psi2fir"))
|
testCompile(projectTests(":compiler:fir:psi2fir"))
|
||||||
|
|
||||||
|
testCompileOnly(project(":kotlin-reflect-api"))
|
||||||
|
testRuntime(project(":kotlin-reflect"))
|
||||||
|
testRuntime(project(":core:descriptors.runtime"))
|
||||||
|
|
||||||
compile("org.openjdk.jmh", "jmh-core", jmhVersion)
|
compile("org.openjdk.jmh", "jmh-core", jmhVersion)
|
||||||
compile("org.openjdk.jmh", "jmh-generator-bytecode", jmhVersion)
|
compile("org.openjdk.jmh", "jmh-generator-bytecode", jmhVersion)
|
||||||
compile("org.openjdk.jmh", "jmh-generator-annprocess", jmhVersion)
|
compile("org.openjdk.jmh", "jmh-generator-annprocess", jmhVersion)
|
||||||
@@ -71,12 +81,12 @@ val jmhBytecode by tasks.registering(JavaExec::class) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
//tasks {
|
||||||
compileTestJava {
|
// compileTestJava {
|
||||||
source(fileTree("${project.buildDir}/generated-sources/jmh/"))
|
// source(fileTree("${project.buildDir}/generated-sources/jmh/"))
|
||||||
destinationDir = file("${project.buildDir}/generated-classes/jmh/")
|
// destinationDir = file("${project.buildDir}/generated-classes/jmh/")
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
val jmhCompile by tasks.registering(JavaCompile::class) {
|
val jmhCompile by tasks.registering(JavaCompile::class) {
|
||||||
/*classpath = sourceSets["test"].runtimeClasspath + files("${project.buildDir}/generated-sources/jmh/")
|
/*classpath = sourceSets["test"].runtimeClasspath + files("${project.buildDir}/generated-sources/jmh/")
|
||||||
|
|||||||
Reference in New Issue
Block a user