From d36d62e226234b512fd2501638e7ffda308406ca Mon Sep 17 00:00:00 2001 From: Vyacheslav Gerasimov Date: Tue, 21 Jul 2020 18:00:23 +0300 Subject: [PATCH] Add info about `-Pteamcity` to readme and make warning less annoying --- ReadMe.md | 2 ++ build.gradle.kts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ReadMe.md b/ReadMe.md index c864dee42c0..227f87f7b17 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -86,6 +86,8 @@ command line parameters on the first run: - `compilerTest` - build and run all compiler tests - `ideaPluginTest` - build and run all IDEA plugin tests +To reproduce TeamCity build use `-Pteamcity=true` flag. Local builds don't run proguard and have jar compression disabled by default. + **OPTIONAL:** Some artifacts, mainly Maven plugin ones, are built separately with Maven. Refer to [libraries/ReadMe.md](libraries/ReadMe.md) for details. diff --git a/build.gradle.kts b/build.gradle.kts index 3968d264795..a0738e9a05c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -522,7 +522,7 @@ gradle.taskGraph.whenReady { val profileMessage = "$profile build profile is active ($proguardMessage, $jarCompressionMessage). " + "Use -Pteamcity= to reproduce CI/local build" - logger.warn("\n${"☠".repeat(profileMessage.length)}\n$profileMessage\n${"☠".repeat(profileMessage.length)}\n") + logger.warn("\n\n$profileMessage") allTasks.filterIsInstance().forEach { task -> task.entryCompression = if (kotlinBuildProperties.jarCompression)