Build: Copy uast to idea plugin as separate artifacts

This commit is contained in:
Vyacheslav Gerasimov
2018-05-07 18:57:37 +03:00
parent 8fda174fb0
commit e6f64519e4
8 changed files with 45 additions and 32 deletions
-1
View File
@@ -26,4 +26,3 @@ sourceSets {
}
"test" {}
}
+34
View File
@@ -0,0 +1,34 @@
plugins {
java
kotlin("jvm")
id("jps-compatible")
}
dependencies {
compile(project(":compiler:frontend"))
compile(project(":idea"))
compile(project(":idea:idea-jvm"))
compile(project(":idea:idea-core"))
compile(project(":idea:idea-android"))
compile(project(":plugins:uast-kotlin"))
compileOnly(project(":kotlin-android-extensions-runtime"))
compileOnly(intellijDep())
compileOnly(intellijPluginDep("android"))
}
sourceSets {
"main" {
java.srcDirs("android-annotations/src",
"lint-api/src",
"lint-checks/src",
"lint-idea/src")
}
"test" {}
}
runtimeJar {
archiveName = "android-lint.jar"
}
ideaPlugin()
@@ -19,3 +19,8 @@ sourceSets {
"test" {}
}
runtimeJar {
archiveName = "uast-kotlin-ide.jar"
}
ideaPlugin()
+2
View File
@@ -48,3 +48,5 @@ testsJar {}
projectTest {
workingDir = rootDir
}
ideaPlugin()
+2
View File
@@ -48,3 +48,5 @@ testsJar {}
projectTest {
workingDir = rootDir
}
ideaPlugin()
@@ -48,3 +48,5 @@ testsJar {}
projectTest {
workingDir = rootDir
}
ideaPlugin()
-29
View File
@@ -1,29 +0,0 @@
description = "Kotlin Android Lint"
plugins {
`java-base`
id("jps-compatible-base")
}
val projectsToShadow = listOf(
":plugins:lint",
":plugins:uast-kotlin",
":plugins:uast-kotlin-idea")
sourceSets {
"main" {}
"test" {}
}
dependencies {
projectsToShadow.forEach { p ->
embeddedComponents(project(p)) { isTransitive = false }
}
}
runtimeJar {
fromEmbeddedComponents()
}
ideaPlugin()
-2
View File
@@ -118,7 +118,6 @@ include ":kotlin-build-common",
":prepare:ide-lazy-resolver",
":prepare:idea-plugin",
":prepare:cidr-plugin",
":android-lint",
":kotlin-compiler",
":kotlin-compiler-embeddable",
":kotlin-compiler-client-embeddable",
@@ -225,7 +224,6 @@ project(':kotlin-android-extensions').projectDir = "$rootDir/prepare/android-ext
project(':kotlin-android-extensions-runtime').projectDir = "$rootDir/plugins/android-extensions/android-extensions-runtime" as File
project(':plugins:android-extensions-ide').projectDir = "$rootDir/plugins/android-extensions/android-extensions-idea" as File
project(':plugins:android-extensions-jps').projectDir = "$rootDir/plugins/android-extensions/android-extensions-jps" as File
project(':android-lint').projectDir = "$rootDir/prepare/android-lint" as File
project(':kotlin-allopen-compiler-plugin').projectDir = "$rootDir/plugins/allopen/allopen-cli" as File
project(':allopen-ide-plugin').projectDir = "$rootDir/plugins/allopen/allopen-ide" as File
project(':kotlin-noarg-compiler-plugin').projectDir = "$rootDir/plugins/noarg/noarg-cli" as File