Igor Laevsky
049e48e780
[Wasm] Keep error message for the IAE exception
2021-10-14 17:24:03 +03:00
Igor Laevsky
14eee7c539
[Wasm] Add kotlin-test-wasm library
2021-10-14 17:24:02 +03:00
Viacheslav Kormushkin
fcb8f331dc
KMM: can't set isAllowInsecureProtocol using cocoapods plugin
...
#KT-48259
Merge-request: KT-MR-4728
2021-10-13 12:59:49 +00:00
Svyatoslav Kuzmich
90dd0c6150
[JS] Fix and mute failed tests on TC
2021-10-13 01:26:27 +03:00
Yahor Berdnikau
4339671457
Migrate configuration cache tests to new test DSL.
...
^KT-45745 In Progress
2021-10-12 19:22:15 +03:00
Yahor Berdnikau
208422d2ec
Populate settings also for buildSrc module.
...
^KT-45745 In Progress
2021-10-12 19:22:14 +03:00
Yahor Berdnikau
38849b7be4
Add helper to create temp directory.
...
This directory will be cleaned up on successful test, but will be left
on test error.
^KT-45745 In Progress
2021-10-12 19:22:13 +03:00
Yahor Berdnikau
6c747d33f7
Add Js and MPP plugins to default setup.
...
^KT-45745 In Progress
2021-10-12 19:22:12 +03:00
Yahor Berdnikau
9e21bda307
Also setup default settings values for 'settings.gradle.kts'.
...
^KT-45745 In Progress
2021-10-12 19:22:10 +03:00
Yahor Berdnikau
5d07eb77f2
Allow declaring @GradleTestVersions for the whole test suite.
...
^KT-45745 In Progress
2021-10-12 19:22:09 +03:00
Alexander Likhachev
8c8b311d9f
[Gradle, JS] Detect classpath changes in KotlinJsDce
...
Now -Xdev-mode-overwriting-strategy=older compiler argument is handled on Gradle side to detect incremental changes to increase performance
#KT-35640 Fixed
2021-10-12 09:31:09 +00:00
Alexander Likhachev
5db4ec15d2
[Gradle, JS] Add test for KT-35640
2021-10-12 09:31:09 +00:00
Alexander Likhachev
a0e6fb03f0
[Gradle] Do not register compilation outputs in clean task
...
Calculations of compilation outputs implicitly requires compile task configuration to execute `clean` task. This implicit configuration works unstable in parallel builds. We probably fine with the fact that outputs that are configured to be outside of build directory will not be cleaned by `clean` task
#KT-48046 Fixed
2021-10-12 09:29:57 +00:00
Svyatoslav Kuzmich
a6afb7cb41
[JS IR][Wasm] Preload (Suspend)FunctionN needed in lowerings
...
This reverts commit 15d178d850d15675ee39cbd833d13f4c8aed83ff.
2021-10-12 08:42:01 +03:00
Svyatoslav Kuzmich
3bce0cc055
[Wasm] Support coroutines
...
- Reuse JS IR Suspend function lowering
- Fix types
- Disable reinterpretCast-based optimization for inline
classes
- Add basic support to Wasm stdlib
- Explicitly transform suspend functions into regular functions
with continuations
- Clean suspend function handling from JS IR codegen
2021-10-12 08:42:01 +03:00
Svyatoslav Kuzmich
b8a5b9bb02
[Native-Wasm][Stdlib] Workaround FE bug
...
Workaround bug that causes frontend to produce invalid IR (KT-49182)
2021-10-12 08:42:00 +03:00
Alexey Subach
ca2f37f6eb
Add possibility to get location of the script.main.kts file
...
#KT-48414 fixed
2021-10-11 15:45:57 +02:00
Alexey Subach
7ddf83f32d
Add link to ScriptCompilationConfiguration into ScriptEvaluationConfiguration
...
#KT-48758 fixed
2021-10-11 15:45:57 +02:00
Konstantin Tskhovrebov
be0c4da04a
Migrate KotlinNativeTasks to KN compiler arg builder.
2021-10-11 16:42:32 +03:00
Konstantin Tskhovrebov
54b3de775d
Add K/N compiler args builders.
2021-10-11 16:42:32 +03:00
Viacheslav Kormushkin
b00a43802a
[Gradle, MPP] address KT-42755 Cocoapods plugin using backslashes on Windows
...
Co-authored-by: Andreas Mattsson <andreas@andreasmattsson.com >
Merge-request: KT-MR-4719
2021-10-11 13:04:05 +00:00
Viacheslav Kormushkin
57ce178bb3
Build with CocoaPods plugin fails if CONFIGRATION contains spaces
...
#KT-48771
Merge-request: KT-MR-4724
2021-10-11 12:03:51 +00:00
Andrey Uskov
4a99f04b41
Add simple test of KAPT working under JDK 16
2021-10-10 16:40:35 +03:00
Svyatoslav Kuzmich
9ef899ef10
[Wasm] Reuse Callable reference and SAM lowerings from JS
2021-10-08 07:24:41 +03:00
Svyatoslav Kuzmich
1ed2748334
[Wasm] Generate [K][Suspend]FunctionN on demand and support big arity
2021-10-08 07:24:41 +03:00
Yahor Berdnikau
5d2739e6f0
Extract BuildOptions into separate file.
...
^KT-45745 In Progress
2021-10-07 14:55:57 +02:00
Yahor Berdnikau
fc00d0dc18
Introduce GradleProject class.
...
This allows to split concepts of TestProject(whole build and options)
and actual Gradle project, which could be one of the main project
subprojects.
^KT-45745 In Progress
2021-10-07 14:55:57 +02:00
Ilya Goncharov
4925beedc0
[Gradle, JS] Update NPM versions
...
^KT-49124 fixed
2021-10-07 15:48:36 +03:00
Yahor Berdnikau
82d947d3a4
Migrate ConfigurationAvoidanceIT tests into new DSL.
...
^KT-45745 In Progress
2021-10-07 12:41:08 +02:00
Yahor Berdnikau
2f87c28634
Better test setup for Android projects.
...
^KT-45745 In Progress
2021-10-07 12:41:03 +02:00
Viacheslav Kormushkin
cd9d74b029
Generate podspec for XCFramework suitable for publishing
...
#KT-47812
#KT-47633
#KT-43815
#KT-42630
#KT-42105
#KT-48808
Merge-request: KT-MR-4483
2021-10-07 08:14:57 +00:00
Dmitry Savvinov
50050154d3
[gradle, mpp] Change how outputs of associated compilations are handled
2021-10-06 17:10:17 +03:00
Ilya Gorbunov
9c4a2d4431
Leave all deprecated duration API experimental KT-46784
2021-10-06 13:51:23 +00:00
Yahor Berdnikau
b7cfbf031c
Snapshot compile tasks outputs and restoring them on compilation error.
...
It happens Gradle has low performance on passing 'Array<Byte>' or
'List<Byte>' via properties api. In this change, task outputs approach
was changed to snapshot pre-execution state by coping outputs to the new
directory and coping them back on incremental compilation error.
^KT-46406 Fixed
2021-10-06 11:56:21 +00:00
Yahor Berdnikau
e30b11fc05
Unify build cache debug approach.
...
^KT-45745 In Progress
2021-10-06 13:53:03 +02:00
Yahor Berdnikau
862d46f58b
Enable publishing test build build-scan.
...
^KT-45745 In Progress
2021-10-06 13:53:03 +02:00
Yahor Berdnikau
dd0f01d93d
Deprecate 'kapt.use.workers.api' property.
...
^KT-48826 Fixed
2021-10-06 10:10:34 +00:00
Nikolay Krasko
1d2c1140a4
Minor: rewrite testResolveWithRuntime without !!
2021-10-05 17:51:50 +03:00
Nikolay Krasko
1d42d86537
Minor: unify kotlin version used in MavenResolverTest
2021-10-05 17:51:50 +03:00
Nikolay Krasko
824c227d81
Stop removing libraries from local maven in MavenResolverTest
...
While it's a good practice to remove all files that were downloaded
during the test execution, here we delete files in common directory
without checking that files were not present before test start.
This might be dangerous as we might fail other tests and programs.
As we manipulate common maven directory it's better to leave downloaded
files untouched
2021-10-05 17:51:50 +03:00
Nikolay Krasko
31e30dc852
Fix external issue with org.uberfire library in MavenResolverTest
...
Use kotlin library instead.
java.lang.AssertionError: org.eclipse.aether.resolution.DependencyResolutionException: Failed to collect dependencies at org.uberfire:uberfire-io:jar:7.39.0.Final -> org.uberfire:uberfire-nio2-model:jar:7.39.0.Final -> com.thoughtworks.xstream:xstream:jar:1.4.11.1 -> xmlpull:xmlpull:jar:1.2.0
2021-10-05 17:51:48 +03:00
nataliya.valtman
d3dc9b19b8
KT-48620: Avoid build scan listener creation without --scan property
2021-10-05 09:06:21 +00:00
Ivan Gavrilovic
32bf7f33a7
KT-49066: Use correct moduleName in the incremental compilation
...
When storing mapping from moduleName to module information, ensure
that values from kotlinOptions DSL objects are taken into
consideration.
Fixes #KT-49066
Test: KotlinAndroid70GradleIT.testCustomModuleName
2021-10-04 18:41:52 +03:00
Svyatoslav Kuzmich
fa3e75463e
[Wasm] Support throwIAE and throwNoBranchMatchedException
...
Add a couple of test stubs
Unmute tests
2021-10-02 06:14:36 +00:00
Alexander Likhachev
0eca8b9727
[Gradle] Optimize configuration time
...
#KT-48884 Fixed
2021-10-02 03:00:41 +00:00
Georgy Bronnikov
41e38d5a1a
JVM_IR: move serialized IR to a separate annotation
2021-10-02 00:56:46 +03:00
Svyatoslav Kuzmich
ab9a23cbfa
[Wasm][Stdlib] Reuse K/N collections and StringBuilder
2021-10-01 17:18:49 +03:00
Svyatoslav Kuzmich
6ad6bca503
[Stdlib] Fix K/N StringBuilder insertRange capacity issue
2021-10-01 17:18:48 +03:00
Alexander Likhachev
a1424489b7
[Gradle, JS] Reduce configuration cache state size by data deduplication
...
#KT-49037 Fixed
2021-10-01 13:44:09 +00:00
Ilya Goncharov
18189ece48
[JS IR] Fix stdlib API
2021-10-01 13:32:14 +00:00