Fix generators tests compilation

This commit is contained in:
Ilya Chernikov
2017-08-13 23:20:01 +02:00
parent 513ab08edd
commit fac2c16999
3 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -11,10 +11,10 @@ import org.gradle.api.tasks.javadoc.Javadoc
import org.gradle.jvm.tasks.Jar
fun Project.testsJar(body: Jar.() -> Unit): Jar {
fun Project.testsJar(body: Jar.() -> Unit = {}): Jar {
val testsJarCfg = configurations.getOrCreate("tests-jar").extendsFrom(configurations["testCompile"])
return task<Jar>("testJar") {
return task<Jar>("testsJar") {
dependsOn("testClasses")
pluginManager.withPlugin("java") {
from(project.the<JavaPluginConvention>().sourceSets.getByName("test").output)
+2
View File
@@ -11,6 +11,7 @@ dependencies {
val testRuntime by configurations
compile(project(":core"))
compile(project(":idea"))
compile(project(":j2k"))
compile(project(":compiler:util"))
compile(project(":compiler:cli"))
compile(project(":compiler:backend"))
@@ -26,6 +27,7 @@ dependencies {
compile(projectTests(":compiler:tests-java8"))
compile(projectTests(":compiler:container"))
compile(projectTests(":idea"))
compile(projectTests(":j2k"))
compile(projectTests(":idea:idea-android"))
compile(projectTests(":jps-plugin"))
compile(projectTests(":plugins:plugins-tests"))
+2
View File
@@ -54,3 +54,5 @@ tasks.withType<Test> {
environment("NO_FS_ROOTS_ACCESS_CHECK", "true")
ignoreFailures = true
}
testsJar()