10537 Commits

Author SHA1 Message Date
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
nataliya.valtman e34dd043da Add minimal statistic report for JPS build
Fix build stat for gradle 8

#KT-56438 Fixed
2023-04-25 11:29:09 +00:00
Yahor Berdnikau 50f5fadfd8 Expose task input to control jvm target validation mode
^KT-56971 Fixed
2023-04-25 10:28:29 +00:00
Yahor Berdnikau 861e9392de Fix JPS import from Gradle in KGP 2023-04-25 10:23:46 +00:00
Anton Lakotka c16f2f1067 [Gradle, Test] remove unnecessary code comment 2023-04-25 09:58:07 +00:00
Yahor Berdnikau 3ee089bb48 Decouple KaptGenerateStubsTask from related KotlinCompile task configuration
This should simplify setup and remove task circular dependencies.

Generally users should not be affected by it unless they are configuring
 KotlinCompile task explicetly and expect the same configuration will be
  present on KaptGenerateStubsTask.

^KT-54468 In Progress
2023-04-24 18:32:07 +00:00
Yahor Berdnikau ee1517cd6a Decouple Kapt task from KotlinCompile task configuration
This fixes KotlinCompile task instantiation on configuring Kapt tasks
as well Kapt tasks itself eager realization.

Additionally this change removes circular dependency between kapt and
compilation tasks.

^KT-54468 In Progress
2023-04-24 18:32:07 +00:00
Sebastian Sellmair 476c209bf4 [Gradle] Remove kotlinx.coroutines from KGP compile classpath
- Replace CompletableDeferred with a simple 'Completable'
- Replace withContext usage for 'withRestrictedStages' with custom
implementation

^KT-58162 Verification Pending
2023-04-24 15:45:24 +00:00
Ilya Goncharov 97d6b71654 [Gradle, JS] Remove unnecessary warning about multiple versions
^KT-56458 fixed

Merge-request: KT-MR-9747
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com>
2023-04-24 15:32:15 +00:00
Aleksei.Cherepanov ae8428e8d0 Refactor Infrastructure of IC tests
1) Move root util functions to separate CompileRunnerUtils file from IncrementalJvmCompileRunner to leave the only class instance there and to separate util functions
2) Move TestLookupTracker from the abstract parent class location to a separate file as an implementation class
3) Small change naming of building functions just to clarify what they do
4) Some small code-style refactorings
2023-04-24 14:54:45 +00:00
Anton Lakotka 081e006006 [Gradle] Test that nullability is correctly inferred in metadata compilation
^KT-56380
2023-04-24 11:58:15 +00:00
Anton Lakotka 2137d26ce8 [Gradle] Test that extra jvm compilation can be created with java enabled
^KT-41506 Verification Pending
2023-04-24 11:58:15 +00:00
Ilya Goncharov 5763acbd31 [Gradle, JS] Remove useCoverage fun
^KT-58199 fixed
2023-04-24 11:39:06 +00:00
Dmitriy Novozhilov 2087a7c899 [FIR] Store generated declarations in the session component
Also extract generated declarations for classes from declaration site
  session, not use site

^KT-57821 Fixed
2023-04-24 09:22:30 +00:00
Mads Ager a6520a294b [K2] Local property accessors are always default. 2023-04-21 23:40:41 +02:00
Mads Ager 3795fc1106 [K2] Fix stable parameter name metadata. 2023-04-21 23:40:41 +02:00
Mads Ager 3a8f1ca690 [K2] Type parameter metadata handling. 2023-04-21 23:40:41 +02:00
Mads Ager 1f3b8142a8 [K2] Enable tests for hasConstant field on properties in metadata. 2023-04-21 23:40:40 +02:00