diff --git a/.idea/ant.xml b/.idea/ant.xml index ae4e3216647..c6c996497f4 100644 --- a/.idea/ant.xml +++ b/.idea/ant.xml @@ -2,10 +2,6 @@ - - - - diff --git a/TeamCityBuild.xml b/TeamCityBuild.xml index d7146ef0ae5..1241f998ccb 100644 --- a/TeamCityBuild.xml +++ b/TeamCityBuild.xml @@ -1,5 +1,6 @@ - + + @@ -38,84 +39,53 @@ - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - + - - - - + - - - - - - - - - - - - - - - + diff --git a/build.gradle.kts b/build.gradle.kts index d6a2af4f1b9..668e8a64a14 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -358,6 +358,13 @@ tasks { } } + // TODO: copied from TeamCityBuild.xml (with ultimate-related modification), consider removing after migrating from it + "cleanupArtifacts" { + doLast { + delete(ideaPluginDir) + delete(ideaUltimatePluginDir) + } + } "coreLibsTest" { (coreLibProjects + listOf( @@ -484,6 +491,86 @@ tasks { "check" { dependsOn("test") } } +// TODO: copied from build.xml (used on TC), reconsider location and dependencies after complete migration +val `zip-compiler` by task { + destinationDir = file(distDir) + archiveName = "kotlin-compiler-$kotlinVersion.zip" + from(distKotlinHomeDir) { + exclude("bin/**") + into("kotlinc") + } + from("$distKotlinHomeDir/bin") { + include("*.bat") + into("kotlinc/bin") + fileMode = 0b110100100 + } + from("$distKotlinHomeDir/bin") { + exclude("*.bat") + into("kotlinc/bin") + fileMode = 0b111101101 + } +} + +// TODO: copied from build.xml (used on TC), reconsider location and dependencies after complete migration +val `zip-test-data` by task { + destinationDir = file(distDir) + archiveName = "kotlin-test-data.zip" + from("compiler/testData") { into("compiler") } + from("idea/testData") { into("ide") } + from("idea/idea-completion/testData") { into("ide/completion") } +} + +// TODO: copied from TeamCityBuild.xml (excluding some parts), consider implementing patching in the appropriate projects + +val pluginXmlDir = "$rootDir/idea/src/META-INF" +val pluginXmlPath = "$pluginXmlDir/plugin.xml" +val pluginXmlBackupDir = "$buildDir/plugin_xml_backup" +val pluginXmlBackupPath = "$pluginXmlBackupDir/plugin.xml" + +val backupTemplateFile by task { + from(pluginXmlPath) + into(pluginXmlBackupDir) +} + +val writePluginVersionToTemplateFile by task { + dependsOn(backupTemplateFile) + from(pluginXmlBackupPath) + into(pluginXmlDir) + filter { it.replace("@snapshot@", "$buildNumber") } +} + +val restoreTemplateFile by task { + from(pluginXmlBackupPath) + into(pluginXmlDir) +} + +val revertTemplateFiles by task { + dependsOn(restoreTemplateFile) + delete(pluginXmlBackupDir) +} + +// TODO: copied from build.xml (used on TC), reconsider location, logic and dependencies after complete migration +val zipArtifacts by task { + val dest = File(System.getProperty("plugin.zip") ?: "$distDir/artifacts/kotlin-plugin-$buildNumber.zip") + val src = System.getProperty("pluginArtifactDir") ?: ideaPluginDir + destinationDir = dest.parentFile + archiveName = dest.name + from(src) { + exclude("kotlinc/bin/**") + into("Kotlin") + } + from("$src/kotlinc/bin") { + include("*.bat") + into("Kotlin/kotlinc/bin") + fileMode = 0b110100100 + } + from("$src/kotlinc/bin") { + exclude("*.bat") + into("Kotlin/kotlinc/bin") + fileMode = 0b111101101 + } +} + configure { module { excludeDirs = files( diff --git a/build.xml b/build.xml deleted file mode 100644 index 4cc8d1f9546..00000000000 --- a/build.xml +++ /dev/null @@ -1,1048 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ultimate/build.xml b/ultimate/build.xml deleted file mode 100644 index cc36d38d6bb..00000000000 --- a/ultimate/build.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/update_dependencies.xml b/update_dependencies.xml index fd7810c912d..1b424a520dc 100644 --- a/update_dependencies.xml +++ b/update_dependencies.xml @@ -116,13 +116,6 @@ - - - - - - -