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(protobufFull())
testCompile(kotlinStdlib())
Platform[193].orLower {
testCompileOnly(intellijDep()) { includeJars("openapi", rootProject = rootProject) }
}
testRuntime(project(":kotlin-reflect"))
}
+1 -5
View File
@@ -201,15 +201,11 @@ extra["intellijSeparateSdks"] = intellijSeparateSdks
extra["IntellijCoreDependencies"] =
listOf(
when {
Platform[202].orHigher() -> "asm-all-8.0.1"
else -> "asm-all-7.0.1"
},
"asm-all-8.0.1",
"guava",
"jdom",
"jna",
"log4j",
if (Platform[201].orHigher()) null else "picocontainer",
"snappy-in-java",
"streamex",
"trove4j"
@@ -26,7 +26,7 @@ fun CompatibilityPredicate.or(other: CompatibilityPredicate): CompatibilityPredi
}
enum class Platform : CompatibilityPredicate {
P183, P191, P192, P193, P201, P202, P203;
P202, P203;
val version: Int = name.drop(1).toInt()
@@ -43,17 +43,9 @@ enum class Platform : CompatibilityPredicate {
}
enum class Ide(val platform: Platform) : CompatibilityPredicate {
IJ191(Platform.P191),
IJ192(Platform.P192),
IJ193(Platform.P193),
IJ201(Platform.P201),
IJ202(Platform.P202),
IJ203(Platform.P203),
AS35(Platform.P183),
AS36(Platform.P192),
AS40(Platform.P193),
AS41(Platform.P201),
AS42(Platform.P202);
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}"
)
if (Platform[201].orHigher()) {
jvmArgs("-Didea.platform.prefix=Idea")
}
jvmArgs("-Didea.platform.prefix=Idea")
if (rootProject.findProperty("versions.androidStudioRelease") != null) {
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("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
val projectName = project.name
+2 -10
View File
@@ -27,17 +27,9 @@ dependencies {
testCompile(projectTests(":jps-plugin"))
testCompile(commonDep("junit:junit"))
Platform[193].orLower {
testCompile(intellijDep()) { includeJars("openapi", rootProject = rootProject) }
}
testCompile(intellijDep()) { includeJars("util", "idea", "idea_rt", rootProject = rootProject) }
Platform[202].orHigher {
testCompile(intellijDep()) { includeJars("groovy", rootProject = rootProject) }
}
Platform[201].orLower {
testCompile(intellijDep()) { includeJars("groovy-all", rootProject = rootProject) }
}
testCompile(intellijDep()) { includeJars("groovy", rootProject = rootProject) }
testCompile(intellijPluginDep("java")) { includeJars("jps-builders") }
testCompile(jpsStandalone()) { includeJars("jps-model") }
testCompile(jpsBuildTest())
@@ -15,10 +15,6 @@ repositories {
}
dependencies {
Platform[193].orLower {
testCompileOnly(intellijDep()) { includeJars("openapi", rootProject = rootProject) }
}
testCompileOnly(intellijDep()) {
includeJars("extensions", "idea_rt", "util", "asm-all", "platform-util-ex", "jna", rootProject = rootProject)
}
@@ -17,9 +17,6 @@ dependencies {
implementation(project(":compiler:fir:cones"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) }
Platform[193].orLower {
compileOnly(intellijDep()) { includeJars("picocontainer", rootProject = rootProject) }
}
compileOnly(intellijDep()) {
includeJars("trove4j", rootProject = rootProject)
}
@@ -26,12 +26,7 @@ dependencies {
testCompile(intellijDep()) { includeJars("log4j", "jdom") }
testRuntime(project(":kotlin-reflect"))
testRuntime(project(":core:descriptors.runtime"))
if (Platform.P192.orHigher()) {
testRuntime(intellijDep()) { includeJars("lz4-java", rootProject = rootProject) }
} else {
testRuntime(intellijDep()) { includeJars("lz4-1.3.0") }
}
testRuntime(intellijDep()) { includeJars("lz4-java", rootProject = rootProject) }
}
sourceSets {
+6 -11
View File
@@ -57,17 +57,12 @@ dependencies {
testCompileOnly(project(":kotlin-reflect-api"))
testCompileOnly(toolsJar())
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") }
Platform[193].orLower {
testCompile(intellijDep()) { includeJars("openapi", "picocontainer", rootProject = rootProject) }
}
Platform[201].orHigher {
testCompile(intellijDep()) {
includeJars(
"testFramework",
"testFramework.core",
rootProject = rootProject
)
}
testCompile(intellijDep()) {
includeJars(
"testFramework",
"testFramework.core",
rootProject = rootProject
)
}
Platform[202] {
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:ReservedCodeCacheSize=128m",
"-Djna.nosys=true",
if (Platform[201].orHigher()) "-Didea.platform.prefix=Idea" else null,
"-Didea.platform.prefix=Idea",
"-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",
"-Djps.kotlin.home=${ideaPluginDir.absolutePath}",
"-Dkotlin.ni=" + if (rootProject.hasProperty("newInferenceTests")) "true" else "false",
+2 -8
View File
@@ -174,10 +174,7 @@ dependencies {
if (Ide.IJ()) {
testCompileOnly(intellijPluginDep("maven"))
testRuntime(intellijPluginDep("maven"))
if (Ide.IJ201.orHigher()) {
testRuntime(intellijPluginDep("repository-search"))
}
testRuntime(intellijPluginDep("repository-search"))
}
testRuntime(intellijPluginDep("junit"))
@@ -192,14 +189,11 @@ dependencies {
testRuntime(project(":idea:idea-fir"))
}
if (Ide.AS36.orHigher()) {
if (Ide.AS()) {
testRuntime(intellijPluginDep("android-layoutlib"))
testRuntime(intellijPluginDep("git4idea"))
testRuntime(intellijPluginDep("google-cloud-tools-core-as"))
testRuntime(intellijPluginDep("google-login-as"))
}
if (Ide.AS41.orHigher()) {
testRuntime(intellijPluginDep("platform-images"))
}
}
+2 -8
View File
@@ -65,19 +65,13 @@ dependencies {
Ide.IJ {
testRuntime(intellijPluginDep("maven"))
if (Ide.IJ201.orHigher()) {
testRuntime(intellijPluginDep("repository-search"))
}
testRuntime(intellijPluginDep("repository-search"))
}
testRuntime(intellijPluginDep("testng"))
if (Ide.AS36.orHigher()) {
Ide.AS {
testRuntime(intellijPluginDep("android-layoutlib"))
}
if (Ide.AS41.orHigher()) {
testRuntime(intellijPluginDep("platform-images"))
}
}
@@ -13,13 +13,7 @@ dependencies {
}
sourceSets {
if (Ide.IJ() && Platform[183].orLower()) {
"main" {
projectDefault()
}
} else {
"main" {}
}
"main" {}
"test" {}
}
+5 -15
View File
@@ -28,9 +28,7 @@ dependencies {
compileOnly(intellijDep())
testCompile(intellijPluginDep("gradle"))
Platform[193].orHigher {
testCompile(intellijPluginDep("gradle-java"))
}
testCompile(intellijPluginDep("gradle-java"))
testCompileOnly(intellijPluginDep("Groovy"))
testCompileOnly(intellijDep())
@@ -52,9 +50,7 @@ dependencies {
testRuntime(project(":kotlinx-serialization-ide-plugin"))
testRuntime(project(":plugins:lombok:lombok-ide-plugin"))
// 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("testng"))
testRuntime(intellijPluginDep("properties"))
@@ -64,19 +60,13 @@ dependencies {
testRuntime(intellijPluginDep("coverage"))
if (Ide.IJ()) {
testRuntime(intellijPluginDep("maven"))
if (Ide.IJ201.orHigher()) {
testRuntime(intellijPluginDep("repository-search"))
}
testRuntime(intellijPluginDep("repository-search"))
}
testRuntime(intellijPluginDep("android"))
testRuntime(intellijPluginDep("smali"))
if (Ide.AS36.orHigher()) {
if (Ide.AS()) {
testRuntime(intellijPluginDep("android-layoutlib"))
}
if (Ide.AS41.orHigher()) {
testRuntime(intellijPluginDep("platform-images"))
}
}
@@ -95,7 +85,7 @@ projectTest(parallel = true) {
configureFormInstrumentation()
if (Ide.AS41.orHigher()) {
if (Ide.AS()) {
getOrCreateTask<Test>("test") {
setExcludes(listOf("**"))
}
+6 -11
View File
@@ -71,19 +71,14 @@ dependencies {
testRuntime(intellijPluginDep("coverage"))
if (Ide.IJ()) {
testRuntime(intellijPluginDep("maven"))
if (Ide.IJ201.orHigher()) {
testRuntime(intellijPluginDep("repository-search"))
}
testRuntime(intellijPluginDep("repository-search"))
}
testRuntime(intellijPluginDep("android"))
testRuntime(intellijPluginDep("smali"))
if (Ide.AS41.orHigher() || Ide.IJ202.orHigher()) {
testRuntime(intellijPluginDep("platform-images"))
}
if (Ide.AS36.orHigher()) {
testRuntime(intellijPluginDep("platform-images"))
if (Ide.AS()) {
testRuntime(intellijPluginDep("android-layoutlib"))
}
}
@@ -101,7 +96,7 @@ testsJar()
projectTest(parallel = false) {
dependsOn(":dist")
dependsOnKotlinGradlePluginInstall()
if (!Ide.AS41.orHigher()) {
if (Ide.IJ()) {
systemProperty("android.studio.sdk.manager.disabled", "true")
}
workingDir = rootDir
@@ -124,7 +119,7 @@ projectTest(parallel = false) {
configureFormInstrumentation()
if (Ide.AS41.orHigher()) {
if (Ide.AS()) {
getOrCreateTask<Test>("test") {
setExcludes(listOf("**"))
}
+5 -15
View File
@@ -26,9 +26,7 @@ dependencies {
excludeInAndroidStudio(rootProject) { compileOnly(intellijPluginDep("maven")) }
excludeInAndroidStudio(rootProject) {
Platform[202].orHigher {
compileOnly(intellijPluginDep("maven-model"))
}
compileOnly(intellijPluginDep("maven-model"))
}
testCompile(projectTests(":idea"))
@@ -40,14 +38,9 @@ dependencies {
testCompileOnly(intellijPluginDep("maven"))
testRuntime(intellijPluginDep("maven"))
Platform[202].orHigher {
testCompileOnly(intellijPluginDep("maven-model"))
testRuntime(intellijPluginDep("maven-model"))
}
if (Ide.IJ201.orHigher()) {
testRuntime(intellijPluginDep("repository-search"))
}
testCompileOnly(intellijPluginDep("maven-model"))
testRuntime(intellijPluginDep("maven-model"))
testRuntime(intellijPluginDep("repository-search"))
}
testCompile(project(":idea:idea-native")) { isTransitive = false }
@@ -78,11 +71,8 @@ dependencies {
testRuntime(intellijPluginDep("android"))
testRuntime(intellijPluginDep("smali"))
if (Ide.AS36.orHigher()) {
if (Ide.AS()) {
testRuntime(intellijPluginDep("android-layoutlib"))
}
if (Ide.AS41.orHigher()) {
testRuntime(intellijPluginDep("platform-images"))
}
}
@@ -47,11 +47,9 @@ dependencies {
compileOnly(intellijPluginDep("maven"))
}
Platform[192].orHigher {
compileOnly(intellijPluginDep("java"))
testCompileOnly(intellijPluginDep("java"))
testRuntimeOnly(intellijPluginDep("java"))
}
compileOnly(intellijPluginDep("java"))
testCompileOnly(intellijPluginDep("java"))
testRuntimeOnly(intellijPluginDep("java"))
}
sourceSets {
+2 -8
View File
@@ -50,10 +50,7 @@ dependencies {
testRuntime(intellijPluginDep("coverage"))
Ide.IJ {
testRuntime(intellijPluginDep("maven"))
if (Ide.IJ201.orHigher()) {
testRuntime(intellijPluginDep("repository-search"))
}
testRuntime(intellijPluginDep("repository-search"))
}
testRuntime(intellijPluginDep("android"))
testRuntime(intellijPluginDep("smali"))
@@ -67,11 +64,8 @@ dependencies {
testRuntime(intellijPluginDep("java-decompiler"))
testRuntime(project(":plugins:kapt3-idea")) { isTransitive = false }
if (Ide.AS36.orHigher()) {
Ide.AS {
testRuntime(intellijPluginDep("android-layoutlib"))
}
if (Ide.AS41.orHigher()) {
testRuntime(intellijPluginDep("platform-images"))
}
}
-3
View File
@@ -18,9 +18,6 @@ dependencies {
compile(project(":js:js.frontend"))
compile(projectRuntimeJar(":kotlin-preloader"))
compile(project(":idea:idea-jps-common"))
Platform[193].orLower {
compileOnly(intellijDep()) { includeJars("openapi", rootProject = rootProject) }
}
compileOnly(intellijDep()) {
includeJars("jdom", "trove4j", "jps-model", "platform-api", "util", "asm-all", rootProject = rootProject)
}
@@ -16,9 +16,6 @@ dependencies {
testCompile(project(":js:js.engines"))
testCompile(intellijCoreDep()) { includeJars("intellij-core") }
testRuntimeOnly(intellijCoreDep()) { includeJars("intellij-core") }
Platform[193].orLower {
testRuntimeOnly(intellijDep()) { includeJars("openapi", "picocontainer", rootProject = rootProject) }
}
testRuntimeOnly(intellijDep()) {
includeJars("idea", "idea_rt", "log4j", "guava", "jdom", rootProject = rootProject)
}
@@ -13,9 +13,6 @@ val embeddableTestRuntime by configurations.creating {
dependencies {
allTestsRuntime(commonDep("junit"))
allTestsRuntime(intellijCoreDep()) { includeJars("intellij-core") }
Platform[193].orLower {
allTestsRuntime(intellijDep()) { includeJars("openapi") }
}
allTestsRuntime(intellijDep()) { includeJars("idea", "idea_rt", "log4j", "jna") }
testCompile(project(":kotlin-scripting-jvm-host-unshaded"))
testCompile(projectTests(":compiler:tests-common"))
@@ -27,13 +27,7 @@ dependencies {
testRuntime("org.jetbrains.kotlin:jcabi-aether:1.0-dev-3")
testRuntime("org.sonatype.aether:aether-api:1.13.1")
testRuntime("org.apache.maven:maven-core:3.0.3")
Platform[193].orLower {
compileOnly(intellijDep()) { includeJars("openapi") }
}
compileOnly(intellijDep()) { includeJars("util") }
Platform[193].orLower {
testCompile(intellijDep()) { includeJars("openapi") }
}
testCompile(intellijDep()) { includeJars("platform-api", "util") }
testCompile(intellijCoreDep()) { includeJars("intellij-core") }
@@ -58,18 +58,13 @@ dependencies {
testRuntime(intellijPluginDep("java-decompiler"))
Ide.IJ {
testRuntime(intellijPluginDep("maven"))
if (Ide.IJ201.orHigher()) {
testRuntime(intellijPluginDep("repository-search"))
}
testRuntime(intellijPluginDep("repository-search"))
}
testRuntime(intellijPluginDep("android"))
testRuntime(intellijPluginDep("smali"))
if (Ide.AS36.orHigher()) {
Ide.AS {
testRuntime(intellijPluginDep("android-layoutlib"))
}
if (Ide.AS41.orHigher()) {
testRuntime(intellijPluginDep("platform-images"))
}
}
@@ -10,10 +10,6 @@ dependencies {
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") }
testRuntime(intellijDep())
testCompileOnly(intellijDep()) { includeJars("idea", "idea_rt") }
Platform[193].orLower {
testCompileOnly(intellijDep()) { includeJars("openapi", rootProject = rootProject) }
}
testCompileOnly(intellijDep()) { includeJars("platform-api", "platform-impl") }
testRuntime(intellijPluginDep("java"))
@@ -18,11 +18,6 @@ dependencies {
compile(intellijDep())
compile(intellijPluginDep("gradle"))
Platform[191].orLower {
compileOnly(intellijDep()) { includeJars("java-api", "java-impl") }
}
compileOnly(intellijPluginDep("java")) { includeJars("java-api", "java-impl") }
testCompile(projectTests(":idea"))
@@ -18,9 +18,6 @@ dependencies {
compileOnly(project(":idea"))
compileOnly(project(":idea:idea-jvm"))
Platform[193].orLower {
compileOnly(intellijDep()) { includeJars("openapi") }
}
compileOnly(intellijDep()) { includeJars("platform-api", "extensions", "util") }
compileOnly(intellijDep("gradle"))
compileOnly(project(":idea:kotlin-gradle-tooling"))
-4
View File
@@ -29,10 +29,6 @@ dependencies {
testCompileOnly(intellijDep())
if (Platform.P191.orLower()) {
compileOnly(intellijDep()) { includeJars("java-api", "java-impl") }
}
compileOnly(intellijDep()) { includeJars("platform-impl") }
compileOnly(intellijPluginDep("java")) { includeJars("java-api", "java-impl") }
testCompileOnly(intellijPluginDep("java")) { includeJars("java-api", "java-impl") }