10537 Commits

Author SHA1 Message Date
Sebastian Sellmair 8e9c3a21c0 [Gradle] Ensure Kotlin Plugin Lifecycle is started before in Plugin.apply
This should enable the lifecycle to still get into the
first 'afterEvaluate' based phase, even when an exception was thrown
in apply

KT-58275
2023-05-09 07:32:37 +00:00
Dmitrii Krasnov 375ff5ed2c migrated AppleFrameworkIT to junit5 and gradle TestKit
#KT-51553 In Progress

Merge-request: KT-MR-9856
Merged-by: Dmitrii Krasnov <Dmitrii.Krasnov@jetbrains.com>
2023-05-09 07:17:14 +00:00
Yahor Berdnikau 2ea65bd658 Fix explicitApiMode could be overwritten by freeCompilerArgs
Now tasks has a separate task input for 'explicitApiMode' which is
passed to Kotlin compiler via arg, rather than free compiler args.

^KT-57653 Fixed
2023-05-08 19:43:43 +00:00
Dmitrii Krasnov af4ef048be migrated NativeIrLinkerIssuesIT to junit 5 and gradle TestKit
#KT-51553 In Progress

Merge-request: KT-MR-9921
Merged-by: Dmitrii Krasnov <Dmitrii.Krasnov@jetbrains.com>
2023-05-08 13:22:36 +00:00
Ilya Goncharov cbcd68cd85 [Gradle, JS] Upgrade NPM versions
^KT-58522 fixed
2023-05-08 13:21:39 +00:00
Ilya Goncharov f204a34909 [Gradle, JS] Add Gradle integration tests with language version 2.0
^KT-56740 fixed
2023-05-08 12:30:57 +00:00
Dmitry Savvinov 6f584bcbe7 [mpp] Fix reporting of pre-HMPP dependencies from intermediate source sets
It's an unfortunate clash between introduction of KotlinPluginLifecycle
and changes in 'deprecationDiagnostics.kt'. It used 'afterEvaluate',
but with KotlinPluginLifecycle later stages are effectively invoked
in multiple nested afterEvaluate, making them invisible for single
afterEvaluate.

Specifically in this case, configuration of metadata compilations for
intermediate source sets is executed in 'FinaliseCompilations' stage,
which is simply not executed by the time checker runs in its single
afterEvaluate.

The fix is trivial -- wrap diagnostic checks runs into launchInStage

^KT-58470 Fixed
2023-05-08 10:42:11 +00:00
Dmitrii Krasnov 4dd54e4de4 migrated CommonNativeIT to junit 5 and gradle TestKit
#KT-51553 In Progress

Co-authored-by: Alexander Likhachev <Alexander.Likhachev@jetbrains.com>

Merge-request: KT-MR-9750
Merged-by: Dmitrii Krasnov <Dmitrii.Krasnov@jetbrains.com>
2023-05-08 09:38:13 +00:00
Artem Daugel-Dauge 927db1bb56 [Gradle] Try to fix flaky testSyntheticProjectPodfilePostprocessin 2023-05-05 18:04:18 +00:00
Sebastian Sellmair 543ab6c390 [Gradle] Implement test - multiplatform - with K2 - source filter on compile task is respected
KT-58466
2023-05-05 16:30:00 +00:00
Sebastian Sellmair 86b54fadcc [Gradle] Remove unused 'buildKotlinNativeKlibCompilerArgs' as it cannot satisfy correct sourceFileFiltering
^KT-58466 Verification Pending
2023-05-05 16:30:00 +00:00
Sebastian Sellmair 75d771fc39 [Gradle][K2] Respect compile task's sourceFileFilter when building -Xfragment-sources
^KT-58466 Verification Pending
2023-05-05 16:30:00 +00:00
Yahor Berdnikau 82786fe6bf On OOM in Kotlin daemon also show message how to increase heap size
^KT-58320 Fixed
2023-05-05 16:25:52 +00:00
Ilya Goncharov 09d17d88d7 [Gradle, JS] Add printing of build output to composite build test 2023-05-05 12:27:42 +00:00
Nataliya.Valtman 71e81aa30e Fix build reports when no kotlin task is executed
#KT-58313: Fixed
2023-05-05 10:48:11 +00:00
Nataliya.Valtman 750ff32241 Avoid using project.getProperties() for customSessionLoggerRootPath 2023-05-05 10:48:11 +00:00
Anton Lakotka 6e6659fc2a [Gradle] Remove workarounds for KT-57483 from tests
^KT-57483
^KT-58316 Verification Pending
2023-05-04 15:35:34 +00:00
Anton Lakotka a1eff2cd85 [Gradle] Test kotlinNativeFrameworkNameAttribute on fat frameworks
^KT-58316 Verification Pending
2023-05-04 15:35:34 +00:00
Anton Lakotka 7c5d1b4030 [Gradle] Add kotlinNativeFrameworkNameAttribute to fat frameworks as well
^KT-58316 Verification Pending
2023-05-04 15:35:34 +00:00
Sebastian Sellmair ca8af7786e [Gradle] Kotlin2JsCompile: convert enhancedFreeCompilerArgs to ArrayList
... using .toList():
Using ListProperty.get() can return List implementations
that do not play well with CompilerArguments.
In this particular case RegularImmutableList from guava was returned
which later failed in the copyBeanTo function

^KT-58427 Verification Pending
2023-05-04 14:06:15 +00:00
Sebastian Sellmair 736cbfc38e [Gradle] Implement KT58427ResolveJSCompilerArguments regression test
KT-58427
2023-05-04 14:06:15 +00:00
Sebastian Sellmair 4fe60a4149 [Gradle] Add test - setting languagesVersion and apiVersion in languageSettings
KT-58427
2023-05-04 14:06:15 +00:00
Ilya Chernikov 8c8ca7bb70 Remove examples/tests based on obsolete script-util
also mark the rest of the API as Obsolete
related to #KT-58367
2023-05-04 11:35:08 +00:00
Ilya Chernikov 2e393e8fb7 Stop publishing obsolete kotlin-script-util
#KT-58366 fixed
2023-05-04 11:35:08 +00:00
Yahor Berdnikau 17dded2f2a Update 'kotlin-dist-for-jps-meta' to use unbundled compiler plugins.
^KTIJ-25384
2023-05-04 10:52:12 +00:00
Bogdan Mukvich 0188e79df7 Run maven tests on JDK 8 by default 2023-05-04 10:51:52 +00:00
Bogdan Mukvich 1fcc843056 Create Nashorn in maven integration tests JS compatible with JDK 11 2023-05-04 10:51:52 +00:00
Bogdan Mukvich d95e3dbf17 Run maven plugin tests using kapt with dagger with JDK 8 2023-05-04 10:51:52 +00:00
Bogdan Mukvich 74cb25c3eb Create configuration for maven integration tests with JDK 8 2023-05-04 10:51:52 +00:00
Bogdan Mukvich c4f4249e83 Update maven invoker plugin 2023-05-04 10:51:52 +00:00
Ilya Goncharov 957d8ee3d2 [Gradle, JS] Print visited-gradle content in composite build test 2023-05-03 15:03:27 +00:00
Anton Lakotka 462a39d591 [Gradle] Fix testCustomAttributesInAndroidTargets for AGP 7.0.4
^KT-58305 Verification Pending
2023-05-03 12:18:34 +00:00
Anton Lakotka 39fc1ba81d [Gradle] Fix testMppAndroidLibFlavorsPublication for AGP 7.0.4
^KT-58305 Verification Pending
2023-05-03 12:18:34 +00:00
Nikolay Lunyak ef28e031dc [FIR] KT-58145: Ensure the compiler fails
It fails with: "Module data is not
registered in Libraries session"
during `FirFakeOverrideGenerator.createCopyForFirProperty()`
for `callerFrame`.
2023-05-03 10:04:25 +00:00
Alexander Udalov f3231b2aa9 KGP IT: do not run recently added tests with class loader cache
Also add a comment mentioning the error so that it could be searchable
in the future.
2023-05-03 09:47:58 +00:00
Dmitrii Krasnov 617dddba70 migrated FatFrameworkIT to junit 5 and gradle TestKit 2023-05-03 09:29:31 +00:00
Nataliya.Valtman 1591869991 Add FUS statistics for dokka usage
#KT-57330 Fixed
2023-05-03 07:22:38 +00:00
Dmitry Savvinov 8561bbf603 [Gradle] Minor: move diagnostic tests under unitTest package 2023-05-02 14:32:14 +00:00
Dmitry Savvinov c5bda2f63c [Gradle] Support suppressing KGP diagnostics 2023-05-02 14:32:14 +00:00
Dmitry Savvinov f5c4dffc3e [mpp] Hack: Inherit KotlinProjectExtension in KotlinPm20ProjectExtension
Addition of checkers in previous commits lead to CCE when they call
'project.kotlinProjectExtension'. Change in this commit isn't
semantically sound, but allows to repair those tests cheaply
2023-05-02 14:32:13 +00:00
Dmitry Savvinov 97f77c2ecf [Gradle] Add functional tests on the new diagnostics/features infra 2023-05-02 14:32:13 +00:00
Dmitry Savvinov 6452c22430 [mpp] Migrate AGP Compatbility checks to the new infra 2023-05-02 14:32:13 +00:00
Dmitry Savvinov bb3dc145e5 [mpp] Migrate AndroidSourceSetLayout checks to the new infra 2023-05-02 14:32:13 +00:00
Dmitry Savvinov 4e479cb54b [mpp] Migrate UnusedSourceSetsChecker to the new infra 2023-05-02 14:32:13 +00:00
Dmitry Savvinov ee9a952da2 [mpp] Migrate jvmWithJava preset deprecation to the new infra 2023-05-02 14:32:13 +00:00
Dmitry Savvinov 05662eae7a [mpp] Migrate MissingNativeStdlibWarning to the new infra 2023-05-02 14:32:13 +00:00
Dmitry Savvinov 07142a4083 [mpp] Migrate checks of commonMain.dependsOn to the new infra 2023-05-02 14:32:13 +00:00
Dmitry Savvinov 7a5f1d694f [mpp] Migrate checks of deprecated K/N targets to new infra 2023-05-02 14:32:13 +00:00
Dmitry Savvinov a539db932c [mpp] Migrate HMPP-flags deprecations to the new infra 2023-05-02 14:32:13 +00:00
Dmitry Savvinov 29223dbd4a [Gradle] Add integration tests on new diagnostics infrastructure 2023-05-02 14:32:13 +00:00