Commit Graph

9739 Commits

Author SHA1 Message Date
Starlight220 e77f72071d migrate KmValueParameter.type (KmType? -> lateinit KmType) 2021-10-26 18:21:38 +02:00
Ilya Gorbunov 4e6243c4f7 Restore useIR Gradle option as HIDDEN (KT-45504)
This will allow to KEEP binary compatibility with
the Compose plugin 1.0.1 for a bit longer

Merge-request: KT-MR-4857
2021-10-26 15:37:31 +00:00
Yahor Berdnikau 98791000bf Add @GradleWithJdkTest annotation.
Adding this annotation to the test will provide requested JDKs + Gradle
versions matrix as test parameter.

It is also possible to filter out supported by Gradle version JDKs.

^KT-45745 In Progress
2021-10-26 11:50:18 +00:00
Yahor Berdnikau ca3e1b18dc Add all supported Gradle versions.
^KT-45745 In Progress
2021-10-26 11:50:17 +00:00
nataliya.valtman eec4ac644c KT-49159 Transform KotlinGradleBuildService to BuildService 2021-10-26 09:56:15 +00:00
Anton Lakotka dbe134e8b2 [Gradle] KT-48818 Fix mpp13XFlagsSetByPlugin setter
Use mpp13XFlagsSetByPlugin to prevent false-positive "GranularMetadataTrueHasNoEffect" warning

#KT-48818 Fixed
2021-10-25 08:05:26 +00:00
Anton Lakotka 1057f24a69 [Gradle] KT-48818 Add tests for subprojects
Reuse already existing function to assert that
build log does not contain certain sub-strings
2021-10-25 08:05:26 +00:00
Anton Lakotka cb103dae75 [Gradle] Don't show false positive warning about old hmpp flags
When HMPP is enabled by default it is still printing warnings about
enableDependencyPropagation and enableGranularSourceSetsMetadata flags

#KT-48818 Fixed
2021-10-25 08:05:25 +00:00
Ilya Muradyan a22c8c8f2f [scripting] Fix script resolver options parsing
#KT-49400 Fixed
2021-10-25 04:15:35 +03:00
Ivan Kylchik 225b064470 Implement new 'mix' test mode
This mode must be used when one configuration will run several tests
for different JUnit versions.
2021-10-25 00:14:20 +03:00
Svyatoslav Kuzmich 4fc461a2ff [Wasm] Imporove external interface support
* Support boxing/unboxing when casting to Any
* Support ===, equals, hashCode, toString

* Support adapting String in interop boundary
2021-10-23 01:26:12 +03:00
Svyatoslav Kuzmich baa53b5cf3 [Wasm][Stdlib] Use array copy in String.toCharArray()
And don't use copy during internal non-mutating algorithms
2021-10-23 01:26:11 +03:00
Ilya Gorbunov a2b9c2bd78 Document Regex constructor using "u" flag in JS #KT-46694 2021-10-22 11:51:48 +00:00
Ilya Gorbunov 9456cd0f5d Improve Duration docs
- Document overflow situation in general
- Document possible rounding in operations involving Double
- Update kotlin.time package description
2021-10-22 11:51:48 +00:00
Alexander Likhachev e9c8135dfa [Gradle] Add Gradle & task property to set compiler execution strategy
#KT-49299 Fixed
2021-10-22 09:57:54 +00:00
Alexander Likhachev b4cb7f3610 [Gradle, JS] Make packageJsonHandlers compatible with configuration cache
#KT-49061 Fixed
2021-10-22 09:57:54 +00:00
Alexander Likhachev 6a6cc1db77 [Gradle, JS] Add custom package json into configuration cache IT
#KT-49061 In Progress
2021-10-22 09:57:53 +00:00
Alexander Likhachev 1160e3875a [Gradle] Declare kotlin.caching.enabled system property read
#KT-49107 Fixed
2021-10-22 09:57:53 +00:00
Alexander Likhachev f9d4e0639c [Gradle, JS] Reduce KotlinJsTest configuration cache footprint
#KT-49095 Fixed
2021-10-22 09:57:52 +00:00
Yahor Berdnikau ae2d447ef4 Update KGP tests readme.
Reflect actual test setup information.

^KT-45745 In Progress
2021-10-22 07:18:43 +00:00
Yahor Berdnikau 2b53965f11 Add tasks and annotations for Gradle/Jvm and Gradle/Js tests.
We will split our tests into supported platforms, like JVM, Js, etc...
Tests for supported Gradle features should be added per platform.

To run any test (except daemons) also "all" task was added.

^KT-45745 In Progress
2021-10-22 07:18:43 +00:00
Sergey Igushkin 8868738ac8 KT-48709: Fix CInterop configurations ambiguity with user variants
* Introduce a new org.gradle.usage value: kotlin-cinterop

* Add compatibility+disambiguation rules to ensure that kotlin-cinterop
  consumers can also fall back to ordinary (kotlin-api) published
  variants, but not vice versa

  * This ensures that ordinary kotlin-api consumers don't encounter
    equally-compatible candidates where one is the normal API elements
    and the other is C interop API elements

* Set org.gradle.usage = kotlin-cinterop in the C interop API elements
  configurations and dependency-consuming configurations

Issue #KT-48709
2021-10-21 10:17:52 +00:00
Sergey Igushkin a474e8a00b KT-49189: fix project(...) dependencies on MPP from pure-Java consumers
* Don't set the localToProject attribute anymore, as it prevents proper
  disambiguation if not set properly on all configurations, while all
  the intentionally-public configurations
  should already have the same value.

* Disambiguate o.j.k.platform.type Android vs JVM preferring JVM, as
  Android should have other attributes which make pure-Android consumers
  match the Android MPP variants.

* With Gradle 7.0+, set the attribute
  `org.gradle.api.attributes.java.TargetJvmEnvironment` on the JVM &
  Android elements configurations, which helps pure-Android consumers
  to match the Android, not JVM variants. This fixes KT-30961 for
  Gradle 7.0+ and AGP 7.0+

Issues: KT-49189, KT-30961
2021-10-21 10:17:52 +00:00
Yan Zhulanow 46b94a4757 Pill: Include certain modules into the BASE variant 2021-10-19 19:55:06 +03:00
Ilya Gorbunov 0487261be8 Duration: postpone raising deprecation to error for top-level extension properties
#KT-46229
2021-10-19 09:29:16 +00:00
Viacheslav Kormushkin 9307757bb4 [Gradle][Cocoapods] Error messages for the case of invalid pod repo
#KT-42202

Merge-request: KT-MR-4790
2021-10-19 08:15:38 +00:00
Nikolay Krasko 3ffc8c4a82 Remove publication of kotlin-test-wasm (KTI-669) 2021-10-19 02:13:28 +03:00
Nikolay Krasko 337b55e806 Minor: remove commented code from kotlin.kotlin-test.wasm/build.gradle.kts 2021-10-19 02:13:27 +03:00
Abduqodiri Qurbonzoda f0a75e7843 Advance deprecation level of Experimental and UseExperimental annotations to ERROR 2021-10-17 21:14:36 +00:00
Yahor Berdnikau afb68d15d6 Migrate DeterministicBuildIT tests into new test dsl.
^KT-45745 In Progress
2021-10-15 15:04:24 +02:00
Yahor Berdnikau a487e91124 Migrate BuildCacheRelocationIT test to new test DSL.
^KT-45745 In Progress
2021-10-15 15:11:23 +03:00
Yahor Berdnikau 031c5f47d9 Populate default settings even when 'build.gradle' file is missing.
^KT-45745 In Progress
2021-10-15 15:11:22 +03:00
Svyatoslav Kuzmich 0f66f85cf9 [Wasm] Support main function 2021-10-15 13:58:55 +03:00
Ilya Goncharov 4cca78f8d8 [Gradle, JS] Igore if kotlin_test not found 2021-10-15 11:37:42 +03:00
Viacheslav Kormushkin 86c6ca7f5f [Gradle][Cocoapods] Private Pods with SSH Git Url not allowed in custom specRepos
#KT-48887

Merge-request: KT-MR-4770
2021-10-15 06:36:22 +00:00
Alexander Likhachev 754595e496 [Gradle, JS] Fix NPM resolution synchronization issues
#KT-49201 Fixed
2021-10-15 00:32:40 +00:00
Igor Laevsky cb5bef1535 [Wasm] Remove unnecessary testHelpers and add assertions from stdlib 2021-10-14 17:24:06 +03:00
Igor Laevsky bede039c08 [Wasm] Add compiler support for the kotlin.test library 2021-10-14 17:24:05 +03:00
Igor Laevsky 7943298240 [Wasm] Add sorting function to the stdlib 2021-10-14 17:24:04 +03:00
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