Convert all remaining plugin modules to intellij plugin
This commit is contained in:
committed by
Vyacheslav Gerasimov
parent
9b51a547d8
commit
06c8cbf7d6
@@ -3,8 +3,11 @@ description = "Kotlin AllOpen Compiler Plugin"
|
|||||||
|
|
||||||
apply { plugin("kotlin") }
|
apply { plugin("kotlin") }
|
||||||
|
|
||||||
|
configureIntellijPlugin {
|
||||||
|
setExtraDependencies("intellij-core")
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(ideaSdkCoreDeps("intellij-core"))
|
|
||||||
compileOnly(project(":compiler:plugin-api"))
|
compileOnly(project(":compiler:plugin-api"))
|
||||||
compileOnly(project(":compiler:frontend"))
|
compileOnly(project(":compiler:frontend"))
|
||||||
runtime(projectRuntimeJar(":kotlin-compiler"))
|
runtime(projectRuntimeJar(":kotlin-compiler"))
|
||||||
@@ -19,6 +22,12 @@ dependencies {
|
|||||||
testRuntime(ideaSdkDeps("*.jar"))
|
testRuntime(ideaSdkDeps("*.jar"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
dependencies {
|
||||||
|
compileOnly(intellijCoreJar())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
"main" { projectDefault() }
|
"main" { projectDefault() }
|
||||||
"test" { projectDefault() }
|
"test" { projectDefault() }
|
||||||
|
|||||||
@@ -3,8 +3,11 @@ description = "Kotlin Android Extensions Compiler"
|
|||||||
|
|
||||||
apply { plugin("kotlin") }
|
apply { plugin("kotlin") }
|
||||||
|
|
||||||
|
configureIntellijPlugin {
|
||||||
|
setExtraDependencies("intellij-core")
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile(ideaSdkCoreDeps("intellij-core"))
|
|
||||||
compile(project(":compiler:util"))
|
compile(project(":compiler:util"))
|
||||||
compile(project(":compiler:plugin-api"))
|
compile(project(":compiler:plugin-api"))
|
||||||
compile(project(":compiler:frontend"))
|
compile(project(":compiler:frontend"))
|
||||||
@@ -23,6 +26,12 @@ dependencies {
|
|||||||
testCompile(project(":kotlin-android-extensions-runtime"))
|
testCompile(project(":kotlin-android-extensions-runtime"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
dependencies {
|
||||||
|
compile(intellijCoreJar())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
"main" { projectDefault() }
|
"main" { projectDefault() }
|
||||||
"test" { projectDefault() }
|
"test" { projectDefault() }
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
|
|
||||||
apply { plugin("kotlin") }
|
apply { plugin("kotlin") }
|
||||||
|
|
||||||
|
configureIntellijPlugin {
|
||||||
|
setPlugins("android")
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile(project(":compiler:util"))
|
compile(project(":compiler:util"))
|
||||||
compile(project(":jps-plugin"))
|
compile(project(":jps-plugin"))
|
||||||
@@ -9,15 +13,21 @@ dependencies {
|
|||||||
|
|
||||||
testCompile(projectTests(":jps-plugin"))
|
testCompile(projectTests(":jps-plugin"))
|
||||||
testCompile(project(":compiler:tests-common"))
|
testCompile(project(":compiler:tests-common"))
|
||||||
testCompileOnly(ideaSdkDeps("jps-build-test", subdir = "jps/test"))
|
|
||||||
testRuntime(ideaPluginDeps("*.jar", plugin = "android"))
|
|
||||||
testCompile(commonDep("junit:junit"))
|
testCompile(commonDep("junit:junit"))
|
||||||
testCompile(projectDist(":kotlin-test:kotlin-test-jvm"))
|
testCompile(projectDist(":kotlin-test:kotlin-test-jvm"))
|
||||||
testCompile(projectTests(":kotlin-build-common"))
|
testCompile(projectTests(":kotlin-build-common"))
|
||||||
testRuntime(ideaSdkCoreDeps("*.jar"))
|
}
|
||||||
testRuntime(ideaSdkDeps("*.jar"))
|
|
||||||
testRuntime(ideaSdkDeps("*.jar", subdir = "jps/test"))
|
afterEvaluate {
|
||||||
testRuntime(ideaSdkDeps("*.jar", subdir = "jps"))
|
dependencies {
|
||||||
|
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"))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
|||||||
@@ -3,6 +3,10 @@ apply { plugin("kotlin") }
|
|||||||
|
|
||||||
jvmTarget = "1.6"
|
jvmTarget = "1.6"
|
||||||
|
|
||||||
|
configureIntellijPlugin {
|
||||||
|
setPlugins("gradle", "maven")
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile(project(":compiler:util"))
|
compile(project(":compiler:util"))
|
||||||
compile(project(":compiler:frontend"))
|
compile(project(":compiler:frontend"))
|
||||||
@@ -11,9 +15,14 @@ dependencies {
|
|||||||
compile(project(":idea:idea-jps-common"))
|
compile(project(":idea:idea-jps-common"))
|
||||||
compile(project(":idea:idea-gradle"))
|
compile(project(":idea:idea-gradle"))
|
||||||
compile(project(":idea:idea-maven"))
|
compile(project(":idea:idea-maven"))
|
||||||
compileOnly(ideaPluginDeps("maven", "maven-server-api", plugin = "maven"))
|
}
|
||||||
compileOnly(ideaPluginDeps("gradle-tooling-api", "gradle", plugin = "gradle"))
|
|
||||||
compileOnly(ideaSdkDeps("openapi", "idea"))
|
afterEvaluate {
|
||||||
|
dependencies {
|
||||||
|
compileOnly(intellijPlugin("maven") { include("maven.jar", "maven-server-api.jar") })
|
||||||
|
compileOnly(intellijPlugin("gradle") { include("gradle-tooling-api-*.jar", "gradle.jar") })
|
||||||
|
compileOnly(intellij { include("openapi.jar", "idea.jar") })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ description = "Annotation Processor for Kotlin"
|
|||||||
|
|
||||||
apply { plugin("kotlin") }
|
apply { plugin("kotlin") }
|
||||||
|
|
||||||
|
configureIntellijPlugin()
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile(project(":compiler:util"))
|
compile(project(":compiler:util"))
|
||||||
compile(project(":compiler:cli"))
|
compile(project(":compiler:cli"))
|
||||||
@@ -13,7 +15,6 @@ dependencies {
|
|||||||
|
|
||||||
testCompile(project(":compiler:tests-common"))
|
testCompile(project(":compiler:tests-common"))
|
||||||
testCompile(projectTests(":compiler:tests-common"))
|
testCompile(projectTests(":compiler:tests-common"))
|
||||||
testCompile(ideaSdkDeps("idea", "idea_rt", "openapi"))
|
|
||||||
|
|
||||||
compileOnly(project(":kotlin-annotation-processing-runtime"))
|
compileOnly(project(":kotlin-annotation-processing-runtime"))
|
||||||
|
|
||||||
@@ -21,6 +22,12 @@ dependencies {
|
|||||||
testCompile(project(":kotlin-annotation-processing-runtime"))
|
testCompile(project(":kotlin-annotation-processing-runtime"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
dependencies {
|
||||||
|
testCompile(intellij { include("idea.jar", "idea_rt.jar", "openapi.jar") })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
"main" { projectDefault() }
|
"main" { projectDefault() }
|
||||||
"test" { projectDefault() }
|
"test" { projectDefault() }
|
||||||
|
|||||||
@@ -3,15 +3,24 @@ apply { plugin("kotlin") }
|
|||||||
|
|
||||||
jvmTarget = "1.6"
|
jvmTarget = "1.6"
|
||||||
|
|
||||||
|
configureIntellijPlugin {
|
||||||
|
setPlugins("android", "gradle")
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile(projectDist(":kotlin-stdlib"))
|
compile(projectDist(":kotlin-stdlib"))
|
||||||
compile(project(":compiler:frontend"))
|
compile(project(":compiler:frontend"))
|
||||||
compile(project(":idea")) { isTransitive = false }
|
compile(project(":idea")) { isTransitive = false }
|
||||||
compile(project(":idea:kotlin-gradle-tooling"))
|
compile(project(":idea:kotlin-gradle-tooling"))
|
||||||
compile(project(":kotlin-annotation-processing"))
|
compile(project(":kotlin-annotation-processing"))
|
||||||
compile(ideaSdkDeps("openapi", "external-system-rt"))
|
}
|
||||||
compile(ideaPluginDeps("gradle-core", "gradle-tooling-api", "gradle", plugin = "gradle"))
|
|
||||||
compile(ideaPluginDeps("android", "android-common", "sdklib", "sdk-common", "sdk-tools", plugin = "android"))
|
afterEvaluate {
|
||||||
|
dependencies {
|
||||||
|
compile(intellij { include("openapi.jar", "external-system-rt.jar") })
|
||||||
|
compile(intellijPlugin("gradle") { include("gradle-core-*.jar", "gradle-tooling-api-*.jar", "gradle.jar") })
|
||||||
|
compile(intellijPlugin("android") { include("android.jar", "android-common.jar", "sdklib.jar", "sdk-common.jar", "sdk-tools.jar") })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
|||||||
@@ -4,15 +4,28 @@ apply {
|
|||||||
plugin("java")
|
plugin("java")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configureIntellijPlugin {
|
||||||
|
setExtraDependencies("intellij-core")
|
||||||
|
setPlugins("android")
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile(project(":compiler:frontend"))
|
compile(project(":compiler:frontend"))
|
||||||
compile(project(":idea"))
|
compile(project(":idea"))
|
||||||
compile(project(":idea:idea-core"))
|
compile(project(":idea:idea-core"))
|
||||||
compile(project(":idea:idea-android"))
|
compile(project(":idea:idea-android"))
|
||||||
compile(project(":plugins:uast-kotlin"))
|
compile(project(":plugins:uast-kotlin"))
|
||||||
compile(ideaPluginDeps("android", "android-common", "sdk-common", "sdklib", "sdk-tools", "repository", "lombok-ast", "kxml2", plugin = "android"))
|
}
|
||||||
compile(ideaSdkCoreDeps("intellij-core", "util"))
|
|
||||||
compile(ideaSdkDeps("guava"))
|
afterEvaluate {
|
||||||
|
dependencies {
|
||||||
|
compile(intellijCoreJar())
|
||||||
|
compile(intellij { include("util.jar", "guava-*.jar") })
|
||||||
|
compile(intellijPlugin("android") {
|
||||||
|
include("android.jar", "android-common.jar", "sdklib.jar", "sdk-common.jar", "sdk-tools.jar",
|
||||||
|
"repository.jar", "lombok-ast-*.jar")
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ description = "Kotlin SourceSections Compiler Plugin"
|
|||||||
|
|
||||||
apply { plugin("kotlin") }
|
apply { plugin("kotlin") }
|
||||||
|
|
||||||
|
configureIntellijPlugin()
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(project(":compiler:frontend"))
|
compileOnly(project(":compiler:frontend"))
|
||||||
compileOnly(project(":compiler:frontend.script"))
|
compileOnly(project(":compiler:frontend.script"))
|
||||||
@@ -17,11 +19,16 @@ dependencies {
|
|||||||
testCompile(project(":compiler:daemon-common"))
|
testCompile(project(":compiler:daemon-common"))
|
||||||
testCompile(project(":kotlin-daemon-client"))
|
testCompile(project(":kotlin-daemon-client"))
|
||||||
testCompile(projectTests(":compiler:tests-common"))
|
testCompile(projectTests(":compiler:tests-common"))
|
||||||
testCompile(ideaSdkDeps("idea", "idea_rt", "openapi"))
|
|
||||||
testCompile(commonDep("junit:junit"))
|
testCompile(commonDep("junit:junit"))
|
||||||
testRuntime(projectDist(":kotlin-reflect"))
|
testRuntime(projectDist(":kotlin-reflect"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
dependencies {
|
||||||
|
testCompile(intellij { include("idea.jar", "idea_rt.jar", "openapi.jar") })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
"main" { projectDefault() }
|
"main" { projectDefault() }
|
||||||
"test" { projectDefault() }
|
"test" { projectDefault() }
|
||||||
|
|||||||
@@ -5,8 +5,11 @@ description = "Kotlin Android Extensions Compiler"
|
|||||||
|
|
||||||
apply { plugin("kotlin") }
|
apply { plugin("kotlin") }
|
||||||
|
|
||||||
|
configureIntellijPlugin {
|
||||||
|
setExtraDependencies("intellij-core")
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(ideaSdkCoreDeps("intellij-core"))
|
|
||||||
compileOnly(project(":compiler:util"))
|
compileOnly(project(":compiler:util"))
|
||||||
compileOnly(project(":compiler:plugin-api"))
|
compileOnly(project(":compiler:plugin-api"))
|
||||||
compileOnly(project(":compiler:frontend"))
|
compileOnly(project(":compiler:frontend"))
|
||||||
@@ -17,6 +20,11 @@ dependencies {
|
|||||||
compileOnly(commonDep("com.google.android", "android"))
|
compileOnly(commonDep("com.google.android", "android"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
dependencies {
|
||||||
|
compileOnly(intellijCoreJar())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
"main" { projectDefault() }
|
"main" { projectDefault() }
|
||||||
|
|||||||
Reference in New Issue
Block a user