Commit Graph

8422 Commits

Author SHA1 Message Date
Sebastian Sellmair 24db9f3680 [Gradle] Add MppCompositeBuildIT with host specific targets
... to cover KT-56111
2023-01-23 19:25:34 +00:00
Artem Daugel-Dauge c2e092fe4a [Gradle] Fix invalidating iOS framework after import
^KT-49430 Verification Pending
2023-01-23 18:52:03 +00:00
Artem Daugel-Dauge 8a34d1f430 Separate podgen & podinstall tasks
^KT-54161 Verification Pending
2023-01-23 18:52:03 +00:00
Alexander.Likhachev f144f8b6d3 [Gradle] Fix compilation error in CocoaPodsIT
Also add a Gradle version constraint for deprecation warnings suppressing
KT-55972 Related
2023-01-23 19:02:22 +01:00
Alexander.Likhachev 2e7e1625d3 [Gradle] Remove warnings suppression from more tests
KT-55972 Related
2023-01-23 17:21:17 +00:00
Alexander.Likhachev 9bb2a2468d [Gradle] Suppress warnings only for the Gradle versions that produce them
KT-55972 Related
2023-01-23 17:21:17 +00:00
Alexander.Likhachev 3373a1dd90 [Gradle] Add a warning mode assertion for the old test DSL tests
#KT-55972 Fixed
2023-01-23 17:21:17 +00:00
Alexander.Likhachev 1e7cf5571b [Gradle] Add a warning mode assertion for the new test DSL tests
#KT-55972 In Progress
2023-01-23 17:21:16 +00:00
Alexander.Likhachev dc24582a0b [Gradle] Apply gradle-warnings-detector to test projects
#KT-55972 In Progress
2023-01-23 17:21:16 +00:00
Alexander.Likhachev 7bcfa45c49 [Build] Add gradle-warnings-detector plugin for integration tests
#KT-55972 In Progress
2023-01-23 17:21:16 +00:00
Dmitriy Dolovov b42492cd4d [Native][tests] Mute failing ktor 1_5_4 and coroutines 1_5_0-RC-native-mt (KT-46697) Gradle IT 2023-01-23 16:11:06 +00:00
Roman Efremov 2dc3871954 Add "hasEnumEntries" class flag to kotlinx-metadata
^KT-53929 Fixed
2023-01-23 12:53:06 +01:00
Artem Daugel-Dauge f6eb978671 [Gradle] More workarounds for KT-55751 after adding linkOnly mode 2023-01-23 11:48:04 +00:00
Nikolay Krasko 922ffa80b0 Remove kotlinx-serialization-core:1.0.0-RC usage 2023-01-21 16:38:48 +00: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
Anton Lakotka a2276f9c21 [Gradle] Create separate hostSpecificMetadataConfiguration for Native
Previously this configuration was created on ad-hoc basis by copying
the compileDependenciesConfiguration. This creates bunch of copies
which are practically doing the same thing. Extracting it on
compilation level makes it more controllable and prevents any duplicates

^KT-49933
2023-01-20 20:15:28 +00:00