Commit Graph

97997 Commits

Author SHA1 Message Date
Roman Efremov 3c5e556ba6 Add "hasEnumEntries" flag to class metadata
With this flag we can distinguish enum classes that have `entries`
property in the compiled bytecode (see `LanguageFeature.EnumEntries`).
This is needed to be able to understand in the frontend whether
`entries` can be called for that class. For Native and JS, this is
currently not possible even if the feature is enabled, but the class
was compiled with disabled feature.

^KT-53929 Fixed
2023-01-23 12:50:14 +01:00
Artem Daugel-Dauge f6eb978671 [Gradle] More workarounds for KT-55751 after adding linkOnly mode 2023-01-23 11:48:04 +00:00
Pavel Punegov 515c7f50c9 [K/N][test] Exclude properties/lateinit/isInitializedAndDeinitialize
Exclude this tests temporarily from run with one stage mode.

Merge-request: KT-MR-8408
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com>
2023-01-23 11:43:28 +00:00
Vladimir Sukharev 195ecbac2e Serialize native klib extensions to pass most ObjCExport and CInterop tests.
Merge-request: KT-MR-8398
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2023-01-23 11:34:47 +00:00
Sergey Bogolepov 576e8ba127 [K/N] Port to the new driver 2023-01-23 09:11:33 +00:00
Anna Kozlova 21e57b1c54 [AA] allow to skip keywords completely
no need in fun/val/var in file structure
2023-01-23 08:27:26 +00:00
Abduqodiri Qurbonzoda 1b258646be Specify benchmarks repository for Base64 2023-01-22 02:02:38 +00:00
Nikolay Krasko 92840bf4b8 Clean-up verification-metadata.xml from old dependencies 2023-01-21 16:38:49 +00:00
Nikolay Krasko 4a4c38bafa Update verification-metadata.xml after add command 2023-01-21 16:38:49 +00:00
Nikolay Krasko 4f69f61ef7 Advance version of kotlinx serialization in imports-dumper
File separator are not escaped now, as there's no need to escape /
character in JSON strings.
2023-01-21 16:38:48 +00:00
Nikolay Krasko 922ffa80b0 Remove kotlinx-serialization-core:1.0.0-RC usage 2023-01-21 16:38:48 +00:00
Nikolay Krasko e895409c4a Bump kotlinx-html-jvm version 0.6.12 -> 0.7.3 2023-01-21 16:38:48 +00:00
Nikolay Krasko 50c911f159 Restrict and document usage for special repositories
This also should reduce the amount of requests for seeking artifacts
across the repositories.
2023-01-21 16:38:47 +00:00
Ilya Chernikov 61e39f2c31 minor: fix a typo leading to the wrong lines count with LT 2023-01-21 11:20:59 +00:00
Mark Mann 47f6cb663e Native: add flag that disables ObjC method name mangling for methods in different Kotlin Interfaces (#5070) 2023-01-20 21:27:44 +01:00
Anton Lakotka bbc2a9a1db [Gradle] Test that CInterop[MDT]Tasks outputs doesn't conflict
^KT-49933
2023-01-20 20:15:40 +00:00
Sebastian Sellmair d4a9bb8d90 [Gradle] CInteropMetadataDependencyTransformationTask: Fix overlapping outputLibrariesFileIndex
Before this change, IDE tasks from different projects
were re-using the same libraries index file, leading
to overwrites and therefore missing dependencies in the IDE

KT-49933
2023-01-20 20:15:40 +00:00
Sebastian Sellmair 6849804941 [Gradle] KotlinMetadataLibraryDirectories: Use composite build root for IDE directories
KT-49933
2023-01-20 20:15:39 +00:00
Anton Lakotka 61748f4016 [Gradle] Add mavenCentralCacheRedirector back to fix compilation error
^KT-49933
2023-01-20 20:15:39 +00:00
Sebastian Sellmair 3d8ee5bae5 [Gradle][Minor] ProjectMppDependencyProjectStructureMetadataExtractor: Remove unnecessary constructor
KT-49933
2023-01-20 20:15:39 +00:00
Anton Lakotka 00bcaebd15 [Gradle] Move collectAll[PSM]InCurrentBuild to
^KT-49933
2023-01-20 20:15:38 +00:00
Anton Lakotka cc98b7b4cd [Gradle] Delete failing KPM tests after Configuration Cache fixes
KPM is experimental and is not going to be supported before stable
release

^KT-49933
2023-01-20 20:15:38 +00:00
Anton Lakotka 3a02090ff3 [Gradle] Collect project structure metadata for current build separately
^KT-49933
2023-01-20 20:15:38 +00:00
Anton Lakotka 244f742610 [Gradle] Move MetadataDependencyTransformationTask configuration to task file
^KT-49933
2023-01-20 20:15:37 +00:00
Anton Lakotka afaa86291f [Gradle] Remove dependency to transform all dependencies metadata task
from `resolveIdeDependencies` task.

^KT-49933
2023-01-20 20:15:37 +00:00
Anton Lakotka 33a680c123 [Gradle] Re-use GlobalProjectStructureMetadataStorage to obrain all...
...Kotlin Project Structure Metadata to feed it for Metadata Dependency
Transformation process

^KT-49933
2023-01-20 20:15:37 +00:00
Sebastian Sellmair 321647b831 [Gradle] Restore KotlinMetadataTargetConfigurator.applyToConfiguration
... to avoid unnecessary :all: dependencies being imported
in 'old' import style (using deprecated DependenciesMetadata configurations)

KT-49933
2023-01-20 20:15:36 +00:00
Sebastian Sellmair a02279df7d [Gradle][Minor] Optimise imports on KotlinNativeCompilation
KT-49933
2023-01-20 20:15:36 +00:00
Sebastian Sellmair 55faa69a7d [Gradle][Minor] Optimise imports on ProjectMetadataProviderImpl
KT-49933
2023-01-20 20:15:36 +00:00
Anton Lakotka 5a396187ca [Gradle] Remove with prefix in hostSpecificMetadataConfigurationName
^KT-49933
2023-01-20 20:15:35 +00:00
Anton Lakotka d5936a52f0 [Gradle] Move hostSpecificMetadataConfiguration to configuration container
Previously it was declared on KotlinNativeCompilation with extra
NativeCompilationDependencyConfigurationsContainer interface. But it is
not necessary, and hostSpecificMetadataConfiguration can be placed
directly to KotlinCompilationConfigurationsContainer and guarded
and created on demand via `withHostSpecificMetadata` flag on a factory
method.

^KT-49933
2023-01-20 20:15:35 +00:00
Sebastian Sellmair e36338b091 [Gradle][Minor] CInteropMetadataDependencyTransformationTask: Demote visibility of internals
KT-49933
2023-01-20 20:15:35 +00:00
Sebastian Sellmair b31100a90c [Gradle][Minor] MetadataDependencyTransformationTask: Demote visibilty of internals
KT-49933
2023-01-20 20:15:34 +00:00
Sebastian Sellmair e0fde89262 [Gradle][Minor] Move evaluation of 'isResolvedToProject'
KT-49933
2023-01-20 20:15:34 +00:00
Sebastian Sellmair 02c039ce8f [Gradle][Minor] Increase discoverability of 'MppDependencyProjectStructureMetadataExtractorFactory'
KT-49933
2023-01-20 20:15:33 +00:00
Sebastian Sellmair 2cd797289a [Gradle][Minor] MetadataDependencyTransformationTask: Rename transformedLibrariesFileIndex
... to transformedLibrariesIndexFile

KT-49933
2023-01-20 20:15:33 +00:00
Sebastian Sellmair f62fb6399b [Gradle] Replace 'visibleSourceSetsFromParentsProvider' by ParentSourceSetVisibilityProvider interface
KT-49933
2023-01-20 20:15:33 +00:00
Sebastian Sellmair 66e426e9ee [Gradle] CInteropMetadataDependencyTransformationTask: Remove unused code and restore UP-TO-DATE behaviour
KT-49933
2023-01-20 20:15:32 +00:00
Sebastian Sellmair 755958f41c [Gradle] Share KotlinMetadataLibrariesIndexFile impl for cinterop and regular metadata transformation
KT-49933
2023-01-20 20:15:32 +00:00
Anton Lakotka 70046ffc20 [Gradle] Add CInteropMetadataTransformations only for SharedCommonizerTargets
^KT-49933
2023-01-20 20:15:32 +00:00
Anton Lakotka 040a2904d2 [Gradle] Mute KPM tests that are failing due to changes in...
Metadata Dependency Transformation infrastructure.

^KT-49933
2023-01-20 20:15:31 +00:00
Sebastian Sellmair bf078caef6 [Gradle][Minor] LazyResolvedConfiguration: Make allResolvedDependencies lazy member
KT-49933
2023-01-20 20:15:31 +00:00
Sebastian Sellmair e8f671e824 [Gradle][Minor] LazyResolvedConfigurationTest: Add assertion for allDependencies
... to match incoming.resolutionResult.allDependencies

KT-49933
2023-01-20 20:15:31 +00:00
Sebastian Sellmair dba20b9d1d [Gradle][Minor] KotlinNativeLink: Rename exportLibrariesResolvedGraph to exportLibrariesResolvedConfiguration
KT-49933
2023-01-20 20:15:30 +00:00
Sebastian Sellmair afec974df2 [Gradle][Minor] Format GranularMetadataTransformation.kt
KT-49933
2023-01-20 20:15:30 +00:00
Sebastian Sellmair e498499858 [Gradle] Implement LazyResolvedConfigurationTest
KT-49933
2023-01-20 20:15:30 +00:00
Sebastian Sellmair 3162769b96 [Gradle] Simplify LazyResolvedConfiguration
By:
- Removing unused `moduleArtifacts` function
- Removing bad documentation (replaced by simpler function names)+
- Using .withClosure util function

KT-49933
2023-01-20 20:15:29 +00:00
Anton Lakotka 674e7aa480 [Gradle] Remove ResolvedMppVariantsProvider and all related code in KPM
Mark places where ResolvedMppVariantsProvide were used with TODOs

^KT-49933
2023-01-20 20:15:29 +00:00
Anton Lakotka 25dbfb10b8 [Gradle] Replace legacy ProjectMetadataProviderImpl with new version
New version relies on information about metadata compilation outputs of
common source sets. That is known before ProjectMetadataProvider
is created. This makes such implementation easier to use with
Configuration Cache, since getSourceSetCompiledMetadata doesn't use
Project.

^KT-49933
2023-01-20 20:15:29 +00:00
Anton Lakotka 44f2394d94 [Gradle] Mark properties that shouldn't be used in public API as internal
^KT-49933
2023-01-20 20:15:28 +00:00