Commit Graph

406 Commits

Author SHA1 Message Date
Vyacheslav Gerasimov c1e1dbd83e Build: Fix usages of "java.home" for tools.jar dependency
#KT-33984
2019-09-25 17:54:18 +03:00
Vyacheslav Gerasimov 71416f9dbf Build: Make internalKotlinRepo url independent from bootstrap 2019-09-25 15:58:49 +03:00
Vyacheslav Gerasimov 1b5417e422 Minor: Build use cache-redirector for bootstrap repos 2019-09-25 15:58:49 +03:00
Vyacheslav Gerasimov ed59741e14 Minor: Reformat 'buildSrc/src/main/kotlin/Bootstrap.kt' 2019-09-25 15:58:49 +03:00
Vyacheslav Gerasimov b7ebe17fe0 Build: Add kotlin-bootstrap repository to bootstrap options 2019-09-25 15:58:49 +03:00
Vyacheslav Gerasimov c220ad4b00 Build: Add dsl constants for 193 platform 2019-09-17 21:16:12 +03:00
Vyacheslav Gerasimov cb482571cb Build: Fix javadocJar task configuration
Add artifact outside of lazy configuration lambda, otherwise it is never
added
2019-09-16 15:26:56 +03:00
Sascha Peilicke ae8c93de6a Support symlinked JAVA_HOME
When testing for the JAVA_HOME environment variable, expand potential
symlinks first. This is almost guaranteed to be the case on all modern
Linux distributions putting the JDK / JRE behind update-alternatives to
be able to select the *current* version [0], e.g. on Fedora:

  $ ls -l $JAVA_HOME
  lrwxrwxrwx. ... /usr/lib/jvm/java -> /etc/alternatives/java_sdk

[0] https://linux.die.net/man/8/update-alternatives
2019-09-05 16:36:08 +03:00
Ilya Chernikov 72b68ee683 Fix proguarding of jline library in compiler
#KT-32234 fixed
#KT-32259 fixed
2019-09-04 09:35:04 +02:00
Nikolay Krasko 8ae4293a0f Remove 181 branch from build scripts
#KT-33536 Fixed
2019-08-30 12:14:54 +03:00
Nikolay Krasko 0ae9240e5f Remove 182 and AS33 from build scripts
#KT-33536 Fixed
2019-08-30 12:14:50 +03:00
Nikolay Krasko 1c4ee6bd79 Remove as33 support
#KT-33536 Fixed
2019-08-30 12:13:09 +03:00
Ilya Chernikov 2fe01f9086 Refactor publishing plugin to lazy tasks API 2019-08-21 20:20:09 +02:00
Ilya Chernikov 315a9d66a0 Refactor more tasks to lazy API 2019-08-21 20:20:08 +02:00
Ilya Chernikov 2ed8fa7624 Convert main task creating helper to lazy API, refactor accordingly 2019-08-21 20:20:08 +02:00
Ilya Chernikov 0f41dc814f Switch many common tasks defined in buildSrc to lazy creation
also refactor some locally defined tasks to the creation avoidance API
2019-08-21 20:20:08 +02:00
Ilya Chernikov 8219d9853c Implement configuration for describing only published runtime dependencies...
and fix runtime dependencies for published scripting artifacts
2019-08-20 21:17:56 +02:00
Yan Zhulanow b3941c4ed0 Pill: Fix platform source attachment in compiler modules 2019-08-07 01:15:33 +09:00
Vyacheslav Gerasimov 0571f90762 Build: Add kotlin.build.jar.compression property
Is `true` on teamcity and `false` locally by default

 #KT-32573
2019-08-06 15:40:40 +03:00
Vyacheslav Gerasimov 659c399d30 Build: Add kotlin.build.dependencies.dir property
To specify directory downloaded dependencies stored in

 #KT-30310
2019-08-06 15:40:40 +03:00
Vyacheslav Gerasimov 67b84cf35d Use properties bintray.user & bintray.apikey for AS repo 2019-08-01 17:07:11 +03:00
Alexey Tsvetkov 4db3dcc28f Use short temp dirs names only in gradle integration tests 2019-07-31 04:48:20 +03:00
Alexey Tsvetkov 54227e15ff Do not set max heap size twice
The parameter is also set in the next statement (`maxHeapSize = "1600m"`)
2019-07-31 04:48:20 +03:00
Ivan Gavrilovic de5335b17f Fix gradle integration tests on Windows
Android Gradle Plugin 3.0 and 3.1 use aapt that does not handle
long paths on Windows. This commit uses shorter paths for the project
working directory on Windows.

Test: running integration tests on Windows
2019-07-31 04:48:20 +03:00
Vyacheslav Gerasimov 2c61572c50 Build: Fix artifact pattern for Android Studio bintray repo 2019-07-26 19:01:53 +03:00
Ilya Chernikov ef23033936 Add net.jpountz and one.util.streamex to the list of shadowed packages
should fix problem with using REPL infrastructure with Apache Zeppelin
2019-07-26 08:55:15 +02:00
Vyacheslav Gerasimov 3b78ef9cb2 as36: Add bunches for AS 3.6 C6 based on 192 platform 2019-07-25 20:50:02 +03:00
Vyacheslav Gerasimov 5c6dedc623 Build: Add repo for prerelease Android Studio 2019-07-25 20:50:02 +03:00
Alexey Tsvetkov cd641c9047 Set source and target compatibility in buildSrc
If source and target compatibility are not set explicity,
Gradle will assume they are equal to current JVM version.
This may cause unwanted rebuilds, when a build is run on
different JDK versions (it might happen when switching between
CLI and IDE).
2019-07-25 16:03:07 +03:00
Kirill Shmakov 407e5a5270 Use same models in MPP and CIDR 2019-07-18 15:02:17 +03:00
Vyacheslav Gerasimov ffb65b2655 Build: Fix kotlinBuildProperties, should always proguard on teamcity 2019-07-09 19:19:58 +03:00
Yan Zhulanow f16459df32 Pill: Support 'runtimeOnly' dependency configuration 2019-07-08 16:25:15 +09:00
Vyacheslav Gerasimov d3f9d0866a Build: Improve cache redirector usage in buildSrc settings.gradle 2019-07-02 17:30:06 +03:00
Sergey Rostov 59411e1a28 Build: flags for comparing gradle and jps 2019-06-27 17:56:52 +03:00
Vyacheslav Gerasimov 2d6a3cb2c8 Build: Introduce flag for disabling jar post processing
proguard, relocation, etc.
2019-06-27 17:56:52 +03:00
Vyacheslav Gerasimov c76138c55c Build: Drop obsolete jps artifact generation 2019-06-27 17:56:50 +03:00
Vyacheslav Gerasimov db3b01d2d4 Build: Centralize compiler dist build logic in :kotlin-compiler project 2019-06-27 17:56:48 +03:00
Amaury bb0ee8ca0a Fix typo in jdksFinder.kt 2019-06-25 09:33:43 +02:00
Kirill Shmakov ae45bbcead Explicit misconfiguration signalization 2019-06-15 12:47:56 +03:00
Kirill Shmakov 0df8b7f610 Support ultimate transition
KOTLIN-CR-3025
2019-06-15 11:25:43 +03:00
Sergey Rostov 99275deb30 JPS Build: fix building buildSrc 2019-06-14 10:21:05 +03:00
Vyacheslav Gerasimov c0594c2ee3 Build: Remove dependency on internal indenting stream writer 2019-06-13 18:27:12 +03:00
Vyacheslav Gerasimov 16b9c15133 Build: Don't run checkBuild tasks on check, add checkBuild to buildSrc 2019-06-07 17:38:16 +03:00
Vyacheslav Gerasimov 2769dc8359 Build: Improve sourcesJar helper
- Add sources from embedded projects
 - Add artifact to sources configuration
 - Use register instead of create

 #KT-30237 Fixed
2019-06-07 17:37:46 +03:00
Vyacheslav Gerasimov 547b10ee29 Build: Write ivy.xml without usage of internal gradle apis 2019-06-07 17:37:39 +03:00
Mikhael Bogdanov 5123e1f078 Add project property for workers count 2019-06-05 14:24:26 +02:00
Dmitriy Dolovov 171e226d58 Move 'cidrPluginsEnabled' Gradle flag to local.properties 2019-06-04 08:42:47 +03:00
Dmitriy Dolovov bbdb5e5f0f Reworked joint build (kotlin + kotlin-ultimate)
- Root buildscript classpath no more depends on buildSrc.jar from kotlin-ultimate. This allows to have stable joint builds - w/o occasional "Unresolved reference" errors in buildscripts.
- kotlin-ultimate modules are now included into Kotlin project when two conditions are met: 1) Gradle parameter 'cidrPluginsEnabled' is turned on; 2) kotlin-ultimate Git repo is checked out right to the Kotlin project root (assuming there is 'kotlin-ultimate' directory inside the project root).
2019-06-04 08:42:22 +03:00
Vyacheslav Gerasimov 593e67d47d 192: Add 192 platform IdeCompatibilityDsl 2019-05-31 16:32:09 +03:00
Vyacheslav Gerasimov 9a9acd0fc1 Minor: Cleanup kotlin.buildSrc.prepare-deps/build.gradle.kts 2019-05-29 15:08:05 +03:00