From 246f73c879688fdffbf45efe5db2fb63b0896b96 Mon Sep 17 00:00:00 2001 From: Ilya Chernikov Date: Thu, 21 Dec 2017 11:40:45 +0100 Subject: [PATCH] Cleanup unused ant-related bits and script constants --- build.gradle.kts | 30 ------------------- .../src/main/kotlin/intellijDependencies.kt | 4 +-- 2 files changed, 2 insertions(+), 32 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index e1bc5f3eb00..afce18198a0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -137,22 +137,7 @@ extra["versions.jflex"] = "1.7.0" val markdownVer = "4054 - Kotlin 1.0.2-dev-566".replace(" ", "%20") // fixed here, was last with "status:SUCCESS,tag:forKotlin" extra["markdownParserRepo"] = "https://teamcity.jetbrains.com/guestAuth/repository/download/IntelliJMarkdownParser_Build/$markdownVer/([artifact]_[ext]/)[artifact](.[ext])" -// the former "ideaSdk/core" dir contents without intellij-core.jar extra["IntellijCoreDependencies"] = - listOf("annotations.jar", - "asm-all.jar", - "guava-21.0.jar", - "jdom.jar", - "jna.jar", - "log4j.jar", - "picocontainer.jar", - "snappy-in-java-*.jar", - "streamex-*.jar", - "trove4j.jar", - "xpp3-1.1.4-min.jar", - "xstream-*.jar") - -extra["IntellijCoreDependenciesJars"] = // TODO: rename to IntellijCoreDependencies after old usages are cleared listOf("annotations", "asm-all", "guava-21.0", @@ -252,21 +237,6 @@ apply { } } -val importedAntTasksPrefix = "imported-ant-update-" - -// TODO: check the reasons of import conflict with xerces -//ant.importBuild("$rootDir/update_dependencies.xml") { antTaskName -> importedAntTasksPrefix + antTaskName } - -tasks.matching { task -> - task.name.startsWith(importedAntTasksPrefix) -}.forEach { - it.group = "Imported ant" -} - -//task("update-dependencies") { -// dependsOn(tasks.getByName(importedAntTasksPrefix + "update")) -//} - fun Project.allprojectsRecursive(body: Project.() -> Unit) { this.body() this.subprojects { allprojectsRecursive(body) } diff --git a/buildSrc/src/main/kotlin/intellijDependencies.kt b/buildSrc/src/main/kotlin/intellijDependencies.kt index a40b693f3ad..a46553ecd98 100644 --- a/buildSrc/src/main/kotlin/intellijDependencies.kt +++ b/buildSrc/src/main/kotlin/intellijDependencies.kt @@ -38,10 +38,10 @@ fun ModuleDependency.includeJars(vararg names: String) { } fun ModuleDependency.includeIntellijCoreJarDependencies(project: Project) = - includeJars(*(project.rootProject.extra["IntellijCoreDependenciesJars"] as List).toTypedArray()) + includeJars(*(project.rootProject.extra["IntellijCoreDependencies"] as List).toTypedArray()) fun ModuleDependency.includeIntellijCoreJarDependencies(project: Project, jarsFilterPredicate: (String) -> Boolean) = - includeJars(*(project.rootProject.extra["IntellijCoreDependenciesJars"] as List).filter { jarsFilterPredicate(it) }.toTypedArray()) + includeJars(*(project.rootProject.extra["IntellijCoreDependencies"] as List).filter { jarsFilterPredicate(it) }.toTypedArray()) fun Project.intellijRootDir() = File(intellijRepoDir(), "kotlin.build.custom.deps/${rootProject.extra["versions.intellijSdk"]}/intellij")