Files
kotlin-fork/j2k/build.gradle.kts
T
2018-01-30 17:06:11 +03:00

81 lines
2.1 KiB
Kotlin

apply { plugin("kotlin") }
val usedIntellijPlugins = arrayOf(
"properties",
"gradle",
"Groovy",
"coverage",
"maven",
"android",
"junit",
"testng",
"IntelliLang",
"testng",
"copyright",
"properties",
"java-i18n",
"java-decompiler")
configureIntellijPlugin {
setPlugins(*usedIntellijPlugins)
setExtraDependencies("intellij-core")
}
dependencies {
compile(projectDist(":kotlin-stdlib"))
compile(project(":compiler:frontend"))
compile(project(":compiler:frontend.java"))
compile(project(":compiler:light-classes"))
compile(project(":compiler:util"))
testCompile(project(":idea"))
testCompile(project(":idea:idea-test-framework"))
testCompile(project(":compiler:light-classes"))
testCompile(projectDist(":kotlin-test:kotlin-test-junit"))
testCompile(commonDep("junit:junit"))
testRuntime(project(":idea:idea-jvm"))
testRuntime(project(":idea:idea-android"))
testRuntime(project(":plugins:android-extensions-ide"))
testRuntime(project(":sam-with-receiver-ide-plugin"))
testRuntime(project(":allopen-ide-plugin"))
testRuntime(project(":noarg-ide-plugin"))
testRuntime(project(":plugins:kapt3-idea")) { isTransitive = false }
}
afterEvaluate {
dependencies {
compileOnly(intellijCoreJar())
testRuntime(intellij())
testRuntime(intellijPlugins(*usedIntellijPlugins))
}
}
sourceSets {
"main" { projectDefault() }
"test" { projectDefault() }
}
projectTest {
dependsOnTaskIfExistsRec("dist", project = rootProject)
workingDir = rootDir
}
testsJar()
val testForWebDemo by task<Test> {
include("**/*JavaToKotlinConverterForWebDemoTestGenerated*")
classpath = the<JavaPluginConvention>().sourceSets["test"].runtimeClasspath
workingDir = rootDir
}
val cleanTestForWebDemo by tasks
val test: Test by tasks
test.apply {
exclude("**/*JavaToKotlinConverterForWebDemoTestGenerated*")
dependsOn(testForWebDemo)
}
val cleanTest by tasks
cleanTest.dependsOn(cleanTestForWebDemo)