Build: Cleanup old platforms from the build

This commit is contained in:
Nikolay Krasko
2021-06-07 20:14:33 +03:00
committed by teamcityserver
parent a4005cef19
commit 32f811e0ec
28 changed files with 43 additions and 174 deletions
-3
View File
@@ -23,9 +23,6 @@ dependencies {
testCompile(commonDep("junit:junit")) testCompile(commonDep("junit:junit"))
testCompile(protobufFull()) testCompile(protobufFull())
testCompile(kotlinStdlib()) testCompile(kotlinStdlib())
Platform[193].orLower {
testCompileOnly(intellijDep()) { includeJars("openapi", rootProject = rootProject) }
}
testRuntime(project(":kotlin-reflect")) testRuntime(project(":kotlin-reflect"))
} }
+1 -5
View File
@@ -201,15 +201,11 @@ extra["intellijSeparateSdks"] = intellijSeparateSdks
extra["IntellijCoreDependencies"] = extra["IntellijCoreDependencies"] =
listOf( listOf(
when { "asm-all-8.0.1",
Platform[202].orHigher() -> "asm-all-8.0.1"
else -> "asm-all-7.0.1"
},
"guava", "guava",
"jdom", "jdom",
"jna", "jna",
"log4j", "log4j",
if (Platform[201].orHigher()) null else "picocontainer",
"snappy-in-java", "snappy-in-java",
"streamex", "streamex",
"trove4j" "trove4j"
@@ -26,7 +26,7 @@ fun CompatibilityPredicate.or(other: CompatibilityPredicate): CompatibilityPredi
} }
enum class Platform : CompatibilityPredicate { enum class Platform : CompatibilityPredicate {
P183, P191, P192, P193, P201, P202, P203; P202, P203;
val version: Int = name.drop(1).toInt() val version: Int = name.drop(1).toInt()
@@ -43,17 +43,9 @@ enum class Platform : CompatibilityPredicate {
} }
enum class Ide(val platform: Platform) : CompatibilityPredicate { enum class Ide(val platform: Platform) : CompatibilityPredicate {
IJ191(Platform.P191),
IJ192(Platform.P192),
IJ193(Platform.P193),
IJ201(Platform.P201),
IJ202(Platform.P202), IJ202(Platform.P202),
IJ203(Platform.P203), IJ203(Platform.P203),
AS35(Platform.P183),
AS36(Platform.P192),
AS40(Platform.P193),
AS41(Platform.P201),
AS42(Platform.P202); AS42(Platform.P202);
val kind = Kind.values().first { it.shortName == name.take(2) } val kind = Kind.values().first { it.shortName == name.take(2) }
@@ -181,9 +181,7 @@ fun Project.runIdeTask(name: String, ideaPluginDir: File, ideaSandboxDir: File,
"-Dplugin.path=${ideaPluginDir.absolutePath}" "-Dplugin.path=${ideaPluginDir.absolutePath}"
) )
if (Platform[201].orHigher()) { jvmArgs("-Didea.platform.prefix=Idea")
jvmArgs("-Didea.platform.prefix=Idea")
}
if (rootProject.findProperty("versions.androidStudioRelease") != null) { if (rootProject.findProperty("versions.androidStudioRelease") != null) {
jvmArgs("-Didea.platform.prefix=AndroidStudio") jvmArgs("-Didea.platform.prefix=AndroidStudio")
+1 -3
View File
@@ -194,9 +194,7 @@ fun Project.projectTest(
systemProperty("kotlin.ni", if (project.rootProject.hasProperty("newInferenceTests")) "true" else "false") systemProperty("kotlin.ni", if (project.rootProject.hasProperty("newInferenceTests")) "true" else "false")
systemProperty("org.jetbrains.kotlin.skip.muted.tests", if (project.rootProject.hasProperty("skipMutedTests")) "true" else "false") systemProperty("org.jetbrains.kotlin.skip.muted.tests", if (project.rootProject.hasProperty("skipMutedTests")) "true" else "false")
if (Platform[202].orHigher()) { systemProperty("idea.ignore.disabled.plugins", "true")
systemProperty("idea.ignore.disabled.plugins", "true")
}
var subProjectTempRoot: Path? = null var subProjectTempRoot: Path? = null
val projectName = project.name val projectName = project.name
+2 -10
View File
@@ -27,17 +27,9 @@ dependencies {
testCompile(projectTests(":jps-plugin")) testCompile(projectTests(":jps-plugin"))
testCompile(commonDep("junit:junit")) testCompile(commonDep("junit:junit"))
Platform[193].orLower {
testCompile(intellijDep()) { includeJars("openapi", rootProject = rootProject) }
}
testCompile(intellijDep()) { includeJars("util", "idea", "idea_rt", rootProject = rootProject) } testCompile(intellijDep()) { includeJars("util", "idea", "idea_rt", rootProject = rootProject) }
Platform[202].orHigher { testCompile(intellijDep()) { includeJars("groovy", rootProject = rootProject) }
testCompile(intellijDep()) { includeJars("groovy", rootProject = rootProject) }
}
Platform[201].orLower {
testCompile(intellijDep()) { includeJars("groovy-all", rootProject = rootProject) }
}
testCompile(intellijPluginDep("java")) { includeJars("jps-builders") } testCompile(intellijPluginDep("java")) { includeJars("jps-builders") }
testCompile(jpsStandalone()) { includeJars("jps-model") } testCompile(jpsStandalone()) { includeJars("jps-model") }
testCompile(jpsBuildTest()) testCompile(jpsBuildTest())
@@ -15,10 +15,6 @@ repositories {
} }
dependencies { dependencies {
Platform[193].orLower {
testCompileOnly(intellijDep()) { includeJars("openapi", rootProject = rootProject) }
}
testCompileOnly(intellijDep()) { testCompileOnly(intellijDep()) {
includeJars("extensions", "idea_rt", "util", "asm-all", "platform-util-ex", "jna", rootProject = rootProject) includeJars("extensions", "idea_rt", "util", "asm-all", "platform-util-ex", "jna", rootProject = rootProject)
} }
@@ -17,9 +17,6 @@ dependencies {
implementation(project(":compiler:fir:cones")) implementation(project(":compiler:fir:cones"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) } compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) }
Platform[193].orLower {
compileOnly(intellijDep()) { includeJars("picocontainer", rootProject = rootProject) }
}
compileOnly(intellijDep()) { compileOnly(intellijDep()) {
includeJars("trove4j", rootProject = rootProject) includeJars("trove4j", rootProject = rootProject)
} }
@@ -26,12 +26,7 @@ dependencies {
testCompile(intellijDep()) { includeJars("log4j", "jdom") } testCompile(intellijDep()) { includeJars("log4j", "jdom") }
testRuntime(project(":kotlin-reflect")) testRuntime(project(":kotlin-reflect"))
testRuntime(project(":core:descriptors.runtime")) testRuntime(project(":core:descriptors.runtime"))
testRuntime(intellijDep()) { includeJars("lz4-java", rootProject = rootProject) }
if (Platform.P192.orHigher()) {
testRuntime(intellijDep()) { includeJars("lz4-java", rootProject = rootProject) }
} else {
testRuntime(intellijDep()) { includeJars("lz4-1.3.0") }
}
} }
sourceSets { sourceSets {
+6 -11
View File
@@ -57,17 +57,12 @@ dependencies {
testCompileOnly(project(":kotlin-reflect-api")) testCompileOnly(project(":kotlin-reflect-api"))
testCompileOnly(toolsJar()) testCompileOnly(toolsJar())
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") } testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") }
Platform[193].orLower { testCompile(intellijDep()) {
testCompile(intellijDep()) { includeJars("openapi", "picocontainer", rootProject = rootProject) } includeJars(
} "testFramework",
Platform[201].orHigher { "testFramework.core",
testCompile(intellijDep()) { rootProject = rootProject
includeJars( )
"testFramework",
"testFramework.core",
rootProject = rootProject
)
}
} }
Platform[202] { Platform[202] {
testCompile(intellijDep()) { includeJars("intellij-deps-fastutil-8.3.1-1") } testCompile(intellijDep()) { includeJars("intellij-deps-fastutil-8.3.1-1") }
+2 -2
View File
@@ -21,9 +21,9 @@ fun JUnit.configureForKotlin(xmx: String = "1600m") {
"-XX:+UseCodeCacheFlushing", "-XX:+UseCodeCacheFlushing",
"-XX:ReservedCodeCacheSize=128m", "-XX:ReservedCodeCacheSize=128m",
"-Djna.nosys=true", "-Djna.nosys=true",
if (Platform[201].orHigher()) "-Didea.platform.prefix=Idea" else null, "-Didea.platform.prefix=Idea",
"-Didea.is.unit.test=true", "-Didea.is.unit.test=true",
if (Platform[202].orHigher()) "-Didea.ignore.disabled.plugins=true" else null, "-Didea.ignore.disabled.plugins=true",
"-Didea.home.path=$ideaSdkPath", "-Didea.home.path=$ideaSdkPath",
"-Djps.kotlin.home=${ideaPluginDir.absolutePath}", "-Djps.kotlin.home=${ideaPluginDir.absolutePath}",
"-Dkotlin.ni=" + if (rootProject.hasProperty("newInferenceTests")) "true" else "false", "-Dkotlin.ni=" + if (rootProject.hasProperty("newInferenceTests")) "true" else "false",
+2 -8
View File
@@ -174,10 +174,7 @@ dependencies {
if (Ide.IJ()) { if (Ide.IJ()) {
testCompileOnly(intellijPluginDep("maven")) testCompileOnly(intellijPluginDep("maven"))
testRuntime(intellijPluginDep("maven")) testRuntime(intellijPluginDep("maven"))
testRuntime(intellijPluginDep("repository-search"))
if (Ide.IJ201.orHigher()) {
testRuntime(intellijPluginDep("repository-search"))
}
} }
testRuntime(intellijPluginDep("junit")) testRuntime(intellijPluginDep("junit"))
@@ -192,14 +189,11 @@ dependencies {
testRuntime(project(":idea:idea-fir")) testRuntime(project(":idea:idea-fir"))
} }
if (Ide.AS36.orHigher()) { if (Ide.AS()) {
testRuntime(intellijPluginDep("android-layoutlib")) testRuntime(intellijPluginDep("android-layoutlib"))
testRuntime(intellijPluginDep("git4idea")) testRuntime(intellijPluginDep("git4idea"))
testRuntime(intellijPluginDep("google-cloud-tools-core-as")) testRuntime(intellijPluginDep("google-cloud-tools-core-as"))
testRuntime(intellijPluginDep("google-login-as")) testRuntime(intellijPluginDep("google-login-as"))
}
if (Ide.AS41.orHigher()) {
testRuntime(intellijPluginDep("platform-images")) testRuntime(intellijPluginDep("platform-images"))
} }
} }
+2 -8
View File
@@ -65,19 +65,13 @@ dependencies {
Ide.IJ { Ide.IJ {
testRuntime(intellijPluginDep("maven")) testRuntime(intellijPluginDep("maven"))
testRuntime(intellijPluginDep("repository-search"))
if (Ide.IJ201.orHigher()) {
testRuntime(intellijPluginDep("repository-search"))
}
} }
testRuntime(intellijPluginDep("testng")) testRuntime(intellijPluginDep("testng"))
if (Ide.AS36.orHigher()) { Ide.AS {
testRuntime(intellijPluginDep("android-layoutlib")) testRuntime(intellijPluginDep("android-layoutlib"))
}
if (Ide.AS41.orHigher()) {
testRuntime(intellijPluginDep("platform-images")) testRuntime(intellijPluginDep("platform-images"))
} }
} }
@@ -13,13 +13,7 @@ dependencies {
} }
sourceSets { sourceSets {
if (Ide.IJ() && Platform[183].orLower()) { "main" {}
"main" {
projectDefault()
}
} else {
"main" {}
}
"test" {} "test" {}
} }
+5 -15
View File
@@ -28,9 +28,7 @@ dependencies {
compileOnly(intellijDep()) compileOnly(intellijDep())
testCompile(intellijPluginDep("gradle")) testCompile(intellijPluginDep("gradle"))
Platform[193].orHigher { testCompile(intellijPluginDep("gradle-java"))
testCompile(intellijPluginDep("gradle-java"))
}
testCompileOnly(intellijPluginDep("Groovy")) testCompileOnly(intellijPluginDep("Groovy"))
testCompileOnly(intellijDep()) testCompileOnly(intellijDep())
@@ -52,9 +50,7 @@ dependencies {
testRuntime(project(":kotlinx-serialization-ide-plugin")) testRuntime(project(":kotlinx-serialization-ide-plugin"))
testRuntime(project(":plugins:lombok:lombok-ide-plugin")) testRuntime(project(":plugins:lombok:lombok-ide-plugin"))
// TODO: the order of the plugins matters here, consider avoiding order-dependency // TODO: the order of the plugins matters here, consider avoiding order-dependency
Platform[192].orHigher { testRuntime(intellijPluginDep("java"))
testRuntime(intellijPluginDep("java"))
}
testRuntime(intellijPluginDep("junit")) testRuntime(intellijPluginDep("junit"))
testRuntime(intellijPluginDep("testng")) testRuntime(intellijPluginDep("testng"))
testRuntime(intellijPluginDep("properties")) testRuntime(intellijPluginDep("properties"))
@@ -64,19 +60,13 @@ dependencies {
testRuntime(intellijPluginDep("coverage")) testRuntime(intellijPluginDep("coverage"))
if (Ide.IJ()) { if (Ide.IJ()) {
testRuntime(intellijPluginDep("maven")) testRuntime(intellijPluginDep("maven"))
testRuntime(intellijPluginDep("repository-search"))
if (Ide.IJ201.orHigher()) {
testRuntime(intellijPluginDep("repository-search"))
}
} }
testRuntime(intellijPluginDep("android")) testRuntime(intellijPluginDep("android"))
testRuntime(intellijPluginDep("smali")) testRuntime(intellijPluginDep("smali"))
if (Ide.AS36.orHigher()) { if (Ide.AS()) {
testRuntime(intellijPluginDep("android-layoutlib")) testRuntime(intellijPluginDep("android-layoutlib"))
}
if (Ide.AS41.orHigher()) {
testRuntime(intellijPluginDep("platform-images")) testRuntime(intellijPluginDep("platform-images"))
} }
} }
@@ -95,7 +85,7 @@ projectTest(parallel = true) {
configureFormInstrumentation() configureFormInstrumentation()
if (Ide.AS41.orHigher()) { if (Ide.AS()) {
getOrCreateTask<Test>("test") { getOrCreateTask<Test>("test") {
setExcludes(listOf("**")) setExcludes(listOf("**"))
} }
+6 -11
View File
@@ -71,19 +71,14 @@ dependencies {
testRuntime(intellijPluginDep("coverage")) testRuntime(intellijPluginDep("coverage"))
if (Ide.IJ()) { if (Ide.IJ()) {
testRuntime(intellijPluginDep("maven")) testRuntime(intellijPluginDep("maven"))
testRuntime(intellijPluginDep("repository-search"))
if (Ide.IJ201.orHigher()) {
testRuntime(intellijPluginDep("repository-search"))
}
} }
testRuntime(intellijPluginDep("android")) testRuntime(intellijPluginDep("android"))
testRuntime(intellijPluginDep("smali")) testRuntime(intellijPluginDep("smali"))
if (Ide.AS41.orHigher() || Ide.IJ202.orHigher()) { testRuntime(intellijPluginDep("platform-images"))
testRuntime(intellijPluginDep("platform-images")) if (Ide.AS()) {
}
if (Ide.AS36.orHigher()) {
testRuntime(intellijPluginDep("android-layoutlib")) testRuntime(intellijPluginDep("android-layoutlib"))
} }
} }
@@ -101,7 +96,7 @@ testsJar()
projectTest(parallel = false) { projectTest(parallel = false) {
dependsOn(":dist") dependsOn(":dist")
dependsOnKotlinGradlePluginInstall() dependsOnKotlinGradlePluginInstall()
if (!Ide.AS41.orHigher()) { if (Ide.IJ()) {
systemProperty("android.studio.sdk.manager.disabled", "true") systemProperty("android.studio.sdk.manager.disabled", "true")
} }
workingDir = rootDir workingDir = rootDir
@@ -124,7 +119,7 @@ projectTest(parallel = false) {
configureFormInstrumentation() configureFormInstrumentation()
if (Ide.AS41.orHigher()) { if (Ide.AS()) {
getOrCreateTask<Test>("test") { getOrCreateTask<Test>("test") {
setExcludes(listOf("**")) setExcludes(listOf("**"))
} }
+5 -15
View File
@@ -26,9 +26,7 @@ dependencies {
excludeInAndroidStudio(rootProject) { compileOnly(intellijPluginDep("maven")) } excludeInAndroidStudio(rootProject) { compileOnly(intellijPluginDep("maven")) }
excludeInAndroidStudio(rootProject) { excludeInAndroidStudio(rootProject) {
Platform[202].orHigher { compileOnly(intellijPluginDep("maven-model"))
compileOnly(intellijPluginDep("maven-model"))
}
} }
testCompile(projectTests(":idea")) testCompile(projectTests(":idea"))
@@ -40,14 +38,9 @@ dependencies {
testCompileOnly(intellijPluginDep("maven")) testCompileOnly(intellijPluginDep("maven"))
testRuntime(intellijPluginDep("maven")) testRuntime(intellijPluginDep("maven"))
Platform[202].orHigher { testCompileOnly(intellijPluginDep("maven-model"))
testCompileOnly(intellijPluginDep("maven-model")) testRuntime(intellijPluginDep("maven-model"))
testRuntime(intellijPluginDep("maven-model")) testRuntime(intellijPluginDep("repository-search"))
}
if (Ide.IJ201.orHigher()) {
testRuntime(intellijPluginDep("repository-search"))
}
} }
testCompile(project(":idea:idea-native")) { isTransitive = false } testCompile(project(":idea:idea-native")) { isTransitive = false }
@@ -78,11 +71,8 @@ dependencies {
testRuntime(intellijPluginDep("android")) testRuntime(intellijPluginDep("android"))
testRuntime(intellijPluginDep("smali")) testRuntime(intellijPluginDep("smali"))
if (Ide.AS36.orHigher()) { if (Ide.AS()) {
testRuntime(intellijPluginDep("android-layoutlib")) testRuntime(intellijPluginDep("android-layoutlib"))
}
if (Ide.AS41.orHigher()) {
testRuntime(intellijPluginDep("platform-images")) testRuntime(intellijPluginDep("platform-images"))
} }
} }
@@ -47,11 +47,9 @@ dependencies {
compileOnly(intellijPluginDep("maven")) compileOnly(intellijPluginDep("maven"))
} }
Platform[192].orHigher { compileOnly(intellijPluginDep("java"))
compileOnly(intellijPluginDep("java")) testCompileOnly(intellijPluginDep("java"))
testCompileOnly(intellijPluginDep("java")) testRuntimeOnly(intellijPluginDep("java"))
testRuntimeOnly(intellijPluginDep("java"))
}
} }
sourceSets { sourceSets {
+2 -8
View File
@@ -50,10 +50,7 @@ dependencies {
testRuntime(intellijPluginDep("coverage")) testRuntime(intellijPluginDep("coverage"))
Ide.IJ { Ide.IJ {
testRuntime(intellijPluginDep("maven")) testRuntime(intellijPluginDep("maven"))
testRuntime(intellijPluginDep("repository-search"))
if (Ide.IJ201.orHigher()) {
testRuntime(intellijPluginDep("repository-search"))
}
} }
testRuntime(intellijPluginDep("android")) testRuntime(intellijPluginDep("android"))
testRuntime(intellijPluginDep("smali")) testRuntime(intellijPluginDep("smali"))
@@ -67,11 +64,8 @@ dependencies {
testRuntime(intellijPluginDep("java-decompiler")) testRuntime(intellijPluginDep("java-decompiler"))
testRuntime(project(":plugins:kapt3-idea")) { isTransitive = false } testRuntime(project(":plugins:kapt3-idea")) { isTransitive = false }
if (Ide.AS36.orHigher()) { Ide.AS {
testRuntime(intellijPluginDep("android-layoutlib")) testRuntime(intellijPluginDep("android-layoutlib"))
}
if (Ide.AS41.orHigher()) {
testRuntime(intellijPluginDep("platform-images")) testRuntime(intellijPluginDep("platform-images"))
} }
} }
-3
View File
@@ -18,9 +18,6 @@ dependencies {
compile(project(":js:js.frontend")) compile(project(":js:js.frontend"))
compile(projectRuntimeJar(":kotlin-preloader")) compile(projectRuntimeJar(":kotlin-preloader"))
compile(project(":idea:idea-jps-common")) compile(project(":idea:idea-jps-common"))
Platform[193].orLower {
compileOnly(intellijDep()) { includeJars("openapi", rootProject = rootProject) }
}
compileOnly(intellijDep()) { compileOnly(intellijDep()) {
includeJars("jdom", "trove4j", "jps-model", "platform-api", "util", "asm-all", rootProject = rootProject) includeJars("jdom", "trove4j", "jps-model", "platform-api", "util", "asm-all", rootProject = rootProject)
} }
@@ -16,9 +16,6 @@ dependencies {
testCompile(project(":js:js.engines")) testCompile(project(":js:js.engines"))
testCompile(intellijCoreDep()) { includeJars("intellij-core") } testCompile(intellijCoreDep()) { includeJars("intellij-core") }
testRuntimeOnly(intellijCoreDep()) { includeJars("intellij-core") } testRuntimeOnly(intellijCoreDep()) { includeJars("intellij-core") }
Platform[193].orLower {
testRuntimeOnly(intellijDep()) { includeJars("openapi", "picocontainer", rootProject = rootProject) }
}
testRuntimeOnly(intellijDep()) { testRuntimeOnly(intellijDep()) {
includeJars("idea", "idea_rt", "log4j", "guava", "jdom", rootProject = rootProject) includeJars("idea", "idea_rt", "log4j", "guava", "jdom", rootProject = rootProject)
} }
@@ -13,9 +13,6 @@ val embeddableTestRuntime by configurations.creating {
dependencies { dependencies {
allTestsRuntime(commonDep("junit")) allTestsRuntime(commonDep("junit"))
allTestsRuntime(intellijCoreDep()) { includeJars("intellij-core") } allTestsRuntime(intellijCoreDep()) { includeJars("intellij-core") }
Platform[193].orLower {
allTestsRuntime(intellijDep()) { includeJars("openapi") }
}
allTestsRuntime(intellijDep()) { includeJars("idea", "idea_rt", "log4j", "jna") } allTestsRuntime(intellijDep()) { includeJars("idea", "idea_rt", "log4j", "jna") }
testCompile(project(":kotlin-scripting-jvm-host-unshaded")) testCompile(project(":kotlin-scripting-jvm-host-unshaded"))
testCompile(projectTests(":compiler:tests-common")) testCompile(projectTests(":compiler:tests-common"))
@@ -27,13 +27,7 @@ dependencies {
testRuntime("org.jetbrains.kotlin:jcabi-aether:1.0-dev-3") testRuntime("org.jetbrains.kotlin:jcabi-aether:1.0-dev-3")
testRuntime("org.sonatype.aether:aether-api:1.13.1") testRuntime("org.sonatype.aether:aether-api:1.13.1")
testRuntime("org.apache.maven:maven-core:3.0.3") testRuntime("org.apache.maven:maven-core:3.0.3")
Platform[193].orLower {
compileOnly(intellijDep()) { includeJars("openapi") }
}
compileOnly(intellijDep()) { includeJars("util") } compileOnly(intellijDep()) { includeJars("util") }
Platform[193].orLower {
testCompile(intellijDep()) { includeJars("openapi") }
}
testCompile(intellijDep()) { includeJars("platform-api", "util") } testCompile(intellijDep()) { includeJars("platform-api", "util") }
testCompile(intellijCoreDep()) { includeJars("intellij-core") } testCompile(intellijCoreDep()) { includeJars("intellij-core") }
@@ -58,18 +58,13 @@ dependencies {
testRuntime(intellijPluginDep("java-decompiler")) testRuntime(intellijPluginDep("java-decompiler"))
Ide.IJ { Ide.IJ {
testRuntime(intellijPluginDep("maven")) testRuntime(intellijPluginDep("maven"))
if (Ide.IJ201.orHigher()) { testRuntime(intellijPluginDep("repository-search"))
testRuntime(intellijPluginDep("repository-search"))
}
} }
testRuntime(intellijPluginDep("android")) testRuntime(intellijPluginDep("android"))
testRuntime(intellijPluginDep("smali")) testRuntime(intellijPluginDep("smali"))
if (Ide.AS36.orHigher()) { Ide.AS {
testRuntime(intellijPluginDep("android-layoutlib")) testRuntime(intellijPluginDep("android-layoutlib"))
}
if (Ide.AS41.orHigher()) {
testRuntime(intellijPluginDep("platform-images")) testRuntime(intellijPluginDep("platform-images"))
} }
} }
@@ -10,10 +10,6 @@ dependencies {
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") } testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") }
testRuntime(intellijDep()) testRuntime(intellijDep())
testCompileOnly(intellijDep()) { includeJars("idea", "idea_rt") } testCompileOnly(intellijDep()) { includeJars("idea", "idea_rt") }
Platform[193].orLower {
testCompileOnly(intellijDep()) { includeJars("openapi", rootProject = rootProject) }
}
testCompileOnly(intellijDep()) { includeJars("platform-api", "platform-impl") } testCompileOnly(intellijDep()) { includeJars("platform-api", "platform-impl") }
testRuntime(intellijPluginDep("java")) testRuntime(intellijPluginDep("java"))
@@ -18,11 +18,6 @@ dependencies {
compile(intellijDep()) compile(intellijDep())
compile(intellijPluginDep("gradle")) compile(intellijPluginDep("gradle"))
Platform[191].orLower {
compileOnly(intellijDep()) { includeJars("java-api", "java-impl") }
}
compileOnly(intellijPluginDep("java")) { includeJars("java-api", "java-impl") } compileOnly(intellijPluginDep("java")) { includeJars("java-api", "java-impl") }
testCompile(projectTests(":idea")) testCompile(projectTests(":idea"))
@@ -18,9 +18,6 @@ dependencies {
compileOnly(project(":idea")) compileOnly(project(":idea"))
compileOnly(project(":idea:idea-jvm")) compileOnly(project(":idea:idea-jvm"))
Platform[193].orLower {
compileOnly(intellijDep()) { includeJars("openapi") }
}
compileOnly(intellijDep()) { includeJars("platform-api", "extensions", "util") } compileOnly(intellijDep()) { includeJars("platform-api", "extensions", "util") }
compileOnly(intellijDep("gradle")) compileOnly(intellijDep("gradle"))
compileOnly(project(":idea:kotlin-gradle-tooling")) compileOnly(project(":idea:kotlin-gradle-tooling"))
-4
View File
@@ -29,10 +29,6 @@ dependencies {
testCompileOnly(intellijDep()) testCompileOnly(intellijDep())
if (Platform.P191.orLower()) {
compileOnly(intellijDep()) { includeJars("java-api", "java-impl") }
}
compileOnly(intellijDep()) { includeJars("platform-impl") } compileOnly(intellijDep()) { includeJars("platform-impl") }
compileOnly(intellijPluginDep("java")) { includeJars("java-api", "java-impl") } compileOnly(intellijPluginDep("java")) { includeJars("java-api", "java-impl") }
testCompileOnly(intellijPluginDep("java")) { includeJars("java-api", "java-impl") } testCompileOnly(intellijPluginDep("java")) { includeJars("java-api", "java-impl") }