Commit Graph

6406 Commits

Author SHA1 Message Date
Yahor Berdnikau d7ae7ca911 Ensure all test tasks is finalized by 'cleanTestKitCacheTask' on CI.
^KT-45745 In Progress
2021-10-29 17:34:00 +02:00
Yahor Berdnikau c25d243111 Add 'kgpOtherTests' task.
This will run tests for all support plugins, such kapt, allopen, etc...

^KT-45745 In Progress
2021-10-29 17:34:00 +02:00
Alexander Dudinsky f8dd1b3512 Fix Gradle Integration Tests MPP and Android on MacOS 2021-10-28 11:34:06 +03:00
Mikhail Glukhikh 8bd0b237b7 Convert EXPOSED_PROPERTY_TYPE_IN_CONSTRUCTOR into deprecation error
#KT-28078 Fixed
2021-10-27 19:43:01 +03:00
Ivan Gavrilovic 3e1cf77f54 Kotlin Gradle Plugin integration tests - ensure Android sdk...
... licenses are accepted before running the test build.
2021-10-27 16:41:51 +03:00
Dmitriy Novozhilov f26059a7d3 [FE] Add clear warning about future changes about nullability of safe call with non nullable receiver
^KT-46860
2021-10-27 16:28:37 +03:00
Alexander Likhachev 2f19ff008f [Gradle] Migrate Kotlin/JS tests to the new test DSL
#KT-45745 In Progress
2021-10-26 20:21:15 +03: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
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
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
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
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
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 7943298240 [Wasm] Add sorting function to the stdlib 2021-10-14 17:24:04 +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
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