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
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
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
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
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
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
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
Alexander Likhachev
a1424489b7
[Gradle, JS] Reduce configuration cache state size by data deduplication
...
#KT-49037 Fixed
2021-10-01 13:44:09 +00:00
Abduqodiri Qurbonzoda
83364d78f5
Replace JVM StringBuilder.appendln usages with appendLine
2021-10-01 15:12:16 +03:00
Yahor Berdnikau
013139f18e
Unset MapProperty if not task outputs is present.
...
By default, Gradle creates such property as empty. 'isPresent' returns
'true' in such case.
^KT-46406 Fixed
2021-09-30 18:55:42 +02:00
Yahor Berdnikau
de8d4e9e3c
Fix reflection call is not working on older Gradle versions.
...
It happens, older Gradle versions has two functions with the same name,
but different parameters.
2021-09-30 18:55:42 +02:00
Hung Nguyen
b5f74ef9a6
KT-45777: Add tests for top-level functions
...
Address review + Minor changes
Fix error when building with -Pbootstrap.local=true
Fix tests failing on Windows due to '/' character
2021-09-30 17:57:47 +03:00
Hung Nguyen
e26dc4d574
KT-45777: Compute classpath changes based on changed snapshots only
...
to avoid unnecessarily loading unchanged ones.
Duplicate classes will make this a bit tricky. This commit outlines the
algorithm to handle them, the full implementation will follow later.
Also handle removed classes when computing classpath changes.
Test: New tests in ClasspathChangesComputerTest
2021-09-30 17:57:47 +03:00
Ilya Gorbunov
04d70162d2
Make DurationUnit not a typealias of TimeUnit on JVM
...
Provide conversion functions between DurationUnit and TimeUnit
2021-09-30 14:31:54 +00:00
Dmitriy Novozhilov
e933c7b6d9
[Build] Remove testApi(intellijDep()) dependencies from all modules
...
Since IDEA moved most of it's jars to java 11 it's illegal to use them
in our dependencies, so all modules which use `intellijDep()` should
carefully specify which jars they use
2021-09-30 14:41:31 +03:00
Denis.Zharkov
7c3383bb39
Fix warnings after KT-48899
...
All API ToolingModelBuilder is marked as NonNullApi
https://github.com/gradle/gradle/commit/f93bf949486e73655810ab49ad316100b1c2804c#diff-76e89b92025ccef4e2763c5ee8d30bde939c4a9db26bfc913eac88069cbf5d36
2021-09-30 14:36:27 +03:00
Ilya Gorbunov
ec5c06238d
Split language and api version lifetimes, restore apiVersion 1.3 support
...
KT-49007
2021-09-29 21:46:53 +03:00
Ilya Gorbunov
47adc4fdaa
Prolong -no-stdlib option lifetime and regenerate Gradle compilation options
...
-no-stdlib may still be required internally for kotlin gradle plugin
to launch the compiler with the correct options.
2021-09-29 21:46:52 +03:00
Alexander Likhachev
c6e1e4fd8e
[Gradle] Make compileOnly/compile/runtime configurations not resolvable
...
#KT-48245 Fixed
2021-09-29 16:34:10 +00:00
Yahor Berdnikau
60cbfbf107
Change KotlinGradleSubplugin deprecation level to ERROR.
...
^KT-48830 Fixed
2021-09-29 12:13:02 +00:00
Svyatoslav Kuzmich
841f5a583e
[Wasm] Support wasm target in multiplatform plugin
2021-09-28 18:26:07 +03:00
sebastian.sellmair
4eaabe54ee
[Gradle] Finalize naming of 'runProjectConfigurationHealthCheckWhenEvaluated' API
...
^KT-48823
2021-09-28 12:11:10 +00:00
sebastian.sellmair
5430b19262
[Gradle] Add 'gradleKotlinDsl' dependency to 'functionalTestImplementation'
...
^KT-48823
2021-09-28 12:11:10 +00:00
sebastian.sellmair
29fb74d27d
[Gradle] Don't run post-evaluation-checks on projects that failed to configure
...
When in 'lenient' or 'classpath' mode, Gradle will catch exceptions
during project evaluation and collect them into the
'ClassPathModeExceptionCollector'.
Running checks on the project after evaluation should only happen
if the project is properly configured (aka no such exceptions collected)
to prevent false positive error reports (that will then fail
the Gradle process and swallow the real cause)
^KT-48823 Verification Pending
2021-09-28 12:11:09 +00:00
Yahor Berdnikau
e4827efb4a
Remove WorkersIT test.
...
Now all compilations are using workers and issues should be covered
by other tests.
^KT-46406 Fixed
2021-09-28 11:41:09 +00:00