Commit Graph

9154 Commits

Author SHA1 Message Date
Ilya Chernikov 5ef0b52ac5 Add test to the fix of maven script executor
related to the fix of #KT-58101
2023-04-26 09:52:58 +00:00
Yahor Berdnikau 66648b36df Introduce 'kotlin.experimental.tryK2' gradle property
Once configured this property changed default language version
convention for all compiler options to '2.0'.

On usage, it produces a warning that it should not be used in
production.

^KT-57736 In Progress
2023-04-26 09:51:36 +00:00
Ilya Goncharov 133992d0bc [Gradle, JS] Use live collections for webpack configurations
^KT-57116 fixed
2023-04-26 09:09:01 +00:00
Yahor Berdnikau c52ad22795 Remove 'KotlinCompile.classpath' input
^KT-53748 Fixed
2023-04-26 08:22:39 +00:00
Anton Lakotka 2abe9ac1ef [Gradle] Fix configuration cache issues for LinkFramework tasks
^KT-58261 Verification Pending
2023-04-25 20:51:16 +00:00
Stanislav Erokhin 96f8bcdf43 [Gradle/MPP] Added IT for android -> androidTarget rename
#KT-57903 In Progress
2023-04-25 19:40:53 +00:00
Stanislav Erokhin 65ffdb418a [Gradle/MPP] Update message about missing android target
#KT-57903 In Progress
2023-04-25 19:40:53 +00:00
Stanislav Erokhin 5eaa6696f4 [Gradle/MPP] Replace android -> androidTarget in functionalTests 2023-04-25 19:40:53 +00:00
Stanislav Erokhin 70c9d6dc44 [Gradle/MPP] Deprecated android in favour androidTarget in MPP DSL
ReplaceWith was added only to `android()` and `android(name)`
because it isn't working for other functions: KTIJ-25383.

#KT-57903 In Progress
2023-04-25 19:40:53 +00:00
Stanislav Erokhin becf50ee0f [Gradle/MPP] Refactored KotlinTargetContainerWithPresetFunctions
Android preset functions were moved to a separate interface
because we need to write custom deprecation with ReplaceWith
due KT-57903.
After that we had generated:
 - all the K/N preset functions
 - jvm functions.
I decided to move jvm function to separate file too,
so the whole division to several files would be somewhat sane.

I kept the KotlinTargetContainerWithPresetFunctions interface to
keep source/binary compatibility for the `android`/ `jvm` preset
functions users

#KT-57903 In Progress
2023-04-25 19:40:53 +00:00
Ilya Goncharov 725cfb4ea5 [Gradle, JS] Fix package in js composite build test 2023-04-25 17:52:26 +00:00
Sebastian Sellmair 7486a11bd1 [Gradle] Remove deprecated dependsOnClosure and withDependsOnClosure extensions
^KT-58220 Verification Pending
2023-04-25 17:09:00 +00:00
Sebastian Sellmair 00138f8ea4 [Gradle] Update deprecation message for non-hmpp mode
^KT-58220 Verification Pending
See: KT-58243
2023-04-25 17:09:00 +00:00
Sebastian Sellmair 0889b3eb2e [Gradle] Schedule KotlinCompilation.source for removal in 2.0
Having only one SourceSet being associated with a KotlinCompilation
will simplify multiple code paths and prevents misconfiguration
from users.

^KT-58220 Verification Pending
See: KT-58234
See: KT-58235
2023-04-25 17:09:00 +00:00
Sebastian Sellmair 1313cffe01 [Gradle] Schedule 'overrideDisambiguationClassifierOnIdeImport' and 'useDisambiguationClassifierAsSourceSetNamePrefix' for removal in 2.0
^KT-58220 Verification Pending
See: KT-58231
2023-04-25 17:08:59 +00:00
Sebastian Sellmair e72f236bd4 [Gradle] Schedule 'KotlinSourceSet.requiresVisibilityOf' for removal in 2.0
^KT-58220 Verification Pending
See: KT-58228
2023-04-25 17:08:59 +00:00
Sebastian Sellmair fa40c1115a [Gradle] Schedule 'relatedConfigurationNames' for removal in 2.0
^KT-58220 Verification Pending
See: KT-58225
2023-04-25 17:08:59 +00:00
Sebastian Sellmair 25c2fe03a9 [Gradle] Update 'Scheduled for removal' deprecations
^KT-58220 Verification Pending
2023-04-25 17:08:59 +00:00
Sebastian Sellmair f98765f254 [Gradle] Remove KotlinCompilation.moduleName
^KT-58220 Verification Pending
2023-04-25 17:08:59 +00:00
Anton Lakotka 9afddb1a7a [Gradle] Fix configuration cache for cleanNativeDistributionCommonization
^KT-57482 Verification Pending
2023-04-25 16:16:52 +00:00
Yahor Berdnikau c64a7068d9 Generate Kapt task name for random KotlinCompile task name
We had false assumption that KotlinCompile tasks name will always start
with "compile" prefix, but our exposed api allows to create tasks with
random names. I've adjusted method to calculate kapt task names for any
KotlinCompile task name.

^KT-54468
2023-04-25 16:03:38 +00:00
Sebastian Sellmair bad5c58952 [Gradle] Add documentation to KotlinTargetHierarchyBuilder.Root functions
^KT-58209 Verification Pending
2023-04-25 15:08:30 +00:00
Sebastian Sellmair 6029cb46ce [Gradle] Add documentation to KotlinTargetHierarchyDsl.android
^KT-58209 Verification Pending
2023-04-25 15:08:30 +00:00
Sebastian Sellmair 71189e2049 [Gradle] Add documentation to KotlinTargetHierarchyDsl.custom
^KT-58209 Verification Pending
2023-04-25 15:08:29 +00:00
Sebastian Sellmair bd0f54564d [Gradle] Move KotlinTargetHierarchy/Android configuration from KotlinAndroidTarget to KotlniTargetHierarchyDsl
^KT-58209 Verification Pending
2023-04-25 15:08:29 +00:00
Sebastian Sellmair bc1abb2e6a [Gradle] LifecycleAwareProperty: Allow lazy creation even in 'finaliseIn' or later
^KT-58209 Verification Pending
2023-04-25 15:08:29 +00:00
Sebastian Sellmair 16369bc008 [Gradle] Rename KotlinTargetHierarchy.ModuleName to .SourceSetTree
^KT-58209 Verification Pending
2023-04-25 15:08:29 +00:00
Sebastian Sellmair 1d23d7de17 [Gradle] KotlinTargetHierarchyBuilder: Add documentation to 'common' function
^KT-58209 Verification Pending
2023-04-25 15:08:29 +00:00
Anton Lakotka 545a7724c1 [Gradle] Fix apple gradle plugin smoke test 2023-04-25 14:38:22 +00:00
Anton Lakotka ff0a57bafd [Gradle] Propagate user attributes to binary framework configurations
^KT-57668
2023-04-25 14:38:22 +00:00
Anton Lakotka 8d5f2b37a3 [Gradle] Test that user attributes is propagated to binary frameworks
^KT-57668
2023-04-25 14:38:22 +00:00
Sebastian Sellmair 379c1b72a6 [Gradle] ExternalTargetApi: mark .extras extensions as 'scheduled for removal'
... as those extensions are now shadowed by members

KT-55524
2023-04-25 12:49:52 +00:00
Sebastian Sellmair caa6b6f9f3 [Gradle] ExternalTargetApi: Check-in/Document ExternalKotlinCompilationDescriptor
KT-55524
2023-04-25 12:49:52 +00:00
Sebastian Sellmair 5e13e118fa [Gradle] ExternalTargetApi: Rename 'DecoratedKotlinCompilationFactory' to 'CompilationFactory'
To be consistent with 'TargetFactory' in ExternalKotlinTargetDescriptor

KT-55524
2023-04-25 12:49:52 +00:00
Sebastian Sellmair 898e2beecb [Gradle] ExternalTargetApi: Rename 'ExternalDecoratedKotlinCompilation' to 'DecoratedExternalKotlinCompilation'
To be consistent with 'DecoratedExternalKotlinTarget'

KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair bc85fe323b [Gradle] ExternalTargetApi: Check-in/Document createExternalKotlinTarget
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair 2ec76110b0 [Gradle] ExternalTargetApi: Check-in/Document createCompilation
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair 6e6e2977f9 [Gradle] ExternalTargetApi: Check-in/Document IdeDependencyTransformer
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair 6a38162b45 [Gradle] ExternalTargetApi: Check-in/Document IdeAdditionalArtifactResolver
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair 6cfcea0401 [Gradle] Demote IdeaKotlinBinaryCoordinates to 'internal'
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair 9978906f6f [Gradle] ExternalTargetApi: Check-in/Document IdeDependencyEffect
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair 55cc2e5e42 [Gradle] ExternalTargetApi: Check-in/Document ExternalKotlinTargetDescriptor
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair 0191368f1f [Gradle] IdeMultiplatformImportImpl: Remove unnecessary ExternalTargetApi annotations
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair 403a4b48fa [Gradle] ExternalTargetApi: Check-in/Document IdeMultiplatformImport
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair 127f3e55e8 [Gradle] ExternalTargetApi: Check-in/Document IdeDependencyResolver
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair 63f8cf2237 [Gradle] ExternalTargetApi: Check-in/Document IdeBinaryDependencyResolver
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair b32cae293b [Gradle] Add documentation to ExternalKotlinTargetApi
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair 9f003328cf [Gradle] Setup initial api validation for ExternalTargetApi
KT-55524
2023-04-25 12:49:50 +00:00
Sebastian Sellmair 628fa919dd [kotlin-tooling-core] Document IdeaKotlinExtrasSerializationExtension
KT-55524
2023-04-25 12:49:50 +00:00
Nataliya.Valtman 2a391f7330 Move kotlin-build-statistic project to :compiler 2023-04-25 11:29:09 +00:00