95 Commits

Author SHA1 Message Date
Vyacheslav Gerasimov d7474bb2f7 Build: Use only @Exported & whitelisted classes for tools.jar api
This makes it stable between JDK vendors and versions
2020-11-17 01:21:00 +03:00
Dmitriy Novozhilov 7aef253a36 Add SpaceBootstrap option to kotlin-build-gradle-plugin 2020-09-28 12:43:10 +03:00
Nikolay Krasko 3a883e1236 Replace bintray bootstrap with space bootstrap repo 2020-08-14 17:31:13 +03:00
Vyacheslav Gerasimov 628efcb189 Build: Add kotlin.build.dependencies.iu.enabled property
Alias for intellijUltimateEnabled
2020-07-16 13:00:25 +03:00
Vyacheslav Gerasimov 996e529944 Build: Allow intellijUltimateEnabled without kotlin-ultimate directory
This allows to build against idea ultimate locally
2020-07-16 13:00:24 +03:00
Vyacheslav Gerasimov 77a8cf4e66 Build: Use attributes to resolve test dependencies in jps build mode 2020-06-29 18:17:08 +03:00
Ilya Gorbunov 86d098b8ad Infer internal artifacts bootstrap repository
This allows taking these artifacts from buildserver if the
bootstrap itself is taken from there.
2020-04-29 04:49:34 +03:00
Mikhail Bogdanov 9d68db1668 Switch usages android build tools from 23.0.1 to 28.0.3 2020-04-14 13:53:22 +02:00
Mikhail Bogdanov acb4d6cf63 Update android-sdk dependency management. Add Emulator 2020-04-09 17:04:41 +02:00
Ilya Gorbunov 8bc8a8cf79 Publish kotlin-build-gradle-plugin sources
#KT-37775 Fixed
2020-04-02 05:21:10 +03:00
Ilya Gorbunov fde33252cf Present boolean property without value is considered true
For example, -Pbootstrap.local or -Pkotlin.build.proguard
2020-04-02 05:21:10 +03:00
Ilya Gorbunov 1727fcf1a8 Make some build properties extensions in buildSrc
They are used only in main build's .gradle.kts files, so it is more
flexible to define them as extensions - no need to republish
kotlin-build-gradle-plugin when another such property is to be added.
2020-04-02 05:21:10 +03:00
Ilya Gorbunov c046f431d9 Rename KotlinBuildProperties.get private function to getOrNull
Before that Groovy tried to find 'get' when dispatching property access,
succeeded in that, and thus any mistyped missing property
would have resulted in null value instead of exception.
2020-04-02 05:21:10 +03:00
Ilya Gorbunov 2e20fab05f Add bootstrap.teamcity.url parameter to specify bootstrap teamcity server 2020-04-02 05:21:10 +03:00
nataliya.valtman 915e6107d1 make Bootstrap option available in buildSrc 2020-03-23 08:43:06 +03:00
Vyacheslav Gerasimov c75ad13b66 Build: Remove all code from tools-jar-api leaving only declarations
Since method bodies are not required for compilation
strip them out to remove noise between different versions.
2020-03-10 17:24:21 +03:00
Vyacheslav Gerasimov ef169aa12b Build: Use preprocessed tools.jar for compilation
tools.jar from JDK has different public api on different platforms which
makes impossible to reuse caches for tasks which depend on it. Since we
can't compile against those classes & stay cross-platform anyway, we
may just exclude them from compile classpath. This should make tools.jar
compatible at least within one build of JDK for different platforms
2020-03-10 17:24:21 +03:00
nataliya.valtman fa74eabbd1 use bootstrap.kotlin.default.version bootstrap for buildSrc 2020-03-04 15:15:32 +03:00
nataliya.valtman 5c6f452c10 Revert "add cleanup dependencies tasks for buildSrc"
This reverts commit 8a8536f8
2020-02-27 15:23:47 +03:00
nataliya.valtman 8a8536f8ae add cleanup dependencies tasks for buildSrc
change embedded kotlin version to bootstrap for buildSrc
2020-02-27 13:55:58 +03:00
Vyacheslav Gerasimov 5aae3b5d27 Build: Add localBuildCacheDirectory property to KotlinBuildProperties 2020-02-25 19:37:33 +03:00
nataliya.valtman d82dc86c71 Reverts commit 13afb2e4 (buildSrc bootstrap version) 2020-02-25 17:08:51 +03:00
nataliya.valtman 13afb2e45e Make kotlin build version for buildSrc the same as for kotlin project 2020-02-23 09:02:22 +03:00
Ilya Gorbunov 61b3f447b1 Remove jsIrDist (kotlin.stdlib.js.ir.dist) flag and the logic it enables
It is no longer needed since JS IR is published in JS artifacts,
and there's no longer separate "-js-ir" artifacts.

Changes in BuildProperties.kt will take effect after the next
kotlin-build-gradle-plugin publishing.
2020-01-21 15:54:24 +03:00
Vyacheslav Gerasimov 20faa9e3e4 Build: Make use of user & password properties in build cache configuration 2019-12-19 17:45:30 +03:00
Vyacheslav Gerasimov e43ea7e183 Build: Add build cache user and password properties to BuildProperties 2019-12-19 17:45:30 +03:00
Vyacheslav Gerasimov 8d303af395 Build: Add build scan server url setting 2019-12-13 20:11:18 +03:00
Vyacheslav Gerasimov 724884513e Build: Extract build cache setup to kotlin-build-gradle-plugin 2019-12-13 20:11:18 +03:00
Vyacheslav Gerasimov 283933ace5 Build: Add localBuildCacheEnabled property 2019-12-13 20:11:18 +03:00
Vyacheslav Gerasimov 6ef3831f14 Build: Take parent directory as rootProject directory in case of buildSrc 2019-12-03 16:16:44 +03:00
Vyacheslav Gerasimov ab8542bbdb Build: Advance kotlin-build-gradle-plugin version to 0.0.2 2019-12-03 16:16:44 +03:00
Vyacheslav Gerasimov 46d77419a8 Build: Add build cache properties to kotlin-build-gradle-plugin 2019-12-03 16:16:44 +03:00
Vyacheslav Gerasimov ad79efeba3 Build: Use kotlin version embedded to gradle 2019-12-03 16:16:44 +03:00
Vyacheslav Gerasimov 0cde2e2f5b Build: Fix ivy repository for android sdk
There is no `artifact()` in metadataSources by default in gradle 6.0
2019-11-27 21:26:34 +03:00
Vyacheslav Gerasimov 5f158f5ce7 Build: Add kotlin-build-gradle-plugin & use it prebuilt from bintray
With extracted buildProperties.kt from buildSrc required for settings.gradle, using buildSrc classes is not allowed there since gradle 6.0
2019-11-27 21:26:32 +03: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
Vyacheslav Gerasimov 2fc2c8fa4c Minor: Cleanup android-sdk, remove obsolete comment & unused configuration 2019-05-29 15:08:05 +03:00
Vyacheslav Gerasimov 6b3f341ab5 Build: Publish jcabi-aether-1.0-SNAPSHOT to kotlin-dependencies as 1.0-dev-3
This allows to remove dependency on snapshot repository
https://oss.sonatype.org/content/repositories/snapshots
2019-05-29 15:08:05 +03:00
Vyacheslav Gerasimov aa79c1bcf6 Build: Extract publication for dependencies to publishing.gradle.kts 2019-05-29 15:08:05 +03:00
Vyacheslav Gerasimov f5825a45f7 Build: Add bintray publication for dependencies/android-dx 2019-05-29 15:08:05 +03:00
Vyacheslav Gerasimov 10779ea397 Build: Extract android-dx to separate project with publishing 2019-05-29 15:08:04 +03:00
Vyacheslav Gerasimov b88d9d62b8 Build: Extract cache redirector to script & add verification task 2019-05-23 18:11:29 +03:00
Vyacheslav Gerasimov f890cab145 Build: Rename custom-dependencies -> dependencies 2019-03-20 21:29:11 +03:00