Cleanup unused ant-related bits and script constants
This commit is contained in:
committed by
Vyacheslav Gerasimov
parent
0c35e79283
commit
246f73c879
@@ -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"
|
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])"
|
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"] =
|
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",
|
listOf("annotations",
|
||||||
"asm-all",
|
"asm-all",
|
||||||
"guava-21.0",
|
"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) {
|
fun Project.allprojectsRecursive(body: Project.() -> Unit) {
|
||||||
this.body()
|
this.body()
|
||||||
this.subprojects { allprojectsRecursive(body) }
|
this.subprojects { allprojectsRecursive(body) }
|
||||||
|
|||||||
@@ -38,10 +38,10 @@ fun ModuleDependency.includeJars(vararg names: String) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun ModuleDependency.includeIntellijCoreJarDependencies(project: Project) =
|
fun ModuleDependency.includeIntellijCoreJarDependencies(project: Project) =
|
||||||
includeJars(*(project.rootProject.extra["IntellijCoreDependenciesJars"] as List<String>).toTypedArray())
|
includeJars(*(project.rootProject.extra["IntellijCoreDependencies"] as List<String>).toTypedArray())
|
||||||
|
|
||||||
fun ModuleDependency.includeIntellijCoreJarDependencies(project: Project, jarsFilterPredicate: (String) -> Boolean) =
|
fun ModuleDependency.includeIntellijCoreJarDependencies(project: Project, jarsFilterPredicate: (String) -> Boolean) =
|
||||||
includeJars(*(project.rootProject.extra["IntellijCoreDependenciesJars"] as List<String>).filter { jarsFilterPredicate(it) }.toTypedArray())
|
includeJars(*(project.rootProject.extra["IntellijCoreDependencies"] as List<String>).filter { jarsFilterPredicate(it) }.toTypedArray())
|
||||||
|
|
||||||
fun Project.intellijRootDir() = File(intellijRepoDir(), "kotlin.build.custom.deps/${rootProject.extra["versions.intellijSdk"]}/intellij")
|
fun Project.intellijRootDir() = File(intellijRepoDir(), "kotlin.build.custom.deps/${rootProject.extra["versions.intellijSdk"]}/intellij")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user