Commit Graph

7129 Commits

Author SHA1 Message Date
Yahor Berdnikau af6f17c243 Unify kotlinCompilerClasspath for all projects
This will prevent spawning second Kotlin daemon during compilation
except 'buildSrc' compilation. Original change was introduced in
2e515f3945 commit.
2022-05-24 07:58:38 +00:00
Yahor Berdnikau e25778a719 Fix ConcurrentModificationException
This exception is happening on build configuration trying to remove
default jar task artifacts from published one. I've set 'jar' task
to be always disabled instead and just add shadow jar to artifacts.
2022-05-24 07:58:36 +00:00
Yahor Berdnikau cf2d03b914 Move common configuration from /build.gradle.kts into plugin
Move all common to all projects configuration from root build.gradle.kts
into common-configuration convention plugin.
2022-05-24 07:58:36 +00:00
Yahor Berdnikau 262fb138ba Update kotlinx-dataframe to 0.8.0-rc-8 version 2022-05-23 17:23:28 +02:00
Yahor Berdnikau 28f359a3f0 Replace deprecated 'ANDROID_SDK_ROOT' with 'ANDROID_HOME'
This should allow to run build regression benchmarks that are using
Android plugin.
2022-05-23 17:23:24 +02:00
sebastian.sellmair 290fda9c10 [Gradle] Replace o.j.k.g.utils.UnsafeApi with o.j.k.tooling.core.UnsafeApi 2022-05-23 14:40:51 +00:00
sebastian.sellmair 865a91784b Share Test: binary compatibility run configurations 2022-05-23 14:40:50 +00:00
sebastian.sellmair 4f4f749c08 [kpm] Replace KotlinExternalModelContainer with new Extras implementation
This newly introduced `Extras` shall present a more generic mechanism
of attaching data of a given type to any entity.
2022-05-23 14:40:49 +00:00
Alexander Likhachev 7d49d3bac7 [Gradle] Don't try to build relative paths for Kapt exclude rules
#KT-52392 Fixed
2022-05-23 11:58:08 +00:00
Ilya Goncharov e452efe51b [Gradle, JS] environment map as input, not nested
Merge-request: KT-MR-6326
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com>

^KT-51532 fixed
2022-05-23 09:28:09 +00:00
Igor Yakovlev 15ba9682e8 [GradlePlugin] Add mixed mode for js and wasm compilations 2022-05-20 16:33:57 +02:00
sebastian.sellmair d7bfa02bb3 [tooling-core] Add KotlinToolingVersionOrNull factory function 2022-05-19 12:46:04 +00:00
Anton Lakotka bd299ed12c [Test] Rename gcc* to configCache* variable to avoid ambiguity
^KT-51947
2022-05-18 05:48:42 +00:00
Anton Lakotka 1c65ef28f8 [Test] Update warning message for tasks that disables GCC
cherry-picked from 26b4c946e67b25b7206c37ba56a79e5ffeb04dd6

^KT-51947
2022-05-18 05:48:41 +00:00
Anton Lakotka dfd89a45f7 [Test] Disable Configuration Cache for native tasks
cherry-picked from 538cb41a320df93ca85a194b8566ea44457187ca

^KT-43293
2022-05-18 05:48:40 +00:00
Anton Lakotka d2c6489de9 [Gradle] Mark tasks that not compatible with configuration cache
Gradle 7.4 offers new API that allow to exclude task configuration
from being stored in Configuration Cache.

GCC should be supported in further releases.
* KotlinNativeCompile -- KT-43293
* GenerateProjectStructureMetadata
 and TransformKotlinGranularMetadata -- KT-49933

cherry-picked from 7bdde5f4c025f2f55c0038a8d58e0ea78a0ff151

^KT-51946 Verification Pending
2022-05-18 05:48:40 +00:00
Anton Lakotka 399bd750c1 [Gradle] [Test] Add Gradle 7.4.2 to test versions 2022-05-18 05:48:39 +00:00
Ilya Gorbunov eb8e701cb5 Make IntrinsicConstEvaluation annotation internal 2022-05-17 14:38:43 +00:00
nataliya.valtman dcdd1cd14e KT-49780 Do not clean outputs after cache corruption 2022-05-17 08:47:23 +00:00
konstantin.tskhovrebov 59b92c02b4 Add OptIn for KotlinNativeArtifactDSL implementation: mute warning. 2022-05-16 13:54:41 +00:00
konstantin.tskhovrebov 84add3a27e KT-44155: Add 'headers' option to Cocoapod config.
It is needed for Cinteroping with pods without module map inside
2022-05-16 10:57:39 +00:00
konstantin.tskhovrebov 4753c3f4a3 KT-52328: Add '-framework' linker flag only if framework exists. 2022-05-16 10:55:46 +00:00
sebastian.sellmair d737c3ebbe [Gradle][MPP] Setup Gradle attributes for commonizer classpath configuration
KT-51583
2022-05-14 13:49:23 +00:00
Dmitriy Novozhilov 032f17920e [Gradle] Add 1.8 and 1.9 api versions to gradle plugin
^KT-52208 Fixed
2022-05-14 09:54:42 +00:00
Andrey Uskov a3d8ccfc15 [build statistics] Allow reporting milestostone and RC versions 2022-05-13 11:08:37 +03:00
Andrey Uskov 44834bf82c [build statistics] Truncate long values instead of randomization 2022-05-13 11:08:36 +03:00
Ilya Goncharov 75bc90f512 rra/ilgonmic/KT-52221-dry-run-with-empty-nodejs
[Gradle, JS] Disable for wasm

[Gradle, JS] Add test on mocha with dry run should report test state

[Gradle, JS] When run in dry mode, we need special adapter which not run tests

Merge-request: KT-MR-6205
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com>


^KT-52221 fixed
2022-05-11 13:27:31 +00:00
Ilya Goncharov b739344b1c [Gradle, JS] DCE and minimized names could be falsify
[Gradle, JS] Add test on falsify compiler flags

[Gradle, JS] DCE and minimized names could be falsify

Merge-request: KT-MR-6167
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com>

^KT-51957 fixed
2022-05-11 08:51:22 +00:00
Yahor Berdnikau 9850b97ea7 Remove excessive logging 2022-05-10 23:43:55 +02:00
Yahor Berdnikau 1537b2ed3d Update duckduckgo regression benchmarks
Make it compatible with Kotlin 1.7.0 release.
2022-05-10 23:43:55 +02:00
konstantin.tskhovrebov 8b9e91568f KT-49032: Add default framework header search path for Cocoapod cinterop
Similarly Cocoapods logic
https://github.com/CocoaPods/CocoaPods/blob/d18f49392c5e9ed9a2cdcb2ee89391cf7690ee5d/lib/cocoapods/target/build_settings.rb#L1188
2022-05-10 15:10:00 +00:00
Yahor Berdnikau b5449f6ed3 Exclude Android asset-pack and asset-pack-bundle plugins
'kotlin-android' plugins will not try to configure the project, when
any of these two plugins are applied. Usually these plugins are used
to handle Android resources and no compilation is required.

^KT-51898 Fixed
2022-05-10 13:48:02 +00:00
Yahor Berdnikau 92df5cd67f Revert usage of NormalizeLineEndings
This annotation causes wrong UP-TO-DATE checks leading to unexpected
build failures.

^KT-52313 Fixed
2022-05-09 11:15:38 +00:00
Yahor Berdnikau 6a901c79a5 Add Gradle test for KT-51913 2022-05-09 11:42:21 +02:00
Vyacheslav Gerasimov 7157a54155 Fix unnecessary usages of Locale.getDefault() 2022-05-06 22:08:25 +00:00
sebastian.sellmair d0e7657035 [Gradle][MPP] Fix test cinterop caching on Windows
KT-52243
2022-05-06 16:08:40 +02:00
sebastian.sellmair d43fdfeb22 [Gradle][MPP] CInteropIdeaSyncIT: Ignore assertion after running leniently failed task again.
KT-52243
2022-05-06 16:08:40 +02:00
Ivan Gavrilovic 4e4508de2b KT-52243: Fix cacheability of CInteropProcess
Remove manual up-to-date checks that were preventing task
from being retrieved from the build cache. When outputs are
not present, task would always run because of
https://github.com/gradle/gradle/issues/9095.

Test: CommonizerIT
2022-05-06 16:08:40 +02:00
Vyacheslav Gerasimov dcd17e41a4 Fix capitalization related deprecation warnings 2022-05-04 19:15:01 +00:00
sebastian.sellmair 40d62bf1a7 :tools:binary-compatibility-validator: Remove explicit kotlinx-metadata-jvm dependency
The kotlinx:binary-compatibility-validator dependency is expected
to bring this dependency in.

KT-52045
2022-05-04 18:31:40 +00:00
sebastian.sellmair fd0645548d Update binary-compatibility-validator to v0.9.0
KT-52045
2022-05-04 18:31:39 +00:00
Hung Nguyen 3321a1b4e2 [NewIC] Fix build failure when enabling new IC in projects using Kapt
Originally, the classpath-snapshot output directory was:
  1. <project>/build/kotlin/<task>/classpath-snapshot for KotlinCompile
  2. <project>/build/tmp/kapt3/classpath-snapshot/<source-set> for
     KaptGenerateStubsTask

In commit 1d1c6d5, we started using location 1 for both tasks for
consistency.

Around that time, commit 46cb490 had a merge conflict with the above
commit, but the conflict resolution was not correct yet:
  - The property was set twice, causing a build failure.
  - Location 2 was set for KaptGenerateStubsTask again.

This commit fixes both issues, so that:
  - The property is set only once.
  - Location 1 is used for both tasks.

Test: Added Kapt3IT.testSimpleWithIC_withClasspathSnapshot to prevent
      regression

^KT-52187 Fixed
2022-05-04 12:43:19 +03:00
Yahor Berdnikau e38ca74927 Fix compilation warnings in 'pill-importer' project
These warnings have fail compilation with bootstrap.
2022-05-03 11:47:30 +00:00
Yahor Berdnikau e4c84032e1 Fix users could not configure task using deprecated dsl.KotlinJvmOptions
^KT-52239
2022-05-03 11:47:29 +00:00
konstantin.tskhovrebov 9220d47594 KT-51861: Apply custom cocoapods framework name to fat framework. 2022-05-02 14:46:40 +00:00
Ilya Chernikov a78d063bef Scripting: fix script type extraction on psi2ir
#KT-48812 fixed
2022-04-29 11:03:12 +00:00
Yahor Berdnikau cb35e868cc Don't add Kotlin specific attributes to legacy 'default' configuration
^KT-51913 Fixed
2022-04-29 08:29:34 +00:00
Simon Ogorodnik 58885a1b07 KT-52217 Rename 'use-fir' to 'use-k2', update message 2022-04-28 15:42:42 +00:00
Yahor Berdnikau 0d38f293d5 Properly set jvmTarget from toolchain for KaptGenerateStubsTask
^KT-51415 Fixed
2022-04-27 14:01:05 +00:00
nataliya.valtman a05bb3c77c Store module info under own module name for incremental compilation
#KT-51463 Fixed
2022-04-27 13:17:07 +00:00