Commit Graph

65 Commits

Author SHA1 Message Date
Alexander.Likhachev 0fbd2e960d [Build] Remove redundant .forUseAtConfigurationTime() calls
Starting from Gradle 7.4, these calls are no longer required.
^KTI-1473 In Progress
2023-12-07 18:31:06 +00:00
Dmitrii Krasnov 1d95927582 [Gradle IT] Added property for enabling/disabling k/n from master in IT
#KT-45978 Ready for Review
2023-10-18 09:24:27 +00:00
Pavel Punegov c9aeadd31f [K/N] Remove old Compiler and Meta Version ^KT-55677 Fixed
* Replace it with KotlinCompilerVersion
* K/N version should be set now with `deployVersion`.
* Cleanup deprecated functions in older versions
 of the Gradle plugin
* Cleanup tests for older versions of compiler downloader

Merge-request: KT-MR-8436
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com>
2023-01-30 13:10:08 +00:00
Yahor Berdnikau a14d0d148b Simplify Kotlin bootstrap application in the project
Move all the code to apply Kotlin bootstrap into settings script plugin
which does following:
- configures based either on the repo root 'local.properties' or on the
root project gradle properties or on the repo root 'gradle.properties'
current type of bootstrap
- automatically adds Kotlin bootstrap repository with
exclusive content, so bootstrap dependencies will not be by mistake
downloaded from other repository
- automatically forces all Kotlin plugins applied in the build to use
bootstrap version

This script should be applied only in project settings.gradle and then
it does all the configuration by itself.
2022-11-29 14:31:48 +00:00
Nikolay Krasko 397ddb7d2c Add isCacheRedirectorEnabled to kotlin common build properties 2022-07-01 18:44:48 +00:00
Pavel Punegov d69df1898d [build] Advance kotlin-build-gradle-plugin version to 0.0.38 in the repo
Use build Gradle plugin version property
2022-04-08 14:42:35 +03:00
Pavel Punegov 3a4d6bcb18 [build] Advance kotlin-build-gradle-plugin version to 0.0.38 2022-04-08 14:42:08 +03:00
Pavel Punegov 4644562e7f [K/N][build] Change MetaVersion to inline class from enum
Support meta versions strings other than pre-defined. All enum entries
were left for source-level compatibility.
2022-04-08 14:42:08 +03:00
Vyacheslav Gerasimov 5e09c3176f Build: Set kotlin.build.cache.push to false by default
#KTI-793
2022-03-13 20:29:12 +00:00
Dmitriy Novozhilov 74d36634bf [Build] Add renderDiagnosticNames property to kotlin build gradle plugin 2022-02-18 17:44:43 +03:00
Nikolay Krasko 272081d8cf Reduce dependency on teamcity.jetbrains.com when downloading dependencies 2021-11-20 00:05:51 +03:00
Vyacheslav Gerasimov 1e223f8366 Build: Drop unused setupBuildCache helper 2021-09-26 23:36:41 +03:00
Dmitriy Novozhilov adbeda12a6 [Build] Remove pathToKotlinModularizedTestData from kotlin-build-gradle-plugin 2021-08-05 15:22:40 +03:00
Alexander Udalov 0925e1b497 Enable JVM IR for stdlib/reflect/test libraries
Changes in Gradle integration tests are needed because:
- in new-mpp-android, kotlin-stdlib-jdk8 is used, and JVM IR generates
  JDK 8-specific bytecode (invokedynamic). D8 needs to be configured to
  desugar it with source/target versions set to 1.8, otherwise it
  reports an error.
- in AndroidExtensionsManyVariants and AndroidIcepickProject, D8 fails
  with assertions enabled if AGP < 4.0.0 is used because of
  https://issuetracker.google.com/issues/148661132. The tests which use
  old AGP versions are probably not relevant anymore anyway.

Changes in kotlin-stdlib-runtime-merged.txt are caused by a slightly
different generation scheme of collection subclasses in JVM IR, and are
harmless.

(Previous attempt was at 15e978dbd311c2ba78ec32b394c21acde9811ccb.)
2021-08-05 12:36:35 +02:00
Alexander Udalov 35f6337de3 Remove obsolete kotlin.build.useIR flag
(cherry picked from commit 91e47f1fd7)
2021-07-13 14:01:19 +02:00
Pavel Punegov 269f83f86e Update kotlin-build-gradle-plugin to 0.0.31 2021-07-05 19:43:28 +00:00
Pavel Punegov c2fe46020e Native: improve CompilerVersion to correspond to the versioning schema
* Add pub and dev-google-pr meta versions
* Allow using release versions with and without build number
* Add tests for version parsing
2021-07-05 19:43:27 +00:00
Nikolay Krasko b6b983aa2a Update kotlin:kotlin-build-gradle-plugin 0.0.29 -> 0.0.30 (KTI-563)
Remove ultimate mentioning
2021-06-09 22:19:53 +03:00
Nikolay Krasko a4005cef19 Build: Drop ultimate, cidr and kmm from the build (KTI-563) 2021-06-09 17:43:52 +03:00
Aleksei.Cherepanov 35c067b215 Fix import for JPS build of Kotlin repo
Changed link of configuration on TC for getting artifacts
from "Compiler Dist (202) and Maven Artifacts"
to "Kotlin / Kotlin Public / Aggregate"
2021-06-08 22:01:31 +03:00
Alexander Udalov e0cc6d44a7 Revert "Remove obsolete kotlin.build.useIR flag"
This reverts commit 91e47f1fd7.
2021-05-28 21:35:57 +02:00
Alexander Udalov 91e47f1fd7 Remove obsolete kotlin.build.useIR flag 2021-05-28 15:41:57 +02:00
Alexander Likhachev 3df45f9651 [Build] Bump kotlin-build-gradle-plugin version to 0.0.29 2021-05-18 16:37:36 +03:00
Alexander Likhachev cf00bc8243 [Build] Remove outdated IDEA sync detection 2021-05-18 16:37:35 +03:00
Alexander Likhachev cc183e96a4 [Build] Fix configuration cache undeclared system property read issues
#KT-44611 In Progress
2021-05-18 16:37:29 +03:00
Pavel Punegov 53bf0b1c42 Update Build gradle plugin to 0.0.28 2021-05-12 10:34:36 +03:00
Pavel Punegov 540c69ab89 [native] VersionGenerator: fix error string 2021-05-12 10:34:36 +03:00
Pavel Punegov 86041096fd Return milestone property back to support older versions of plugins
Older gradle plugin's NativeCompilerDownloader uses milestone property.
2021-05-12 10:34:36 +03:00
Pavel Punegov fa525a8359 [native] Support milestones in meta versions
Add milestones to MetaVersion to replace standalone parameter in
compiler version generator. This makes native version match Kotlin one.
2021-05-12 10:34:35 +03:00
Vasily Levchenko 9cbcafa8d1 [dependencies][kotlin-build-gradle-plugin] version 0.0.27
- reading konanVersion and konanMetaVersion from project properties
2021-04-30 10:26:35 +00:00
Nikolay Krasko 5631481747 Drop bintray kotlin-dev (KTI-528) 2021-03-30 12:34:03 +03:00
Dmitriy Novozhilov ab62680a03 Add new configuration flag to kotlin-build-gradle-plugin
This flag is needed for auto-generation of run configurations
  for modularized tests which are used by FIR team
2021-03-15 12:12:59 +03:00
Vasily Levchenko ec0f6b9ede [build][kotlin-build-gradle-plugin] bump version 0.0.25
- kotlin native versioning support
- disable metadata
- fixes of drop 0 maintanence clause
- support for kotlin.native.enabled flag to switch on/off kotlin native build
- add mode to version generatation to dump version to resourse file
2021-02-24 11:07:14 +01:00
Nikolay Krasko 293f2f9950 Build: Replace Bintray with Space for kotlin-dependencies repository (KTI-466) 2021-01-24 15:04:41 +03:00
Dmitriy Novozhilov f531612aa4 Build: update kotlin-build-gradle-plugin version 2020-11-17 18:14:08 +03:00
Dmitriy Novozhilov bab08c29be Build: add several FIR flags to kotlin-build-gradle-plugin 2020-11-17 18:14:08 +03:00
Alexander Udalov 8160f579d3 Build: add useIR/useIRForLibraries to kotlin-build-gradle-plugin 2020-11-17 18:14:07 +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
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
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
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