Convert the rest of the project to intellij repo prepared in buildSrc
This commit is contained in:
committed by
Vyacheslav Gerasimov
parent
e23b1529b3
commit
7e21573cf4
@@ -3,9 +3,8 @@ description = "Kotlin Android Extensions Compiler"
|
||||
|
||||
apply { plugin("kotlin") }
|
||||
|
||||
configureIntellijPlugin {
|
||||
setExtraDependencies("intellij-core")
|
||||
}
|
||||
val robolectricClasspath by configurations.creating
|
||||
val androidJar by configurations.creating
|
||||
|
||||
dependencies {
|
||||
compile(project(":compiler:util"))
|
||||
@@ -14,23 +13,22 @@ dependencies {
|
||||
compile(project(":compiler:frontend.java"))
|
||||
compile(project(":compiler:backend"))
|
||||
compileOnly(project(":kotlin-android-extensions-runtime"))
|
||||
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
||||
compileOnly(intellijDep()) { includeJars("asm-all") }
|
||||
|
||||
testCompile(project(":compiler:util"))
|
||||
testCompile(project(":compiler:backend"))
|
||||
testCompile(project(":compiler:cli"))
|
||||
testCompile(project(":compiler:tests-common"))
|
||||
testCompile(project(":kotlin-android-extensions-runtime"))
|
||||
testCompile(projectTests(":compiler:tests-common"))
|
||||
testCompile(projectDist(":kotlin-test:kotlin-test-jvm"))
|
||||
testCompile(commonDep("junit:junit"))
|
||||
testRuntime(ideaPluginDeps("idea-junit", "resources_en", plugin = "junit"))
|
||||
testCompile(project(":kotlin-android-extensions-runtime"))
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compileOnly(intellijCoreJar())
|
||||
compileOnly(intellij { include("asm-all.jar") })
|
||||
}
|
||||
testRuntime(intellijPluginDep("junit")) { includeJars("idea-junit", "resources_en") }
|
||||
|
||||
robolectricClasspath(commonDep("org.robolectric", "robolectric"))
|
||||
androidJar(project(":custom-dependencies:android-sdk", configuration = "androidJar"))
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
@@ -54,4 +52,10 @@ projectTest {
|
||||
environment("ANDROID_EXTENSIONS_RUNTIME_CLASSES", getSourceSetsFrom(":kotlin-android-extensions-runtime")["main"].output.classesDirs.asPath)
|
||||
dependsOnTaskIfExistsRec("dist", project = rootProject)
|
||||
workingDir = rootDir
|
||||
doFirst {
|
||||
val androidPluginPath = File(intellijRootDir(), "plugins/android").canonicalPath
|
||||
systemProperty("ideaSdk.androidPlugin.path", androidPluginPath)
|
||||
systemProperty("robolectric.classpath", robolectricClasspath.asPath)
|
||||
systemProperty("android.jar", androidJar.singleFile.canonicalPath)
|
||||
}
|
||||
}
|
||||
@@ -5,12 +5,8 @@ apply { plugin("kotlin") }
|
||||
|
||||
jvmTarget = "1.6"
|
||||
|
||||
configureIntellijPlugin {
|
||||
setPlugins("android", "copyright", "coverage", "gradle", "Groovy", "IntelliLang",
|
||||
"java-decompiler", "java-i18n", "junit", "maven", "properties", "testng")
|
||||
}
|
||||
|
||||
val androidSdk by configurations.creating
|
||||
val androidJar by configurations.creating
|
||||
|
||||
dependencies {
|
||||
compile(project(":compiler:util"))
|
||||
@@ -20,6 +16,9 @@ dependencies {
|
||||
compile(project(":idea:idea-gradle"))
|
||||
compile(project(":plugins:android-extensions-compiler"))
|
||||
compileOnly(project(":kotlin-android-extensions-runtime"))
|
||||
compileOnly(intellijPluginDep("android")) { includeJars("android.jar", "android-common.jar", "sdk-common.jar", "sdk-tools.jar") }
|
||||
compileOnly(intellijPluginDep("Groovy")) { includeJars("Groovy.jar") }
|
||||
compileOnly(intellijDep()) { includeJars("extensions.jar", "openapi.jar", "util.jar", "idea.jar") }
|
||||
|
||||
testCompile(project(":compiler:tests-common"))
|
||||
testCompile(project(":compiler:cli"))
|
||||
@@ -32,27 +31,32 @@ dependencies {
|
||||
testCompile(projectDist(":kotlin-test:kotlin-test-jvm"))
|
||||
testCompile(commonDep("junit:junit"))
|
||||
testRuntime(projectDist(":kotlin-reflect"))
|
||||
testCompile(intellijPluginDep("android")) { includeJars("android.jar", "android-common.jar", "sdk-common.jar", "sdk-tools.jar") }
|
||||
testCompile(intellijPluginDep("Groovy")) { includeJars("Groovy.jar") }
|
||||
testCompile(intellijDep()) { includeJars("extensions.jar") }
|
||||
|
||||
testRuntime(project(":idea:idea-jvm"))
|
||||
testRuntime(project(":plugins:android-extensions-jps"))
|
||||
testRuntime(project(":sam-with-receiver-ide-plugin"))
|
||||
testRuntime(project(":noarg-ide-plugin"))
|
||||
testRuntime(project(":allopen-ide-plugin"))
|
||||
testRuntime(project(":plugins:lint"))
|
||||
androidSdk(project(":custom-dependencies:android-sdk", configuration = "androidSdk"))
|
||||
}
|
||||
testRuntime(intellijDep())
|
||||
testRuntime(intellijPluginDep("junit"))
|
||||
testRuntime(intellijPluginDep("IntelliLang"))
|
||||
testRuntime(intellijPluginDep("testng"))
|
||||
testRuntime(intellijPluginDep("copyright"))
|
||||
testRuntime(intellijPluginDep("properties"))
|
||||
testRuntime(intellijPluginDep("java-i18n"))
|
||||
testRuntime(intellijPluginDep("gradle"))
|
||||
testRuntime(intellijPluginDep("Groovy"))
|
||||
testRuntime(intellijPluginDep("coverage"))
|
||||
testRuntime(intellijPluginDep("java-decompiler"))
|
||||
testRuntime(intellijPluginDep("maven"))
|
||||
testRuntime(intellijPluginDep("android"))
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compileOnly(intellijPlugin("android") { include("android.jar", "android-common.jar", "sdk-common.jar", "sdk-tools.jar") })
|
||||
compileOnly(intellijPlugin("Groovy") { include("Groovy.jar") })
|
||||
compileOnly(intellij { include("extensions.jar", "openapi.jar", "util.jar", "idea.jar")} )
|
||||
testCompile(intellijPlugin("android") { include("android.jar", "android-common.jar", "sdk-common.jar", "sdk-tools.jar") })
|
||||
testCompile(intellijPlugin("Groovy") { include("Groovy.jar") })
|
||||
testCompile(intellij { include("extensions.jar")} )
|
||||
testRuntime(intellij())
|
||||
testRuntime(intellijPlugins("junit", "IntelliLang", "testng", "copyright", "properties", "java-i18n",
|
||||
"gradle", "Groovy", "coverage", "java-decompiler", "maven", "android"))
|
||||
}
|
||||
androidSdk(project(":custom-dependencies:android-sdk", configuration = "androidSdk"))
|
||||
androidJar(project(":custom-dependencies:android-sdk", configuration = "androidJar"))
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
@@ -68,6 +72,7 @@ projectTest {
|
||||
workingDir = rootDir
|
||||
doFirst {
|
||||
systemProperty("android.sdk", androidSdk.singleFile.canonicalPath)
|
||||
systemProperty("android.jar", androidJar.singleFile.canonicalPath)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,34 +1,31 @@
|
||||
|
||||
apply { plugin("kotlin") }
|
||||
|
||||
configureIntellijPlugin {
|
||||
setPlugins("android")
|
||||
}
|
||||
val androidSdk by configurations.creating
|
||||
|
||||
dependencies {
|
||||
compile(project(":compiler:util"))
|
||||
compile(project(":jps-plugin"))
|
||||
compile(project(":plugins:android-extensions-compiler"))
|
||||
compile(ideaPluginDeps("android-jps-plugin", plugin = "android", subdir = "lib/jps"))
|
||||
compileOnly(intellijDep()) { includeJars("openapi", "jps-builders") }
|
||||
compileOnly(intellijPluginDep("android")) { includeJars("jps/android-jps-plugin") }
|
||||
compile(intellijPluginDep("android")) { includeJars("jps/android-jps-plugin") }
|
||||
|
||||
testCompile(projectTests(":jps-plugin"))
|
||||
testCompile(project(":compiler:tests-common"))
|
||||
testCompile(commonDep("junit:junit"))
|
||||
testCompile(projectDist(":kotlin-test:kotlin-test-jvm"))
|
||||
testCompile(projectTests(":kotlin-build-common"))
|
||||
}
|
||||
testCompileOnly(intellijDep()) { includeJars("openapi", "jps-builders") }
|
||||
testCompileOnly(intellijDep("jps-build-test")) { includeJars("jps-build-test") }
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compileOnly(intellij { include("openapi.jar", "jps-builders.jar") })
|
||||
compile(intellijPlugin("android") { include("**/android-jps-plugin.jar") })
|
||||
testCompileOnly(intellijExtra("jps-build-test") { include("jps-build-test.jar") } )
|
||||
testRuntime(intellijPlugin("android"))
|
||||
testRuntime(intellijCoreJar())
|
||||
testRuntime(intellij())
|
||||
testRuntime(intellijExtra("jps-build-test"))
|
||||
testRuntime(intellijExtra("jps-standalone"))
|
||||
}
|
||||
testRuntime(intellijPluginDep("android"))
|
||||
testRuntime(intellijCoreDep()) { includeJars("intellij-core") }
|
||||
testRuntime(intellijDep())
|
||||
testRuntime(intellijDep("jps-build-test"))
|
||||
testRuntime(intellijDep("jps-standalone"))
|
||||
|
||||
androidSdk(project(":custom-dependencies:android-sdk", configuration = "androidSdk"))
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
@@ -38,6 +35,9 @@ sourceSets {
|
||||
|
||||
projectTest {
|
||||
workingDir = rootDir
|
||||
doFirst {
|
||||
systemProperty("android.sdk", androidSdk.singleFile.canonicalPath)
|
||||
}
|
||||
}
|
||||
|
||||
testsJar {}
|
||||
Reference in New Issue
Block a user