Commit Graph

10637 Commits

Author SHA1 Message Date
Dmitriy Novozhilov 993021a71d [Build] Use 1.8 target version instead of 1.6 while using JPS build 2022-05-19 07:14:21 +00:00
Ivan Kylchik 1564f2c549 Mark all declarations that will be evaluated with ir interpreter 2022-05-18 21:19:54 +03:00
Ilya Muradyan 00819c421f [REPL] Report script codegen errors in advance 2022-05-18 10:02:58 +03: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 4a6466e290 Include kotlin.internal package from core/builtins/src into stdlib-common compilation
It is required because internal annotations from there can be used in
other compiled kotlin-stdlib-common sources.
2022-05-17 14:38:44 +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
Ilya Muradyan edacd90a6c [Scripting] Take local repository path from settings if it exists 2022-05-16 12:29:25 +00:00
Ilya Muradyan 46563e93ea [Scripting] Allow transitive resolution of non-JAR artifacts
It allows to resolve libraries sources which is crucial for
Kotlin Notebook plugin.
2022-05-16 11:45:47 +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
Ilya Muradyan 537ae662d7 [Scripting] Pass exception when constructing ScriptDiagnostic 2022-05-06 13:01:32 +00: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
Ilya Muradyan 0ea9c1fbce [Scripting] Remove obsolete Aether dependencies and add new maven.resolver ones instead
scripting-dependencies-maven actually depended on both maven.resolver
and Aether dependencies, it caused an issue in KScript
(https://github.com/holgerbrandl/kscript/issues/345) and caused some
issues in the past. These problems were partially solved with exclude()
which is now removed.
2022-05-04 10:31:02 +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
Ilya Muradyan cfd11f2075 [Scripting] Provide better errors reporting for authentication issues
^KT-50357
2022-05-03 03:42:47 +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
Ilya Chernikov 3e19e9d190 Scripting: fix loadDependencies property use with cached scripts
#KT-50902 fixed
2022-04-29 11:03:12 +00:00
Ilya Chernikov f7fb586ee5 Scripting: fix JSR-223 invocable handling of receivers 2022-04-29 11:03:12 +00:00
Ilya Chernikov 49902bb851 IR Scripting: allow to specify nullable types for provided props...
but only explicitly. This does not fix a breaking change described in
#KT-52120, because it seems the correct behavior, but it allows
to "workaround" the problem by specifying nullability explicitly.
Also improve handling of nullable bindings in JSR-223.
#KT-49173 fixed
#KT-51213 fixed
2022-04-29 11:03:11 +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
Igor Laevsky d46102b129 [Wasm] Fix few things around assertions in stdlib 2022-04-27 20:21:21 +00:00
Yahor Berdnikau 0d38f293d5 Properly set jvmTarget from toolchain for KaptGenerateStubsTask
^KT-51415 Fixed
2022-04-27 14:01:05 +00:00