10537 Commits

Author SHA1 Message Date
Yahor Berdnikau a90664574c Fix jvm target validation does not work for MPP JVM withJava target
Related KotlinCompile to JavaCompile wiring is happening on
KotlinJvmTarget initialization before 'withJava' configuration runs. At
that point linked JavaCompile task is null. Fix delays wiring to
execution phase when such task should be available.

^KT-55119 Fixed
2023-01-20 13:13:58 +00:00
Yahor Berdnikau c65b689fa0 Provide approximate stacktrace to freeCompilerArgs modification
Will help users to understand where exactly 'kotlinOptions
.freeCompilerArgs' were modified on execution phase.

^KT-55544 Fixed
2023-01-20 10:01:04 +00:00
Ilya Goncharov f4cda71d9e [Gradle, JS] Add possibility to not add js compiler attribute on publish 2023-01-19 22:11:01 +00:00
Ilya Goncharov 843805d771 [Gradle, JS] Update detecting of platform and architecture
[Gradle, JS] Make hash codes compatible with previous kotlin

^KT-38015 fixed
^KT-48631 fixed
^KT-43305 fixed
2023-01-19 10:23:09 +00:00
Ilmir Usmanov d18672bfb1 Wrap continuation with ContinuationImpl on callable references
in startCoroutineUninterceptedOrReturn. Otherwise, the coroutine will
not be interceptable later.

Add a test, which checks, that intercepted continuation is released.

 #KT-55869
2023-01-19 00:35:36 +00:00
Alexander.Likhachev da24e5559b [Gradle] Mention related tickets in BuildServiceDeclarationIT
#KT-55563
#KT-55740
2023-01-18 15:29:10 +00:00
Alexander.Likhachev 278229d2fa [Gradle] Inverse usesService declaration
KT-52149 Fixed
2023-01-18 15:29:10 +00:00
Alexander.Likhachev 36a6809d55 [Gradle] Declare build services usages for the Kotlin/JS plugin
#KT-52149 In Progress
2023-01-18 15:29:09 +00:00
Alexander.Likhachev 02bf10f21a [Gradle] Declare build services usages for the Kotlin/JVM plugin
#KT-52149 In Progress
#KT-55174 Fixed
#KT-55741 Fixed
2023-01-18 15:29:09 +00:00
Alexander.Likhachev d360feb847 [Gradle] Add tests for KT-52149, KT-55174, and KT-55741 2023-01-18 15:29:09 +00:00
Sebastian Sellmair 9f850c1179 [Gradle] Fixup 'kotlinTestSingleDependencyMppJvmJs' to support new behaviour...
... of deprecated scoped DependenciesMetadata configurations.

^KT-55929 Verification Pending
2023-01-18 08:26:34 +00:00
Sebastian Sellmair 0ddefa1c02 [Gradle] Fixup 'kotlinTestSingleDependencyMppCommon' to support new behaviour...
... of deprecated scoped DependenciesMetadata configurations.

^KT-55929 Verification Pending
2023-01-18 08:26:34 +00:00
Sebastian Sellmair 10a1aab9bb [Gradle] Implement KT55929MetadataConfigurationsTest to leaking stdlib-common
^KT-55929 Verification Pending
2023-01-18 08:26:33 +00:00
Sebastian Sellmair d6a44c92b5 [Gradle] Implement KT55929MetadataConfigurationsTest to cover KT-55929
^KT-55929 Verification Pending
2023-01-18 08:26:33 +00:00
Sebastian Sellmair c0aa6cf873 [Gradle] Ensure deprecated *DependenciesMetadata configurations exclude common stdlib
^KT-55929 Verification Pending
2023-01-18 08:26:32 +00:00
Sebastian Sellmair cc684cce3d [Gradle] Ensure deprecated *DependenciesMetadata configurations carry necessary dependencies
^KT-55929 Verification Pending
2023-01-18 08:26:32 +00:00
Alexander Likhachev 432b08e158 [Gradle] Convert taskOutputsBackupExcludes into SetProperty
#KT-49785 In Progress
2023-01-17 22:15:56 +00:00
Alexander Likhachev db5df5c5ec [Gradle] Add Gradle integration tests with precise compilation outputs backup
#KT-49785 In Progress
2023-01-17 22:15:55 +00:00
Alexander Likhachev 82a2cac4d6 [Gradle] Add debug logging into TaskOutputsBackup 2023-01-17 22:15:53 +00:00
Alexander Likhachev 20ed029ba5 [Gradle, IC] Add gradle property to control precise compilation outputs backup
#KT-49785 In Progress
2023-01-17 22:15:52 +00:00
Alexander Likhachev ea4c792b9a [IC] Disable Gradle-side compiler outputs backup unconditionally
#KT-49785 In Progress
2023-01-17 22:15:51 +00:00
Ilya Goncharov e93fa380e2 [Gradle, Wasm] Detect correct browser executable depends on OS 2023-01-17 22:01:33 +00:00
Alexander Udalov a7b1bade85 Kapt: enable JVM IR by default
Add `kapt.use.jvm.ir=false` to `gradle.properties` to return the old
behavior.

 #KT-53135 Fixed
2023-01-17 20:23:32 +00:00
Alexander.Likhachev 9e1b6dc223 [Gradle] Update version requirements for MppTestsIT.testKt54634 2023-01-17 20:07:55 +01:00
Alexander.Likhachev 4a58e24a4a [Gradle] Rework ConfigurationCacheForAndroidIT to drop warnings suppression 2023-01-17 20:07:54 +01:00
Alexander.Likhachev 6cbbecc705 [Gradle] Mark one more warnings suppression as a workaround for KT-55751 2023-01-17 20:07:54 +01:00
Alexander.Likhachev f57bf74e4f [Gradle] Don't override warningMode with the default value in some tests 2023-01-17 20:07:54 +01:00
Alexander.Likhachev 9386fbbe0f [Gradle] Don't suppress warnings for tests that don't produce them
dont produce
2023-01-17 20:07:53 +01:00
Alexander.Likhachev 7949197b62 [Gradle] Fix deprecation warnings in Kapt3AndroidExternalIT 2023-01-17 20:07:52 +01:00
Alexander.Likhachev 21624d6d07 [Gradle] Add version checks on warnings suppression for old AGP versions 2023-01-17 20:01:01 +01:00
Artem Daugel-Dauge a24119858f Add linkOnly mode for pods
^KT-41830 Verification Pending

Merge-request: KT-MR-8302
Merged-by: Artem Daugel-Dauge <Artem.Daugel-Dauge@jetbrains.com>
2023-01-17 18:32:54 +00:00
Artem Kobzar 71486a321c [K/JS] Add support of compilation with ES-classes 2023-01-17 18:14:17 +00:00
Artem Daugel-Dauge af649cbb44 [Gradle] Pass through errors from Gradle to Xcode
^KT-55650 Verification Pending
2023-01-17 15:56:05 +00:00
Yahor Berdnikau 5c8b8bf009 Remove Gradle plugin variants from ':kotlin-gradle-statistics'
Code does not use any Gradle API imports and does not use any KGP API
classes.
2023-01-17 14:03:53 +00:00
Yahor Berdnikau 92509ad400 Remove Gradle plugin variants from ':kotlin-gradle-build-metrics'
Code does not use any Gradle API imports and does not use any KGP API
classes.
2023-01-17 14:03:53 +00:00
Mikhail Glukhikh 7a61578e08 Language version 2.0: fix compiler messages and minor details 2023-01-16 18:16:48 +01:00
Mikhail Glukhikh 3dc05f4ec5 Introduce language version 2.0 and associate K2 compiler with it 2023-01-16 18:12:55 +01:00
Sebastian Sellmair d0bb804e85 [Gradle] kgp-idea-proto: Add public API for extras serialisation
KT-55926
2023-01-16 14:56:46 +00:00
Sebastian Sellmair 54db04e0f4 [Gradle] ExternalTargetApiExtensions: Add extension for KotlinCompilation.extras
KT-55926
2023-01-16 14:56:46 +00:00
Sebastian Sellmair 16835469a4 [Gradle] Let InternalKotlinTarget implement HasMutableExtras
KT-55926
2023-01-16 14:56:45 +00:00
Alexander.Likhachev 75c9fd3032 [Gradle, MPP] Suppress deprecation warnings for tests with an old AGP
#KT-52998 In Progress
2023-01-16 13:42:57 +00:00
Alexander.Likhachev ab205edeab [Gradle] Fix MppCompositeBuildIT.test - sample1 - ide dependencies
The test was trying to invoke a task from the root project prepending it with two colons, which became an error since 7.6
#KT-53811 In Progress
2023-01-16 11:43:24 +00:00
Alexander.Likhachev 46e45b8137 [Gradle] Simplify regexp for extracting task output in integration tests
Gradle has slightly changed logging since 7.6, so the old way stopped working
#KT-53811 In Progress
2023-01-16 11:43:24 +00:00
Alexander.Likhachev 4b1c7f1c11 Bump max Gradle version to 7.6 in integration tests 2023-01-16 11:43:24 +00:00
Abduqodiri Qurbonzoda 954ec1f63c Introduce @ExperimentalEncodingApi for binary-to-text encoding API 2023-01-16 11:24:50 +00:00
Abduqodiri Qurbonzoda dc03a03762 Introduce basic, url-safe and mime Base64 variants #KT-9823 2023-01-16 11:24:49 +00:00
Ilya Chernikov 6c035bb5f4 Scripting: support scripts starting with UTF-8 BOM
#KT-54705 fixed
2023-01-15 20:11:56 +01:00
Ilya Chernikov 989c1ec64d Scripting: allow slf4j relocation
#KT-53283 fixed
2023-01-15 20:11:56 +01:00
Ilya Chernikov 80c80ad4e0 Scripting: replace slf4j-nop binding with -simple one in main-kts
will allow to see aether loging in case of resolving problems and may
simplify some problems similar to #KT-54819
2023-01-15 20:11:56 +01:00
Ilya Chernikov 400762635a Scripting: update version of maven resolver dependencies 2023-01-15 20:11:56 +01:00