Make all dependencies to idea sdk intransitive

This commit is contained in:
Ilya Chernikov
2017-11-24 17:42:06 +01:00
committed by Vyacheslav Gerasimov
parent e76cd802d8
commit a4f28cd94f
65 changed files with 341 additions and 106 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compileOnly(intellij { include("util.jar") }) compileOnly(intellij { include("annotations.jar", "asm-all.jar", "trove4j.jar", "util.jar") })
testCompileOnly(intellij { include("openapi.jar") }) testCompileOnly(intellij { include("openapi.jar") })
} }
} }
+2 -2
View File
@@ -25,8 +25,8 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellij { include("openapi.jar") }) compileOnly(intellij { include("openapi.jar") })
testCompile(intellij { include("idea.jar", "idea_rt.jar", "groovy-all-*.jar", "jps-builders.jar") }) testCompile(intellij { include("openapi.jar", "idea.jar", "idea_rt.jar", "groovy-all-*.jar", "jps-builders.jar") })
testCompile(intellijExtra("jps-standalone") { include("jps-model.jar") }) testCompile(intellijExtra("jps-standalone") { include("jps-model.jar") })
testCompile(intellijExtra("jps-build-test")) testCompile(intellijExtra("jps-build-test"))
} }
+10
View File
@@ -3,6 +3,10 @@ apply { plugin("kotlin") }
jvmTarget = "1.6" jvmTarget = "1.6"
configureIntellijPlugin {
setExtraDependencies("intellij-core")
}
dependencies { dependencies {
compile(project(":core:descriptors")) compile(project(":core:descriptors"))
compile(project(":core:descriptors.jvm")) compile(project(":core:descriptors.jvm"))
@@ -11,6 +15,12 @@ dependencies {
compile(project(":compiler:ir.tree")) compile(project(":compiler:ir.tree"))
} }
afterEvaluate {
dependencies {
compileOnly(intellijCoreJar())
}
}
sourceSets { sourceSets {
"main" { "main" {
projectDefault() projectDefault()
+11
View File
@@ -3,6 +3,10 @@ apply { plugin("kotlin") }
jvmTarget = "1.6" jvmTarget = "1.6"
configureIntellijPlugin {
setExtraDependencies("intellij-core")
}
dependencies { dependencies {
compile(project(":compiler:util")) compile(project(":compiler:util"))
compile(project(":compiler:backend-common")) compile(project(":compiler:backend-common"))
@@ -13,6 +17,13 @@ dependencies {
compile(project(":compiler:serialization")) compile(project(":compiler:serialization"))
} }
afterEvaluate {
dependencies {
compileOnly(intellijCoreJar())
compileOnly(intellij { include("annotations.jar", "asm-all.jar", "trove4j.jar", "guava-*.jar") })
}
}
sourceSets { sourceSets {
"main" { "main" {
projectDefault() projectDefault()
+3 -2
View File
@@ -73,9 +73,10 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
testCompile(intellij { include("openapi.jar", "idea.jar", "util.jar", "asm-all.jar", "commons-httpclient-3.1-patched.jar") }) testCompileOnly(intellijCoreJar())
testCompileOnly(intellij { include("openapi.jar", "idea.jar", "idea_rt.jar", "util.jar", "asm-all.jar",
"commons-httpclient-3.1-patched.jar") })
testRuntime(intellij()) testRuntime(intellij())
testRuntime(intellijCoreJar())
} }
} }
+2 -2
View File
@@ -34,8 +34,8 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
compile(intellijCoreJarDependencies()) compileOnly(intellijCoreJarDependencies())
} }
} }
+2 -2
View File
@@ -17,8 +17,8 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
compile(intellijCoreJarDependencies()) compileOnly(intellijCoreJarDependencies())
} }
} }
+10
View File
@@ -7,6 +7,10 @@ apply { plugin("kotlin") }
jvmTarget = "1.6" jvmTarget = "1.6"
configureIntellijPlugin {
setExtraDependencies("intellij-core")
}
dependencies { dependencies {
compile(project(":kotlin-build-common")) compile(project(":kotlin-build-common"))
compileOnly(project(":compiler:cli-common")) compileOnly(project(":compiler:cli-common"))
@@ -18,6 +22,12 @@ dependencies {
runtimeOnly(projectRuntimeJar(":kotlin-compiler-embeddable")) runtimeOnly(projectRuntimeJar(":kotlin-compiler-embeddable"))
} }
afterEvaluate {
dependencies {
compileOnly(intellijCoreJar())
}
}
sourceSets { sourceSets {
"main" { projectDefault() } "main" { projectDefault() }
"test" {} "test" {}
@@ -19,8 +19,8 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
compile(intellijCoreJarDependencies()) compileOnly(intellijCoreJarDependencies())
} }
} }
+2 -1
View File
@@ -19,7 +19,8 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
testCompile(intellijCoreJar())
testRuntime(intellij { include("trove4j.jar") }) testRuntime(intellij { include("trove4j.jar") })
} }
} }
+2 -2
View File
@@ -19,8 +19,8 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
compile(intellijCoreJarDependencies()) compileOnly(intellijCoreJarDependencies())
} }
} }
@@ -17,8 +17,8 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
compile(intellijCoreJarDependencies()) compileOnly(intellijCoreJarDependencies())
} }
} }
+11
View File
@@ -3,6 +3,10 @@ apply { plugin("kotlin") }
jvmTarget = "1.6" jvmTarget = "1.6"
configureIntellijPlugin {
setExtraDependencies("intellij-core")
}
dependencies { dependencies {
compile(project(":core:descriptors")) compile(project(":core:descriptors"))
compile(project(":core:descriptors.jvm")) compile(project(":core:descriptors.jvm"))
@@ -10,6 +14,13 @@ dependencies {
compile(project(":compiler:frontend")) compile(project(":compiler:frontend"))
} }
afterEvaluate {
dependencies {
compileOnly(intellijCoreJar())
compileOnly(intellij { include("annotations.jar", "asm-all.jar", "trove4j.jar", "guava-*.jar") })
}
}
sourceSets { sourceSets {
"main" { projectDefault() } "main" { projectDefault() }
"test" {} "test" {}
+10
View File
@@ -3,6 +3,10 @@ apply { plugin("kotlin") }
jvmTarget = "1.6" jvmTarget = "1.6"
configureIntellijPlugin {
setExtraDependencies("intellij-core")
}
dependencies { dependencies {
compile(project(":compiler:util")) compile(project(":compiler:util"))
compile(project(":compiler:frontend")) compile(project(":compiler:frontend"))
@@ -11,6 +15,12 @@ dependencies {
compile(commonDep("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) { isTransitive = false } compile(commonDep("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) { isTransitive = false }
} }
afterEvaluate {
dependencies {
compileOnly(intellijCoreJar())
}
}
sourceSets { sourceSets {
"main" { projectDefault() } "main" { projectDefault() }
"test" {} "test" {}
+11
View File
@@ -3,6 +3,10 @@ apply { plugin("kotlin") }
jvmTarget = "1.6" jvmTarget = "1.6"
configureIntellijPlugin {
setExtraDependencies("intellij-core")
}
val jflexPath by configurations.creating val jflexPath by configurations.creating
dependencies { dependencies {
@@ -16,6 +20,13 @@ dependencies {
jflexPath(commonDep("org.jetbrains.intellij.deps.jflex", "jflex")) jflexPath(commonDep("org.jetbrains.intellij.deps.jflex", "jflex"))
} }
afterEvaluate {
dependencies {
compileOnly(intellijCoreJar())
compileOnly(intellij { include("annotations.jar", "trove4j.jar", "guava-*.jar") })
}
}
sourceSets { sourceSets {
"main" { projectDefault() } "main" { projectDefault() }
"test" {} "test" {}
@@ -3,6 +3,10 @@ apply { plugin("kotlin") }
jvmTarget = "1.6" jvmTarget = "1.6"
configureIntellijPlugin {
setExtraDependencies("intellij-core")
}
dependencies { dependencies {
compile(project(":core:descriptors")) compile(project(":core:descriptors"))
compile(project(":core:descriptors.jvm")) compile(project(":core:descriptors.jvm"))
@@ -19,6 +23,15 @@ dependencies {
testCompile(projectTests(":compiler:tests-common")) testCompile(projectTests(":compiler:tests-common"))
} }
afterEvaluate {
dependencies {
compileOnly(intellijCoreJar())
compileOnly(intellij { include("annotations.jar") })
testCompile(intellijCoreJar())
testCompile(intellij { include("annotations.jar") })
}
}
sourceSets { sourceSets {
"main" { projectDefault() } "main" { projectDefault() }
"test" { projectDefault() } "test" { projectDefault() }
+10
View File
@@ -2,6 +2,10 @@ apply { plugin("kotlin") }
jvmTarget = "1.6" jvmTarget = "1.6"
configureIntellijPlugin {
setExtraDependencies("intellij-core")
}
dependencies { dependencies {
compile(project(":compiler:util")) compile(project(":compiler:util"))
compile(project(":compiler:frontend")) compile(project(":compiler:frontend"))
@@ -9,6 +13,12 @@ dependencies {
compile(project(":compiler:ir.tree")) compile(project(":compiler:ir.tree"))
} }
afterEvaluate {
dependencies {
compileOnly(intellijCoreJar())
}
}
sourceSets { sourceSets {
"main" { projectDefault() } "main" { projectDefault() }
"test" {} "test" {}
+11
View File
@@ -3,6 +3,10 @@ apply { plugin("kotlin") }
jvmTarget = "1.6" jvmTarget = "1.6"
configureIntellijPlugin {
setExtraDependencies("intellij-core")
}
dependencies { dependencies {
compile(project(":compiler:util")) compile(project(":compiler:util"))
compile(project(":compiler:backend")) compile(project(":compiler:backend"))
@@ -10,6 +14,13 @@ dependencies {
compile(project(":compiler:frontend.java")) compile(project(":compiler:frontend.java"))
} }
afterEvaluate {
dependencies {
compileOnly(intellijCoreJar())
compileOnly(intellij { include("annotations.jar", "asm-all.jar", "trove4j.jar", "guava-*.jar") })
}
}
sourceSets { sourceSets {
"main" { projectDefault() } "main" { projectDefault() }
"test" {} "test" {}
+1 -1
View File
@@ -14,7 +14,7 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
} }
} }
+1 -1
View File
@@ -9,7 +9,7 @@ configureIntellijPlugin()
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellij { include("asm-all.jar") }) compileOnly(intellij { include("asm-all.jar") })
} }
} }
+8
View File
@@ -3,11 +3,19 @@ apply { plugin("kotlin") }
jvmTarget = "1.6" jvmTarget = "1.6"
configureIntellijPlugin()
dependencies { dependencies {
compile(project(":compiler:util")) compile(project(":compiler:util"))
compile(project(":core:descriptors")) compile(project(":core:descriptors"))
} }
afterEvaluate {
dependencies {
compileOnly(intellij { include("trove4j.jar") })
}
}
sourceSets { sourceSets {
"main" { projectDefault() } "main" { projectDefault() }
"test" {} "test" {}
+1 -1
View File
@@ -35,7 +35,7 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
testCompile(intellijCoreJar()) testCompile(intellijCoreJar())
testCompile(intellij { include("openapi.jar", "idea.jar", "idea_rt.jar") }) testCompile(intellij { include("openapi.jar", "idea.jar", "idea_rt.jar", "guava-*.jar", "trove4j.jar", "picocontainer.jar", "asm-all.jar") })
} }
} }
+7
View File
@@ -12,6 +12,13 @@ dependencies {
testRuntime(projectDist(":kotlin-reflect")) testRuntime(projectDist(":kotlin-reflect"))
} }
afterEvaluate {
dependencies {
testCompileOnly(intellijCoreJar())
testRuntime(intellij())
}
}
sourceSets { sourceSets {
"main" {} "main" {}
"test" { projectDefault() } "test" { projectDefault() }
+3 -3
View File
@@ -14,9 +14,9 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
compile(intellijCoreJarDependencies()) compileOnly(intellijCoreJarDependencies())
compile(intellijExtra("jps-standalone") { include("jps-model.jar") }) compileOnly(intellijExtra("jps-standalone") { include("jps-model.jar") })
} }
} }
+2 -1
View File
@@ -14,7 +14,8 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellij { include("asm-all.jar") }) compileOnly(intellij { include("asm-all.jar") })
testCompile(intellij { include("asm-all.jar") })
} }
} }
+2 -1
View File
@@ -49,7 +49,8 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijExtra("jps-build-test")) compileOnly(intellijExtra("jps-build-test"))
testCompile(intellijExtra("jps-build-test"))
testRuntime(intellij { include("idea_rt.jar") }) testRuntime(intellij { include("idea_rt.jar") })
} }
} }
+8 -6
View File
@@ -89,14 +89,16 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
compile(intellij { include("util.jar") })
compileOnly(intellij { compileOnly(intellij {
include("openapi.jar", "idea.jar", "velocity.jar", "boot.jar", "gson-*.jar", include("annotations.jar", "openapi.jar", "idea.jar", "velocity.jar", "boot.jar", "gson-*.jar", "log4j.jar", "asm-all.jar",
"swingx-core-*.jar", "jsr305.jar", "forms_rt.jar", "util.jar", "annotations.jar") "swingx-core-*.jar", "jsr305.jar", "forms_rt.jar", "util.jar", "jdom.jar", "trove4j.jar", "guava-*.jar")
}) })
compile(intellijPlugins("IntelliLang", "copyright", "properties", "java-i18n")) compileOnly(intellijPlugins("IntelliLang", "copyright", "properties", "java-i18n"))
testCompileOnly(intellij { include("groovy-all-*.jar", "velocity.jar", "gson-*.jar", "jsr305.jar", "idea_rt.jar") }) testCompileOnly(intellijCoreJar())
testCompile(intellijPlugins("IntelliLang", "copyright", "properties", "java-i18n"))
testCompileOnly(intellij { include("groovy-all-*.jar", "velocity.jar", "gson-*.jar", "jsr305.jar", "idea_rt.jar", "util.jar",
"log4j.jar") })
testCompileOnly(intellijPlugin("gradle") { include("gradle-base-services-*.jar", "gradle-tooling-extension-impl.jar", "gradle-wrapper-*.jar") }) testCompileOnly(intellijPlugin("gradle") { include("gradle-base-services-*.jar", "gradle-tooling-extension-impl.jar", "gradle-wrapper-*.jar") })
testCompileOnly(intellijPlugin("Groovy") { include("Groovy.jar") }) testCompileOnly(intellijPlugin("Groovy") { include("Groovy.jar") })
testCompileOnly(intellijPlugin("maven") { include("maven.jar", "maven-server-api.jar") }) testCompileOnly(intellijPlugin("maven") { include("maven.jar", "maven-server-api.jar") })
+1 -1
View File
@@ -10,7 +10,7 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellij { include("openapi.jar") }) compileOnly(intellij { include("idea.jar", "openapi.jar", "util.jar") })
} }
} }
+2 -2
View File
@@ -15,8 +15,8 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
compile(intellij { include("annotations.jar", "guava-*.jar") }) compileOnly(intellij { include("annotations.jar", "guava-*.jar") })
} }
} }
+5 -2
View File
@@ -40,12 +40,15 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellij { include("openapi.jar", "idea.jar") }) compileOnly(intellij { include("openapi.jar", "idea.jar", "extensions.jar", "util.jar", "guava-*.jar") })
compile(intellijPlugin("android") { compileOnly(intellijPlugin("android") {
include("android.jar", "android-common.jar", "sdk-common.jar", "sdklib.jar", "sdk-tools.jar", "layoutlib-api.jar") include("android.jar", "android-common.jar", "sdk-common.jar", "sdklib.jar", "sdk-tools.jar", "layoutlib-api.jar")
}) })
testCompile(intellij { include("gson-*.jar") }) testCompile(intellij { include("gson-*.jar") })
testCompile(intellijPlugin("properties")) testCompile(intellijPlugin("properties"))
testCompileOnly(intellijPlugin("android") {
include("android.jar", "android-common.jar", "sdk-common.jar", "sdklib.jar", "sdk-tools.jar", "layoutlib-api.jar")
})
testRuntime(intellij()) testRuntime(intellij())
testRuntime(intellijPlugins("android", "copyright", "coverage", "gradle", "Groovy", "IntelliLang", testRuntime(intellijPlugins("android", "copyright", "coverage", "gradle", "Groovy", "IntelliLang",
"java-decompiler", "java-i18n", "junit", "maven", "testng")) "java-decompiler", "java-i18n", "junit", "maven", "testng"))
@@ -12,9 +12,10 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
compile(intellijPlugin("gradle") { include("gradle-tooling-api.jar") }) compileOnly(intellij { include("guava-*.jar") })
compile(intellijPlugin("android") { include("android.jar", "android-common.jar", "sdk-common.jar") }) compileOnly(intellijPlugin("gradle") { include("gradle-tooling-api.jar") })
compileOnly(intellijPlugin("android") { include("android.jar", "android-common.jar", "sdk-common.jar") })
} }
} }
+3 -3
View File
@@ -25,9 +25,9 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
compile(intellij { include("util.jar", "openapi.jar", "idea.jar") }) compileOnly(intellij { include("util.jar", "openapi.jar", "idea.jar", "asm-all.jar", "jdom.jar", "annotations.jar", "trove4j.jar", "guava-*.jar") })
compile(intellijPlugin("gradle") { include("gradle-tooling-api-*.jar", "gradle.jar") }) compileOnly(intellijPlugin("gradle") { include("gradle-tooling-api-*.jar", "gradle.jar") })
} }
} }
+2 -1
View File
@@ -32,9 +32,10 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compileOnly(intellij { include("openapi.jar", "idea.jar", "external-system-rt.jar", "forms_rt.jar") }) compileOnly(intellij { include("openapi.jar", "idea.jar", "external-system-rt.jar", "forms_rt.jar", "extensions.jar", "jdom.jar", "util.jar") })
compileOnly(intellijPlugin("gradle") { include("gradle-tooling-api-*.jar", "gradle.jar", "gradle-base-services-*.jar") }) compileOnly(intellijPlugin("gradle") { include("gradle-tooling-api-*.jar", "gradle.jar", "gradle-base-services-*.jar") })
compileOnly(intellijPlugin("Groovy") { include("Groovy.jar") }) compileOnly(intellijPlugin("Groovy") { include("Groovy.jar") })
compileOnly(intellijPlugin("junit") { include("idea-junit.jar") })
testCompile(intellijPlugin("gradle") { include("gradle-wrapper-*.jar", "gradle-base-services-*.jar", "gradle-tooling-extension-impl.jar", "gradle-tooling-api-*.jar", "gradle.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(intellijPlugin("Groovy") { include("Groovy.jar") })
testCompileOnly(intellij { include("groovy-all-*.jar", "idea_rt.jar") }) testCompileOnly(intellij { include("groovy-all-*.jar", "idea_rt.jar") })
+2 -2
View File
@@ -15,8 +15,8 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
compile(intellij { include("util.jar") }) compileOnly(intellij { include("jdom.jar", "util.jar") })
} }
} }
+5 -5
View File
@@ -13,12 +13,12 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compileOnly(intellij { include("openapi.jar", "idea.jar") }) compileOnly(intellij { include("openapi.jar", "idea.jar", "extensions.jar", "util.jar") })
compile(intellijPlugin("junit") { include("idea-junit.jar") }) compileOnly(intellijPlugin("junit") { include("idea-junit.jar") })
compile(intellijPlugin("testng") { include("testng.jar", "testng-plugin.jar") }) compileOnly(intellijPlugin("testng") { include("testng.jar", "testng-plugin.jar") })
compile(intellijPlugin("coverage") { include("coverage.jar") }) compileOnly(intellijPlugin("coverage") { include("coverage.jar") })
compile(intellijPlugin("java-decompiler") { include("java-decompiler.jar") }) compileOnly(intellijPlugin("java-decompiler") { include("java-decompiler.jar") })
} }
} }
+1 -1
View File
@@ -35,7 +35,7 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compileOnly(intellij { include("openapi.jar", "idea.jar", "gson-*.jar") }) compileOnly(intellij { include("openapi.jar", "idea.jar", "gson-*.jar", "jdom.jar", "extensions.jar", "util.jar") })
compileOnly(intellijPlugin("maven") { include("maven.jar", "maven-server-api.jar") }) compileOnly(intellijPlugin("maven") { include("maven.jar", "maven-server-api.jar") })
testCompileOnly(intellij { include("openapi.jar", "idea.jar", "gson-*.jar", "idea_rt.jar") }) testCompileOnly(intellij { include("openapi.jar", "idea.jar", "gson-*.jar", "idea_rt.jar") })
testCompileOnly(intellijPlugin("maven") { include("maven.jar", "maven-server-api.jar") }) testCompileOnly(intellijPlugin("maven") { include("maven.jar", "maven-server-api.jar") })
+1 -1
View File
@@ -18,7 +18,7 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellij { include("openapi.jar", "idea.jar") }) compileOnly(intellij { include("openapi.jar", "idea.jar", "log4j.jar") })
} }
} }
+2
View File
@@ -19,6 +19,7 @@ val usedIntellijPlugins = arrayOf(
configureIntellijPlugin { configureIntellijPlugin {
setPlugins(*usedIntellijPlugins) setPlugins(*usedIntellijPlugins)
setExtraDependencies("intellij-core")
} }
dependencies { dependencies {
@@ -43,6 +44,7 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compileOnly(intellijCoreJar())
testRuntime(intellij()) testRuntime(intellij())
testRuntime(intellijPlugins(*usedIntellijPlugins)) testRuntime(intellijPlugins(*usedIntellijPlugins))
} }
+2 -1
View File
@@ -31,9 +31,10 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compileOnly(intellij { include("jdom.jar", "trove4j.jar", "jps-model.jar", "openapi.jar", "util.jar") })
compileOnly(intellijExtra("jps-standalone") { include("jps-builders.jar", "jps-builders-6.jar") }) compileOnly(intellijExtra("jps-standalone") { include("jps-builders.jar", "jps-builders-6.jar") })
testCompileOnly(intellijExtra("jps-standalone") { include("jps-builders.jar", "jps-builders-6.jar") }) testCompileOnly(intellijExtra("jps-standalone") { include("jps-builders.jar", "jps-builders-6.jar") })
testCompile(intellij { include("openapi.jar", "idea.jar") }) testCompileOnly(intellij { include("openapi.jar", "idea.jar", "log4j.jar") })
testCompile(intellijExtra("jps-build-test")) testCompile(intellijExtra("jps-build-test"))
testRuntime(intellij()) testRuntime(intellij())
testRuntime(intellijCoreJar()) testRuntime(intellijCoreJar())
+2 -3
View File
@@ -14,12 +14,11 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
compile(intellij { include("trove6j.jar")} ) compileOnly(intellij { include("trove4j.jar")} )
} }
} }
sourceSets { sourceSets {
"main" { projectDefault() } "main" { projectDefault() }
"test" {} "test" {}
+1 -1
View File
@@ -13,7 +13,7 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
} }
} }
+2 -1
View File
@@ -17,7 +17,8 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
compileOnly(intellij { include("guava-*.jar")} )
} }
} }
+1 -1
View File
@@ -12,7 +12,7 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
} }
} }
+1 -1
View File
@@ -16,7 +16,7 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
} }
} }
+6 -2
View File
@@ -12,7 +12,9 @@ node {
apply { plugin("kotlin") } apply { plugin("kotlin") }
configureIntellijPlugin() configureIntellijPlugin {
setExtraDependencies("intellij-core")
}
val antLauncherJar by configurations.creating val antLauncherJar by configurations.creating
@@ -42,7 +44,9 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
testCompile(intellij { include("openapi.jar", "idea.jar", "idea_rt.jar") }) testCompileOnly(intellijCoreJar())
testCompileOnly(intellij { include("openapi.jar", "idea.jar", "idea_rt.jar", "util.jar") })
testRuntime(intellij())
} }
} }
+2 -1
View File
@@ -24,7 +24,8 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
compileOnly(intellij { include("trove4j.jar", "guava-*.jar")} )
} }
} }
@@ -1,3 +1,8 @@
plugins {
id 'org.jetbrains.intellij'
}
apply plugin: 'kotlin' apply plugin: 'kotlin'
apply plugin: 'maven' apply plugin: 'maven'
@@ -6,6 +11,13 @@ repositories {
jcenter() jcenter()
} }
intellij {
version = rootProject.ext["versions.intellij"]
instrumentCode = false
configureDefaultDependencies = false
extraDependencies = ['intellij-core']
}
dependencies { dependencies {
compile project(':kotlin-gradle-plugin-api') compile project(':kotlin-gradle-plugin-api')
// Use this dependency instead when building apart from the other modules: // Use this dependency instead when building apart from the other modules:
@@ -21,3 +33,9 @@ dependencies {
compileOnly gradleApi() compileOnly gradleApi()
} }
afterEvaluate {
dependencies {
compileOnly intellijExtra('intellij-core')
}
}
@@ -13,6 +13,10 @@ buildscript {
} }
} }
plugins {
id 'org.jetbrains.intellij'
}
configureJvmProject(project) configureJvmProject(project)
configurePublishing(project) configurePublishing(project)
@@ -22,6 +26,13 @@ repositories {
maven { url 'https://maven.google.com' } maven { url 'https://maven.google.com' }
} }
intellij {
version = rootProject.ext["versions.intellij"]
instrumentCode = false
configureDefaultDependencies = false
extraDependencies = ['intellij-core']
}
configurations { configurations {
agp25CompileOnly agp25CompileOnly
} }
@@ -65,6 +76,12 @@ dependencies {
testCompileOnly project(':kotlin-annotation-processing-gradle') testCompileOnly project(':kotlin-annotation-processing-gradle')
} }
afterEvaluate {
dependencies {
compileOnly intellijExtra('intellij-core')
}
}
tasks.withType(project.compileKotlin.class) { tasks.withType(project.compileKotlin.class) {
kotlinOptions.jdkHome = JDK_18 kotlinOptions.jdkHome = JDK_18
} }
@@ -3,6 +3,8 @@ description = "Kotlin scripting support utilities"
apply { plugin("kotlin") } apply { plugin("kotlin") }
configureIntellijPlugin()
dependencies { dependencies {
compile(project(":kotlin-stdlib")) compile(project(":kotlin-stdlib"))
compile(project(":kotlin-script-runtime")) compile(project(":kotlin-script-runtime"))
@@ -22,6 +24,13 @@ dependencies {
testRuntime("org.apache.maven:maven-core:3.0.3") testRuntime("org.apache.maven:maven-core:3.0.3")
} }
afterEvaluate {
dependencies {
compileOnly(intellij { include("openapi.jar", "util.jar") })
testCompile(intellij { include("openapi.jar", "util.jar") })
}
}
projectTest() projectTest()
runtimeJar() runtimeJar()
+3 -3
View File
@@ -21,9 +21,9 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellij { include("openapi.jar", "idea.jar") }) compileOnly(intellij { include("openapi.jar", "idea.jar") })
compile(intellijPlugin("maven") { include("maven.jar") }) compileOnly(intellijPlugin("maven") { include("maven.jar") })
compile(intellijPlugin("gradle") { include("gradle-tooling-api-*.jar", "gradle.jar") }) compileOnly(intellijPlugin("gradle") { include("gradle-tooling-api-*.jar", "gradle.jar") })
} }
} }
@@ -28,7 +28,8 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
compileOnly(intellij { include("asm-all.jar") })
} }
} }
@@ -40,8 +40,12 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijPlugin("android") { include("android.jar", "android-common.jar", "sdk-common.jar", "sdk-tools.jar") }) compileOnly(intellijPlugin("android") { include("android.jar", "android-common.jar", "sdk-common.jar", "sdk-tools.jar") })
compile(intellijPlugin("Groovy") { include("Groovy.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(intellij())
testRuntime(intellijPlugins("junit", "IntelliLang", "testng", "copyright", "properties", "java-i18n", testRuntime(intellijPlugins("junit", "IntelliLang", "testng", "copyright", "properties", "java-i18n",
"gradle", "Groovy", "coverage", "java-decompiler", "maven", "android")) "gradle", "Groovy", "coverage", "java-decompiler", "maven", "android"))
@@ -20,6 +20,7 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compileOnly(intellij { include("openapi.jar", "jps-builders.jar") })
compile(intellijPlugin("android") { include("**/android-jps-plugin.jar") }) compile(intellijPlugin("android") { include("**/android-jps-plugin.jar") })
testCompileOnly(intellijExtra("jps-build-test") { include("jps-build-test.jar") } ) testCompileOnly(intellijExtra("jps-build-test") { include("jps-build-test.jar") } )
testRuntime(intellijPlugin("android")) testRuntime(intellijPlugin("android"))
@@ -21,7 +21,7 @@ afterEvaluate {
dependencies { dependencies {
compileOnly(intellijPlugin("maven") { include("maven.jar", "maven-server-api.jar") }) compileOnly(intellijPlugin("maven") { include("maven.jar", "maven-server-api.jar") })
compileOnly(intellijPlugin("gradle") { include("gradle-tooling-api-*.jar", "gradle.jar") }) compileOnly(intellijPlugin("gradle") { include("gradle-tooling-api-*.jar", "gradle.jar") })
compileOnly(intellij { include("openapi.jar", "idea.jar") }) compileOnly(intellij { include("openapi.jar", "idea.jar", "extensions.jar", "jdom.jar", "util.jar") })
} }
} }
@@ -3,7 +3,9 @@ description = "Annotation Processor for Kotlin"
apply { plugin("kotlin") } apply { plugin("kotlin") }
configureIntellijPlugin() configureIntellijPlugin {
setExtraDependencies("intellij-core")
}
dependencies { dependencies {
compile(project(":compiler:util")) compile(project(":compiler:util"))
@@ -24,6 +26,9 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compileOnly(intellijCoreJar())
compileOnly(intellij { include("asm-all.jar") })
testCompile(intellijCoreJar())
testCompile(intellij { include("idea.jar", "idea_rt.jar", "openapi.jar") }) testCompile(intellij { include("idea.jar", "idea_rt.jar", "openapi.jar") })
} }
} }
+3 -3
View File
@@ -17,9 +17,9 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellij { include("openapi.jar", "external-system-rt.jar") }) compileOnly(intellij { include("openapi.jar", "external-system-rt.jar", "util.jar") })
compile(intellijPlugin("gradle") { include("gradle-core-*.jar", "gradle-tooling-api-*.jar", "gradle.jar") }) compileOnly(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") }) compileOnly(intellijPlugin("android") { include("android.jar", "android-common.jar", "sdklib.jar", "sdk-common.jar", "sdk-tools.jar") })
} }
} }
+4 -4
View File
@@ -19,11 +19,11 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
compile(intellij { include("util.jar", "guava-*.jar") }) compileOnly(intellij { include("util.jar", "guava-*.jar", "openapi.jar", "idea.jar", "asm-all.jar") })
compile(intellijPlugin("android") { compileOnly(intellijPlugin("android") {
include("android.jar", "android-common.jar", "sdklib.jar", "sdk-common.jar", "sdk-tools.jar", include("android.jar", "android-common.jar", "sdklib.jar", "sdk-common.jar", "sdk-tools.jar",
"repository.jar", "lombok-ast-*.jar") "repository.jar", "lombok-ast-*.jar", "layoutlib-api.jar", "kxml2-*.jar")
}) })
} }
} }
+11
View File
@@ -3,6 +3,10 @@ description = "Kotlin NoArg Compiler Plugin"
apply { plugin("kotlin") } apply { plugin("kotlin") }
configureIntellijPlugin {
setExtraDependencies("intellij-core")
}
dependencies { dependencies {
compileOnly(project(":compiler:frontend")) compileOnly(project(":compiler:frontend"))
compileOnly(project(":compiler:frontend.java")) compileOnly(project(":compiler:frontend.java"))
@@ -21,6 +25,13 @@ dependencies {
testRuntime(ideaSdkDeps("*.jar")) testRuntime(ideaSdkDeps("*.jar"))
} }
afterEvaluate {
dependencies {
compileOnly(intellijCoreJar())
compileOnly(intellij { include("asm-all.jar") })
}
}
sourceSets { sourceSets {
"main" { projectDefault() } "main" { projectDefault() }
"test" { projectDefault() } "test" { projectDefault() }
+3 -3
View File
@@ -23,9 +23,9 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellij { include("openapi.jar", "idea.jar") }) compileOnly(intellij { include("openapi.jar", "idea.jar") })
compile(intellijPlugin("maven") { include("maven.jar") }) compileOnly(intellijPlugin("maven") { include("maven.jar") })
compile(intellijPlugin("gradle") { include("gradle-tooling-api-*.jar", "gradle.jar") }) compileOnly(intellijPlugin("gradle") { include("gradle-tooling-api-*.jar", "gradle.jar") })
} }
} }
@@ -3,6 +3,10 @@ description = "Kotlin SamWithReceiver Compiler Plugin"
apply { plugin("kotlin") } apply { plugin("kotlin") }
configureIntellijPlugin {
setExtraDependencies("intellij-core")
}
dependencies { dependencies {
compileOnly(project(":compiler:frontend")) compileOnly(project(":compiler:frontend"))
compileOnly(project(":compiler:frontend.java")) compileOnly(project(":compiler:frontend.java"))
@@ -19,6 +23,12 @@ dependencies {
testRuntime(ideaSdkDeps("*.jar")) testRuntime(ideaSdkDeps("*.jar"))
} }
afterEvaluate {
dependencies {
compileOnly(intellijCoreJar())
}
}
sourceSets { sourceSets {
"main" { projectDefault() } "main" { projectDefault() }
"test" { projectDefault() } "test" { projectDefault() }
@@ -3,7 +3,10 @@ description = "Kotlin SourceSections Compiler Plugin"
apply { plugin("kotlin") } apply { plugin("kotlin") }
configureIntellijPlugin() configureIntellijPlugin {
setExtraDependencies("intellij-core")
}
dependencies { dependencies {
compileOnly(project(":compiler:frontend")) compileOnly(project(":compiler:frontend"))
@@ -25,6 +28,8 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compileOnly(intellijCoreJar())
testCompile(intellijCoreJar())
testCompile(intellij { include("idea.jar", "idea_rt.jar", "openapi.jar") }) testCompile(intellij { include("idea.jar", "idea_rt.jar", "openapi.jar") })
} }
} }
@@ -1,6 +1,8 @@
apply { plugin("kotlin") } apply { plugin("kotlin") }
configureIntellijPlugin()
dependencies { dependencies {
compile(projectDist(":kotlin-stdlib")) compile(projectDist(":kotlin-stdlib"))
compile(project(":core:util.runtime")) compile(project(":core:util.runtime"))
@@ -10,6 +12,12 @@ dependencies {
compile(project(":plugins:uast-kotlin")) compile(project(":plugins:uast-kotlin"))
} }
afterEvaluate {
dependencies {
compileOnly(intellij { include("openapi.jar", "util.jar") })
}
}
sourceSets { sourceSets {
"main" { projectDefault() } "main" { projectDefault() }
"test" {} "test" {}
+5 -4
View File
@@ -32,12 +32,13 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compileOnly(intellij { include("openapi.jar", "idea.jar") }) compileOnly(intellij { include("openapi.jar", "idea.jar", "util.jar", "extensions.jar", "asm-all.jar") })
compileOnly(intellijPlugins("junit", "gradle", "Groovy", "android",
"maven", // TODO: check whether it works in AS (it was marked optional before
"properties"))
testCompileOnly(intellij { include("idea_rt.jar") }) testCompileOnly(intellij { include("idea_rt.jar") })
testCompile(intellijPlugins("junit", "gradle", "Groovy", "android", "maven", "properties"))
testRuntime(intellij()) testRuntime(intellij())
compile(intellijPlugins("junit", "gradle", "Groovy", "android",
"maven", // TODO: check whether it works in AS (it was marked optional before
"properties"))
} }
} }
+2 -2
View File
@@ -13,8 +13,8 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
compile(intellij { include("asm-all.jar") }) compileOnly(intellij { include("asm-all.jar") })
} }
} }
+33 -19
View File
@@ -101,26 +101,40 @@ dependencies {
afterEvaluate { afterEvaluate {
dependencies { dependencies {
compile(intellijCoreJar()) compileOnly(intellijCoreJar())
compile(intellij { include("annotations.jar", "trove4j.jar", "openapi.jar", "idea.jar", "util.jar", "jdom.jar") }) compileOnly(intellij { include("annotations.jar", "trove4j.jar", "openapi.jar", "idea.jar", "util.jar", "jdom.jar") })
compile(intellijPlugin("CSS")) compileOnly(intellijPlugin("CSS"))
compile(intellijPlugin("DatabaseTools")) compileOnly(intellijPlugin("DatabaseTools"))
compile(intellijPlugin("JavaEE")) compileOnly(intellijPlugin("JavaEE"))
compile(intellijPlugin("jsp")) compileOnly(intellijPlugin("jsp"))
compile(intellijPlugin("PersistenceSupport")) compileOnly(intellijPlugin("PersistenceSupport"))
compile(intellijPlugin("Spring")) compileOnly(intellijPlugin("Spring"))
compile(intellijPlugin("properties")) compileOnly(intellijPlugin("properties"))
compile(intellijPlugin("java-i18n")) compileOnly(intellijPlugin("java-i18n"))
compile(intellijPlugin("gradle")) compileOnly(intellijPlugin("gradle"))
compile(intellijPlugin("Groovy")) compileOnly(intellijPlugin("Groovy"))
compile(intellijPlugin("junit")) compileOnly(intellijPlugin("junit"))
compile(intellijPlugin("uml")) compileOnly(intellijPlugin("uml"))
compile(intellijPlugin("JavaScriptLanguage")) compileOnly(intellijPlugin("JavaScriptLanguage"))
compile(intellijPlugin("JavaScriptDebugger")) compileOnly(intellijPlugin("JavaScriptDebugger"))
compile(intellijPlugin("NodeJS")) compileOnly(intellijPlugin("NodeJS"))
testCompile(intellij { include("gson-*.jar") }) testCompileOnly(intellij { include("gson-*.jar", "annotations.jar", "trove4j.jar", "openapi.jar", "idea.jar", "util.jar", "jdom.jar") })
testRuntime(intellij()) testRuntime(intellij())
testRuntime(intellijPlugin("properties")) testCompile(intellijPlugin("CSS"))
testCompile(intellijPlugin("DatabaseTools"))
testCompile(intellijPlugin("JavaEE"))
testCompile(intellijPlugin("jsp"))
testCompile(intellijPlugin("PersistenceSupport"))
testCompile(intellijPlugin("Spring"))
testCompile(intellijPlugin("properties"))
testCompile(intellijPlugin("java-i18n"))
testCompile(intellijPlugin("gradle"))
testCompile(intellijPlugin("Groovy"))
testCompile(intellijPlugin("junit"))
testCompile(intellijPlugin("uml"))
testCompile(intellijPlugin("JavaScriptLanguage"))
testCompile(intellijPlugin("JavaScriptDebugger"))
testCompile(intellijPlugin("NodeJS"))
testRuntime(intellijPlugin("coverage")) testRuntime(intellijPlugin("coverage"))
testRuntime(intellijPlugin("maven")) testRuntime(intellijPlugin("maven"))
testRuntime(intellijPlugin("android")) testRuntime(intellijPlugin("android"))