Skip to content

Commit

Permalink
Add info about -Pteamcity to readme and make warning less annoying
Browse files Browse the repository at this point in the history
  • Loading branch information
4u7 committed Jul 21, 2020
1 parent a4457ba commit d36d62e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ gradle.taskGraph.whenReady {
val profileMessage = "$profile build profile is active ($proguardMessage, $jarCompressionMessage). " +
"Use -Pteamcity=<true|false> 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<org.gradle.jvm.tasks.Jar>().forEach { task ->
task.entryCompression = if (kotlinBuildProperties.jarCompression)
Expand Down

0 comments on commit d36d62e

Please sign in to comment.