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

67 lines
2.4 KiB
Kotlin

apply { plugin("kotlin") }
configureIntellijPlugin {
setPlugins("android", "coverage", "gradle", "Groovy", "junit", "maven", "properties", "testng")
}
dependencies {
compileOnly(project(":idea"))
compileOnly(project(":idea:idea-jvm"))
compile(project(":idea:kotlin-gradle-tooling"))
compile(project(":compiler:frontend"))
compile(project(":compiler:frontend.java"))
compile(project(":compiler:frontend.script"))
compile(project(":js:js.frontend"))
testCompile(projectTests(":idea"))
testCompile(project(":idea:idea-test-framework"))
testRuntime(projectDist(":kotlin-reflect"))
testRuntime(project(":idea:idea-jvm"))
testRuntime(project(":idea:idea-android"))
testRuntime(project(":plugins:kapt3-idea"))
testRuntime(project(":plugins:android-extensions-ide"))
testRuntime(project(":plugins:lint"))
testRuntime(project(":sam-with-receiver-ide-plugin"))
testRuntime(project(":allopen-ide-plugin"))
testRuntime(project(":noarg-ide-plugin"))
}
afterEvaluate {
dependencies {
compileOnly(intellij { include("openapi.jar", "idea.jar", "external-system-rt.jar", "forms_rt.jar") })
compileOnly(intellijPlugin("gradle") { include("gradle-tooling-api-*.jar", "gradle.jar", "gradle-base-services-*.jar") })
compileOnly(intellijPlugin("Groovy") { include("Groovy.jar") })
testCompile(intellijPlugin("gradle") { include("gradle-wrapper-*.jar", "gradle-base-services-*.jar", "gradle-tooling-extension-impl.jar", "gradle-tooling-api-*.jar", "gradle.jar") })
testCompileOnly(intellijPlugin("Groovy") { include("Groovy.jar") })
testCompileOnly(intellij { include("groovy-all-*.jar", "idea_rt.jar") })
testRuntime(intellij())
// TODO: the order of the plugins matters here, consider avoiding order-dependency
testRuntime(intellijPlugins("junit"))
testRuntime(intellijPlugin("testng") { include("jcommander.jar", "resources_en.jar") })
testRuntime(intellijPlugin("properties") { include("resources_en.jar") })
testRuntime(intellijPlugins("gradle", "Groovy"))
testRuntime(intellijPlugin("coverage") { include("jacocoant*.jar") })
testRuntime(intellijPlugins("maven", "android"))
}
}
sourceSets {
"main" {
projectDefault()
resources.srcDir("res").apply { include("**") }
}
"test" { projectDefault() }
}
testsJar()
projectTest {
workingDir = rootDir
}
configureInstrumentation()