8a82c1618c
When plugins DSL is used, there is no need to manually generate typesafe accessors for extensions and conventions (by running `./gradlew kotlinDslAccessorsSnapshot`).
86 lines
2.8 KiB
Kotlin
86 lines
2.8 KiB
Kotlin
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
dependencies {
|
|
testRuntime(intellijDep())
|
|
|
|
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"))
|
|
|
|
compileOnly(intellijDep()) { includeJars("openapi", "idea", "external-system-rt", "forms_rt", "extensions", "jdom", "util") }
|
|
compileOnly(intellijPluginDep("gradle")) {
|
|
includeJars(
|
|
"gradle-tooling-api",
|
|
"gradle",
|
|
"gradle-base-services",
|
|
rootProject = rootProject
|
|
)
|
|
}
|
|
compileOnly(intellijPluginDep("Groovy")) { includeJars("Groovy") }
|
|
compileOnly(intellijPluginDep("junit")) { includeJars("idea-junit") }
|
|
|
|
testCompile(projectTests(":idea"))
|
|
testCompile(projectTests(":idea:idea-test-framework"))
|
|
|
|
testCompile(intellijPluginDep("gradle")) {
|
|
includeJars(
|
|
"gradle-wrapper",
|
|
"gradle-base-services",
|
|
"gradle-tooling-extension-impl",
|
|
"gradle-tooling-api",
|
|
"gradle",
|
|
rootProject = rootProject
|
|
)
|
|
}
|
|
testCompileOnly(intellijPluginDep("Groovy")) { includeJars("Groovy") }
|
|
testCompileOnly(intellijDep()) { includeJars("groovy-all", "idea_rt", rootProject = rootProject) }
|
|
|
|
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"))
|
|
// TODO: the order of the plugins matters here, consider avoiding order-dependency
|
|
testRuntime(intellijPluginDep("junit"))
|
|
testRuntime(intellijPluginDep("testng")) { includeJars("jcommander", "resources_en") }
|
|
testRuntime(intellijPluginDep("properties")) { includeJars("resources_en") }
|
|
testRuntime(intellijPluginDep("gradle"))
|
|
testRuntime(intellijPluginDep("Groovy"))
|
|
testRuntime(intellijPluginDep("coverage")) { includeJars("jacocoant") }
|
|
testRuntime(intellijPluginDep("maven"))
|
|
testRuntime(intellijPluginDep("android"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" {
|
|
projectDefault()
|
|
resources.srcDir("res").apply { include("**") }
|
|
}
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
testsJar()
|
|
|
|
projectTest {
|
|
workingDir = rootDir
|
|
useAndroidSdk()
|
|
doFirst {
|
|
systemProperty("idea.home.path", intellijRootDir().canonicalPath)
|
|
}
|
|
}
|
|
|
|
configureInstrumentation()
|