Fix generators tests compilation
This commit is contained in:
@@ -11,10 +11,10 @@ import org.gradle.api.tasks.javadoc.Javadoc
|
|||||||
import org.gradle.jvm.tasks.Jar
|
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"])
|
val testsJarCfg = configurations.getOrCreate("tests-jar").extendsFrom(configurations["testCompile"])
|
||||||
|
|
||||||
return task<Jar>("testJar") {
|
return task<Jar>("testsJar") {
|
||||||
dependsOn("testClasses")
|
dependsOn("testClasses")
|
||||||
pluginManager.withPlugin("java") {
|
pluginManager.withPlugin("java") {
|
||||||
from(project.the<JavaPluginConvention>().sourceSets.getByName("test").output)
|
from(project.the<JavaPluginConvention>().sourceSets.getByName("test").output)
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ dependencies {
|
|||||||
val testRuntime by configurations
|
val testRuntime by configurations
|
||||||
compile(project(":core"))
|
compile(project(":core"))
|
||||||
compile(project(":idea"))
|
compile(project(":idea"))
|
||||||
|
compile(project(":j2k"))
|
||||||
compile(project(":compiler:util"))
|
compile(project(":compiler:util"))
|
||||||
compile(project(":compiler:cli"))
|
compile(project(":compiler:cli"))
|
||||||
compile(project(":compiler:backend"))
|
compile(project(":compiler:backend"))
|
||||||
@@ -26,6 +27,7 @@ dependencies {
|
|||||||
compile(projectTests(":compiler:tests-java8"))
|
compile(projectTests(":compiler:tests-java8"))
|
||||||
compile(projectTests(":compiler:container"))
|
compile(projectTests(":compiler:container"))
|
||||||
compile(projectTests(":idea"))
|
compile(projectTests(":idea"))
|
||||||
|
compile(projectTests(":j2k"))
|
||||||
compile(projectTests(":idea:idea-android"))
|
compile(projectTests(":idea:idea-android"))
|
||||||
compile(projectTests(":jps-plugin"))
|
compile(projectTests(":jps-plugin"))
|
||||||
compile(projectTests(":plugins:plugins-tests"))
|
compile(projectTests(":plugins:plugins-tests"))
|
||||||
|
|||||||
@@ -54,3 +54,5 @@ tasks.withType<Test> {
|
|||||||
environment("NO_FS_ROOTS_ACCESS_CHECK", "true")
|
environment("NO_FS_ROOTS_ACCESS_CHECK", "true")
|
||||||
ignoreFailures = true
|
ignoreFailures = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
testsJar()
|
||||||
|
|||||||
Reference in New Issue
Block a user