10537 Commits

Author SHA1 Message Date
Timofey Solonin 5af8b9e819 [MPP] Remove obsolete targets from KlibBasedMppIT
^KT-58822
2023-06-14 08:50:53 +00:00
Timofey Solonin 2353424817 [MPP] Remove obsolete targets from CommonizerIT.commonizeNativeDistributionWithIosLinuxWindows
^KT-58822
2023-06-13 18:31:46 +00:00
Timofey Solonin d7a2e11011 [MPP] Remove obsolete targets from CommonizerHierarchicalIT.commonizeHierarchicallyMultiModule
^KT-58822
2023-06-13 16:04:38 +00:00
Timofey Solonin e39d9c2c35 [MPP] Remove mingwx86 from CommonizerIT.commonizeMultipleCInteropsWithTests
^KT-58822
2023-06-13 14:53:38 +00:00
Dmitrii Krasnov 0252f7c586 Improved kdoc for OsCondition annotation 2023-06-13 12:37:38 +00:00
Timofey Solonin 0c464450a9 Remove extraneous checks 2023-06-13 12:32:41 +00:00
Timofey Solonin 76eef2adb1 [MPP] Remove obsolete targets from MppCInteropDependencyTransformationIT.ComplexProject
^KT-58822
2023-06-13 12:32:41 +00:00
Dmitrii Krasnov 267068546f migrated git connected cocoapods test to new test dsl (junit 5 and gradle test kit)
#KT-51553 In Progress
2023-06-13 06:34:33 +00:00
Anton Lakotka 67d933185a [Gradle] Apply Language Settings in the correct Lifecycle Stages
After introduction of KGP Lifecycle stages the application of
Language Settings to Targets and Compilation (from source set level)
wasn't synchronized. Which led to data flow race. Delaying this
application to correct stages solves the data flow race.

^KT-59063
2023-06-12 13:19:52 +00:00
Anton Lakotka b097292ddf [Gradle] Update setupGeneralKotlinExtensionParameters to work correctly
with KGP lifecycles. It is unknown whether given source set is in main
compilation or not until certain lifecycle stage (AfterFinaliseRefinesEdges)

Therefore, configuring kotlin extension parameters that should
be delayed.

^KT-59063
2023-06-12 13:19:52 +00:00
Alexander.Likhachev 10285b32f1 [Gradle] Restore special handling for OOM as a cause of RemoteException
Fixup to KT-59191
2023-06-09 17:44:41 +02:00
Timofey Solonin 97e48eee7a [MPP] Remove unnecessary platform limitations in CommonizerHierarchicalIT
^KT-58822
2023-06-09 12:24:01 +00:00
Yahor Berdnikau 6aff392434 [Gradle] Fix moduleName is not possible to set in native via compilation
^KT-57823 Fixed
2023-06-09 08:24:14 +00:00
Anton Lakotka 938dd65881 [Gradle] test lazy resolved configuration can handle circular dependencies
In gradle it is possible to add dependency to configuration which
is resolved to itself. It is possible due to nature of Configuration
that can contain both: dependencies and artifacts. When configuration
has dependency on itself, it practically means that this dependency
will be resolved to configuration's artifacts.

LazyResolvedConfiguration should be capable to handle such dependencies
2023-06-08 22:10:24 +00:00
Anton Lakotka 2b26b0c540 [Gradle] Add integration test for Icerock Mobile Multiplatform plugin
^KT-59049
2023-06-08 22:10:24 +00:00
Anton Lakotka e5d35f7d1a [Gradle] deprecate android and introduce androidTarget preset
Android preset needs to be removed in favor of Android Pluggable Target

Changes were originally introduced by commit:
becf50ee0f
but then, unfortunately, reverted due to binary compatibility issues

^KT-59049 Verification Pending
^KT-57903 Verification Pending
2023-06-08 22:10:24 +00:00
Anton Lakotka 5a8b6e9603 Revert "[Gradle/MPP] Refactored KotlinTargetContainerWithPresetFunctions"
This reverts commit becf50ee

These changes are binary incompatible due to move of methods with
default arguments.

^KT-59049 In Progress
^KT-57903 In Progress
2023-06-08 22:10:24 +00:00
Alexander.Likhachev 14460db8e5 [Gradle] Provide relevant error message on daemon crash
#KT-59191 Fixed
Related to KT-55385
2023-06-08 15:34:34 +00:00
Ilya Goncharov 96a4821df6 [Gradle, JS] Rename NPM aggregated configuration
^KT-59116 fixed
2023-06-08 14:40:13 +00:00
Ilya Goncharov b783a87c25 [Gradle, JS] Use workaround to not link provider with task
^KTIJ-25757 fixed
2023-06-08 13:30:16 +00:00
Ilya Goncharov 4c9b94330d [Gradle, Wasm] Use invariant path separator for wasm karma
^KT-58931 fixed
2023-06-08 13:18:06 +00:00
Yahor Berdnikau 2f7ae074f0 [Maven] Fix configured remote repositories that are not participating in compiler plugin artifacts resolve
^KT-58978 Fixed


Co-authored-by: Yahor Berdnikau <egorr.berd@gmail.com>

Merge-request: KT-MR-10519
Merged-by: Aleksei Cherepanov <aleksei.cherepanov@jetbrains.com>
2023-06-08 12:26:59 +00:00
Nataliya.Valtman af05f4c201 KT-58662 Fix build reports for Gradle 8.1 with Configuration Cache 2023-06-08 10:07:35 +00:00
Timofey Solonin bc306844af [MPP] Replace obsolete linuxArm32Hfp with mingwX64 in CommonizerIT test for KT-48138
^KT-48138
^KT-58822
2023-06-07 19:27:02 +00:00
Timofey Solonin 4cb90aed52 [MPP] Remove obsolete target from CommonizerIT test for KT-47641
^KT-47641
^KT-58822
2023-06-07 18:45:01 +00:00
Timofey.Solonin 928c590599 [MPP] Remove obsolete targets from KotlinTargetHierarchyDslTest
and add missing assertions for the targets that are not checked

^KT-58822
2023-06-07 15:20:05 +00:00
Timofey Solonin f27ca23000 [MPP][Gradle] Replace obsolete linuxArm32Hfp target with mingwX64 in MppCInteropDependencyTransformationIT.KT50952
^KT-50952
^KT-58822
2023-06-07 15:19:14 +00:00
Yahor Berdnikau 4a501a257e [Gradle] Restore Kapt import compatibility with older Kotlin plugin releases
Still supported IDEA/Kotlin plugin releases relies on
'kotlin-annotation-processing-gradle' artifact name in compiler plugins
classpath. I've restored this publication usage until we will stop
support Kotlin plugin versions that doesn't know about
'kotlin-annotation-processing-embeddable' name.

^KTIJ-25586 Fixed
2023-06-07 13:21:57 +00:00
Sebastian Sellmair a80d6a7b74 [Gradle] Ide Dependency Resolution: Filter 'loop' or 'self' dependencies
Those are dependencies that point back to the original project.
This can happen with two projects like

```
// project a
kotlin {
    commonMain.get().dependencies {
        api(project(":b"))
    }
}

// project b
kotlin {
    commonTest.get().dependencies {
        implementation(project(":a"))
    }
}
```

Where b(test) -> a -> b

^KT-59020 Verification Pending
2023-06-07 12:38:54 +00:00
Yahor Berdnikau 67090ff10a [Gradle] Sync ListProperty, SetProperty and MapProperty types as non-convention
Such approach, while does not conform conceptually, ensures
compatibility with existing user build scripts and works more logically
for external users: https://github.com/gradle/gradle/issues/18352

^KT-59056 Fixed
2023-06-06 17:02:06 +00:00
cristiangarcia 46d113605b Adopt configuration-avoidance where possible
Before this change `./gradlew help` (with native enabled)
Created immediately: 1322
Created during configuration: 1541

after this change:
Created immediately: 596
Created during configuration: 1509

To know more about configuration avoidance: https://docs.gradle.org/current/userguide/task_configuration_avoidance.html
2023-06-06 14:27:42 +00:00
Bogdan Mukvich 303b01b89b Add SBOM configuration for all published artifacts by default 2023-06-06 13:27:26 +00:00
Dmitrii Krasnov 65aa5fc02e migrated cocoapods test with xcodebuild to new test dsl (junit 5 and gradle test kit)
#KT-51553 In Progress
2023-06-06 11:26:15 +00:00
Dmitrii Krasnov 7f70ac73fd Fixed k/n it tests after removing deprecated targets iosArm32 and watchosX86
^KT-51553
^KT-56533
2023-06-06 06:28:16 +00:00
Nataliya.Valtman 833b5c12a1 KT-59034 Remove variant factory usage from OperationCompletionListener 2023-06-05 16:25:06 +00:00
Ilya Goncharov d1b775f157 [Gradle, JS] Fix uname system call for configuration cache compatibility
[Gradle, JS] Fix problem with configuration cache in KotlinKarma

^KT-58969 fixed
^KT-58970 fixed
2023-06-05 15:21:34 +00:00
Pavel Punegov d81084f66f [K/N][test] Add test for ^KT-58537 2023-06-05 14:40:11 +00:00
Yahor Berdnikau b2212b9275 [Gradle] Add compatibility fix to explicit api import in MPP projects
MPP projects import relies that `-Xexplicit-api` flag is present in
DefaultLanguageSettingsBuilder.freeCompilerArgs property to enable
related inspections.

^KT-59063 Fixed
2023-06-02 20:06:14 +00:00
Sebastian Sellmair 75ab2ce4e7 [Gradle] KotlinJvmRun: Configure jvm toolchain
^KT-59055 Verification Pending
2023-06-02 16:32:01 +00:00
Dmitrii Krasnov 1dee01474c Added kotlin-gradle-statistics versioning. test that checks any changes in kotlin-gradle-statistics src folder and fails if there were no VERSION increased
#KTIJ-25581 In Progress

Merge-request: KT-MR-10349
Merged-by: Dmitrii Krasnov <Dmitrii.Krasnov@jetbrains.com>
2023-06-02 13:56:43 +00:00
Sebastian Sellmair b60f478b92 [Gradle] MPP: Update max tested AGP version to 8.2
^KT-58703 Verification Pending
2023-06-02 13:03:05 +00:00
Dmitrii Krasnov f8a540f4cf migrated podspec tests from CocoaPodsIT to new test DSL (gradle test kit + JUnit 5)
#KT-51553 In Progress
2023-06-02 11:42:40 +00:00
Ilya Goncharov b585d7c392 [Gradle, JS] Add test with nested composite build 2023-06-02 08:43:09 +00:00
Pavel Punegov 6d06f29326 [K/N][test] Fix Native downloading test
Use a newer version of the compiler with changes to archive name
(contains arch). Also, remove obsolete test for the old version.

Merge-request: KT-MR-10399
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com>
2023-06-01 15:09:51 +00:00
Dmitrii Krasnov b19decc00a fixed NativeXcodeSimulatorTestsIT 2023-06-01 14:45:26 +00:00
Dmitrii Krasnov 19f1d4e3e3 fixed native compiler downloader repoUrl building
#KT-51553 In Progress
2023-06-01 14:45:26 +00:00
Yahor Berdnikau 9e5346407e [Gradle] Restore public visibility for constants with configuration names
Apparently users are using these constants in their build script
configurations. Until we will provide proper public API we should keep
such constants as public.

^KT-58916 Fixed
2023-06-01 14:41:00 +00:00
Vyacheslav Gerasimov 5e39bb97a0 Download d8 using configuration to make use of Gradle dependency caching
#KTI-72
2023-06-01 09:28:11 +00:00
Anton Lakotka dfae730d0f [Gradle] Update kotlin-gradle-plugin.api after removing
unused defaultConfigurationName

^KT-55201 Verification Pending
2023-05-31 15:45:26 +00:00
Anton Lakotka b96e5a2a93 [Gradle] Remove defaultConfiguration from ExternalKotlinTargetImpl
^KT-55201 Verification Pending
2023-05-31 15:45:25 +00:00