Commit Graph

14646 Commits

Author SHA1 Message Date
Yahor Berdnikau 1ad9462c72 [Gradle] Fix warnings in CreateDefaultCompilationsSideEffect
^KT-56904 In Progress
2024-02-12 14:39:32 +00:00
Yahor Berdnikau e72704ce86 [Gradle] Fix warnings in ConfigureBuildSideEffect
^KT-56904 In Progress
2024-02-12 14:39:32 +00:00
Yahor Berdnikau 36233bd17d [Gradle] Fix warnings in GradleLoggerAdapter
^KT-56904 In Progress
2024-02-12 14:39:32 +00:00
Yahor Berdnikau 3586f624a3 [Gradle] Fix warnings in kotlinTargetPresets.kt
^KT-56904 In Progress
2024-02-12 14:39:32 +00:00
Yahor Berdnikau 85f7dd1c20 [Gradle] Fix warnings in kotlinTestDependencyManagement.kt
^KT-56904 In Progress
2024-02-12 14:39:32 +00:00
cristiangarcia 90db7cd685 Mark checkIdeDependenciesConfiguration as notCompatibleWithConfigurationCache
Required for KTI-1553
2024-02-11 21:42:55 +00:00
cristiangarcia cb0d78d443 singleOutputFile() method used Task.getProject() and that's not allowed with CC
Required for KTI-1553
2024-02-09 21:35:03 +00:00
Alexander.Likhachev c2e0c8b2e9 [Gradle] Introduce KotlinToolingDiagnostics.DependencyDoesNotPhysicallyExist
Instead of silently ignoring the non-existing classpath entries, emit a warning to indicate possible project misconfiguration.
^KT-62101 Fixed
2024-02-09 18:33:30 +00:00
Alexander.Likhachev de04c62df5 [Gradle] Do not try snapshotting non-existent classpath entries
The fix changes only Gradle's side of the transformation to be consistent with general Gradle behaviour for non-existent dependencies in classpath
^KT-62101 In Progress
2024-02-09 18:33:30 +00:00
Alexander.Likhachev c5138b781f [Gradle] Remove senseless try-catch in BuildToolsApiClasspathEntrySnapshotTransform 2024-02-09 18:33:30 +00:00
Alexander.Likhachev 75df4869cc [Gradle] Add test for KT-62101 2024-02-09 18:33:30 +00:00
Ilya Goncharov d02be30e3b [Gradle, JS] Return back deprecated options noStdlib and metaInfo 2024-02-09 18:20:08 +00:00
Ilya Goncharov 2340d59f40 [JS] Get rid of outputFile in compiler args (KT-61116)
^KT-56753 fixed
2024-02-09 18:20:08 +00:00
Abduqodiri Qurbonzoda ae3c9dd9b9 Improve Path.walk/delete/copyToRecursively documentation 2024-02-09 17:20:15 +00:00
Abduqodiri Qurbonzoda f8c587ddcf Fix security vulnerability in Path recursive functions #KT-63103
* Prohibit files with name "." or ".."
* Detect cycles caused by files with name "/"
* Prohibit copy outside the target directory

The commit also moves zip-related tests to PathRecursiveFunctionsZipTest.
2024-02-09 17:20:15 +00:00
strangepleasures 9688c3e761 [KAPT] Improve stub formatting; check raw stubs in tests
Merge-request: KT-MR-14244
Merged-by: Pavel Mikhailovskii <Pavel.Mikhailovskii@jetbrains.com>
2024-02-09 15:41:37 +00:00
Pavel Mikhailovskii 7ab9e03347 KT-65684: KAPT: (Re)enable fallback to K1 KAPT and make it default
[KAPT] KT-65684 Set languageVersion=1.9 in KaptToolIntegrationTestGenerated

[KAPT] KT-65684 Re-enable a few now-passing tests in Kapt4IT

[KAPT] KT-65684 Fix the logic setting -Xuse-kapt4 flag in Kapt4IT.forceKapt4()

The change is needed to make sure that all the tests have the flag set,
 otherwise some of them would silently switch to the fallback node.
Also disables a few now failing tests.

[KAPT] KT-65684 Revert "KT-64385 Enable K2 KAPT by default"

This reverts commit 7e9d6e60


Merge-request: KT-MR-14291
Merged-by: Pavel Mikhailovskii <Pavel.Mikhailovskii@jetbrains.com>
2024-02-09 12:54:28 +00:00
Ilya Goncharov b4e1fa8569 [Gradle, Wasm] Standartize binaryen and d8 download instead of download task
^KT-65686 fixed
2024-02-09 11:18:37 +00:00
Andrey Yastrebov 7c103e257d KT-62380 Copy dummy dSYM directory for cocoapods integration 2024-02-09 09:22:32 +00:00
Yahor Berdnikau 1bae743524 [Gradle] Remove old platform plugins ids
We want to remove Gradle ids for old deprecated multiplatform platform
plugins and eventually clean up the code.

Exception for now is common platform plugin as it is still used
in compiler tests. Will be removed separately.

^KT-65187 Verification Pending
2024-02-09 09:05:25 +00:00
Alexander Udalov 3f034e8b67 Enable lightweight lambdas (aka invokedynamic) since 2.0
#KT-45375 Fixed
 #KT-58173 Open
2024-02-08 19:46:18 +00:00
Alexander.Likhachev 238d5504d2 [Gradle] Add tests for KT-62921 2024-02-08 19:11:26 +00:00
Alexander.Likhachev f507b19bd3 [Gradle] Move compiler version choosing logic into testHelpers.kt
Also, migrate from custom Kotlin versions to TestVersions.Kotlin.STABLE_RELEASE to avoid adding custom repositories
2024-02-08 19:11:26 +00:00
Alexander.Likhachev a904ded5f2 [Gradle] Replace useCompilerVersion by a Provider API property
Now this property acts as the single source of truth of BTA implementation version used in KGP. It allows both read and write.
^KT-62921 Fixed
2024-02-08 19:11:26 +00:00
Dmitrii Krasnov 18c08eb9ff [Gradle] Added test for addKotlinNativeBundleConfiguration 2024-02-08 17:20:37 +00:00
Dmitrii Krasnov af872b5692 [Gradle] Made kotlin native configuration init only once.
`maybeCreateResolvable` with `also` each time configures configuration.
But we cannot add new dependencies after the configuration is resolved.
Thus, it is more correct to add init block for a case when it is a newly created configuration.

^KTIJ-28742 Fixed
2024-02-08 17:20:37 +00:00
Igor Yakovlev 7cf793f308 [Wasm] Add bootstrap declarations 2024-02-08 14:15:17 +00:00
Igor Yakovlev be6b9e8a9a [Wasm] Support lazy associated object initialisation
Fix #KT-63939
2024-02-08 14:15:17 +00:00
Yahor Berdnikau 55bbaec3f9 [Gradle] Migrate KlibBasedMppIT to new test DSL
^KT-65528 In Progress
2024-02-08 14:04:52 +00:00
Yahor Berdnikau 74c02a77fe [Gradle] Fix compiler arguments plugin does not configure defaults in extension
Shared source sets do not have related compilation tasks, so configuring
 them via an extension is the only possible way. Otherwise, a KGP
 checker will complain on incompatible configuration.

Also, should fix rare cases for kapt when the related KotlinJvmCompile
task is not created, so it does not propagate configured values to kapt
tasks.

^KT-65528 In Progress
2024-02-08 14:04:52 +00:00
Yahor Berdnikau 5686f55b5a [Gradle] Fix warnings in Kotlin2JsCompileConfig
^KT-56904 In Progress
2024-02-08 13:24:30 +00:00
Yahor Berdnikau 50ac596bf2 [Gradle] Fix warnings in DefaultKotlinJavaToolchain
^KT-56904 In Progress
2024-02-08 13:24:30 +00:00
Yahor Berdnikau 7913e12748 [Gradle] Fix warnings in AbstractKotlinCompileTool
^KT-56904 In Progress
2024-02-08 13:24:30 +00:00
Yahor Berdnikau 42a0190986 [Gradle] Fix warnings in KotlinNativeLink
^KT-56904 In Progress
2024-02-08 13:24:30 +00:00
Abduqodiri Qurbonzoda 5b703c57ec Fix a test failure caused by KT-52181 2024-02-08 07:46:09 +00:00
Abduqodiri Qurbonzoda 600e306d80 Fix JS Map.keys.remove return value #KT-65525 2024-02-08 07:46:09 +00:00
Abduqodiri Qurbonzoda 20b9ac9d55 Fix memory leak in MapBuilder #KT-65518 2024-02-08 07:46:09 +00:00
Brian Norman aa34282efb [PowerAssert] Integrate with build
^KT-63617 Fixed
2024-02-07 21:51:17 +00:00
Brian Norman c3a60b127e [PowerAssert] Reformat files 2024-02-07 21:51:17 +00:00
Brian Norman 2de0c8b23f [PowerAssert] Update file copyright 2024-02-07 21:51:17 +00:00
Brian Norman d8167fe82b [PowerAssert] Update base package 2024-02-07 21:51:17 +00:00
vladislav.grechko 54858c2118 [FIR] Fix naming of local classes when serializing metadata
^KT-63655: Fixed
^KT-63901: Fixed
^KT-63988: Fixed
2024-02-07 12:30:50 +00:00
Dmitrii Krasnov 6219806ab9 [Gradle Native] Made eager outputFile in CInteropProcess deprecated
^KT-63206 Fixed
2024-02-06 14:01:29 +00:00
Igor Yakovlev 78b666bb40 [WasmJs] Support custom js adapter support
Fix KT-58291
2024-02-06 13:55:20 +00:00
Igor Yakovlev 109ff2135f [WasmJs] Add async tests in kotlin.test 2024-02-06 13:55:20 +00:00
Ilya Gorbunov 905423aa17 [kotlin-test] Reconfigure JVM unit tests
- Include common annotations and assertions test source sets into each test platform test compilation in order to check how they work with that platform's annotations and asserter
- Run these tests without platform support jar to check the default asserter implementation
2024-02-06 12:58:50 +00:00
Ilya Gorbunov 309cecdefd [kotlin-test] Rename test to avoid duplication 2024-02-06 12:58:50 +00:00
Ilya Gorbunov 58c03e021b Update transitive dependencies of JVM test frameworks in kotlin-test KT-65242, KT-63397 2024-02-06 11:06:12 +00:00
Yahor Berdnikau a636f822d0 [Gradle] Fix warnings in NativeDistributionCommonizerTask
^KT-56904 In Progress
2024-02-06 10:20:23 +00:00
Yahor Berdnikau 5ca953b7ff [Gradle] Remove unused import in KotlinNativePlatformDependencies.kt
^KT-56904 In Progress
2024-02-06 10:20:23 +00:00