Commit Graph

8177 Commits

Author SHA1 Message Date
Sebastian Sellmair 7f14255be8 [Gradle] Implement initial MppCompositeBuildIT
^KT-52172 Verification Pending
2022-12-13 14:47:17 +00:00
Sebastian Sellmair d12fbcf574 [Gradle] Share NativeDistributionCommonizerLock with 'cleanNativeDistributionCommonization' task
KT-52172
2022-12-13 14:47:16 +00:00
Sebastian Sellmair 6e0f5e8212 [Gradle] NativeDistributionCommonizerCache: Share intraProcessLock statically
KT-52172
2022-12-13 14:47:16 +00:00
Sebastian Sellmair b872d42723 [Gradle] Handle multiplatform composite builds when metadata.jar is not yet present
KT-52172
2022-12-13 14:47:16 +00:00
Sebastian Sellmair 90f8edbe80 [Gradle] TCS:Gradle Sync: Initial support for multiplatform composite builds
KT-52172
2022-12-13 14:47:15 +00:00
Sebastian Sellmair d4177f167b [Gradle] ResolvedMppVariantsProvider: Use dependent.selected instead of requested...
... in order to support dependencySubstitutions

KT-52172
2022-12-13 14:47:15 +00:00
Artem Daugel-Dauge 82a3ac830e KT-55243 Fix Gradle 7.6 incompatible root project podspec generation
Merge-request: KT-MR-7988
Merged-by: Artem Daugel-Dauge <Artem.Daugel-Dauge@jetbrains.com>
2022-12-13 12:38:36 +00:00
Andrey Uskov bdf20d756e Enable new incremental compilation by default
#KT-53832 Fixed
2022-12-12 21:40:29 +00:00
Sebastian Sellmair 5b0350d146 [Gradle] Make IdeBinaryDependencyResolver part of ExternalKotlinTargetApi
KT-55289
2022-12-12 20:29:14 +00:00
Sebastian Sellmair 59ddd381aa [Gradle] Implement IdeMultiplatformImportStatistics as project level service
KT-55289
2022-12-12 20:29:13 +00:00
Sebastian Sellmair 636d4a74a5 [Gradle] Add convenience extensions for IdeaKotlinBinaryDependency
^KT-55289 Verification Pending
2022-12-12 20:29:13 +00:00
Sebastian Sellmair 5deebd7209 [Gradle] Fix IdeSourceDependencyResolutionTest
... after 786ea79 [MPP] add tests for source set constraints

^KT-55289 Verification Pending
2022-12-12 20:29:13 +00:00
Sebastian Sellmair d7ba6916b5 [Gradle] Implement UnusedSourcesAndDocumentationFilter
^KT-55289 Verification Pending
2022-12-12 20:29:12 +00:00
Sebastian Sellmair 79fc191c20 [Gradle][Minor] Mark all IdeDependencyResolvers internal
^KT-55289 Verification Pending
2022-12-12 20:29:12 +00:00
Sebastian Sellmair d6f855b225 [Gradle] Implement very simple performance tracking for IdeDependencyResovlers
^KT-55289 Verification Pending
2022-12-12 20:29:12 +00:00
Sebastian Sellmair 7a89f4087a [Gradle] Implement IdeSourcesAndDocumentationResolutionTest
^KT-55289 Verification Pending
2022-12-12 20:29:11 +00:00
Sebastian Sellmair 7b2c4856c4 [Gradle] Implement separate SourcesAndDocumentationResolution DependencyResolutionPhase
^KT-55289 Verification Pending
2022-12-12 20:29:11 +00:00
Sebastian Sellmair fd50860b57 [Gradle][Minor] Rename IdeStdlibImportTest.kt to IdeStdlibResolutionTest
^KT-55289 Verification Pending
2022-12-12 20:29:11 +00:00
Sebastian Sellmair 0395b8f975 [Gradle][Minor] Rename IdeResolveSourceDependenciesTest.kt to IdeSourceDependencyResolutionTest
^KT-55289 Verification Pending
2022-12-12 20:29:10 +00:00
Sebastian Sellmair 6457bae80c [Gradle] Rename IdeSlowSourcesAndDocumentationResolver.kt to IdeArtifactResolutionQuerySourcesAndDocumentationResolver
^KT-55289 Verification Pending
2022-12-12 20:29:10 +00:00
Sebastian Sellmair a438c12bf5 [Gradle] resolvableMetadataConfiguration: Use named configuration and extendsFrom
^KT-55289 Verification Pending
2022-12-12 20:29:10 +00:00
Sebastian Sellmair f0ac427f46 [Gradle] Remove old comment from resolvableMetadataConfiguration.kt
^KT-55289 Verification Pending
2022-12-12 20:29:10 +00:00
Sebastian Sellmair 077945ef46 [Gradle] Adjust NewMultiplatformIT: Add stdlib-common
^KT-55289 Verification Pending
2022-12-12 20:29:09 +00:00
Sebastian Sellmair eabc763c4f [Gradle] resolvableMetadataConfiguration: Use detachedConfiguration
^KT-55289 Verification Pending
2022-12-12 20:29:09 +00:00
Sebastian Sellmair b659778b2f [Gradle] Implement IdeMetadataSourcesResolver by resolving 'resolvableMetadataConfiguration'
^KT-55289 Verification Pending
2022-12-12 20:29:09 +00:00
Sebastian Sellmair bfdcda82ab [Gradle] Rename IdePlatformDependencyResolver.kt to IdeBinaryDependencyResolver
^KT-55289 Verification Pending
2022-12-12 20:29:08 +00:00
Sebastian Sellmair 703fd0f23a [Gradle] GranularMetadataTransformation: Re-use resolvableMetadataConfiguration
^KT-55289 Verification Pending
2022-12-12 20:29:08 +00:00
Sebastian Sellmair ec9956041a [Gradle] Implement and re-use resolvableMetadataConfiguration for Source Sets
^KT-55289 Verification Pending
2022-12-12 20:29:07 +00:00
Sebastian Sellmair 764a57f126 [kotlin-tooling-core] Implement ExtrasLazyProperty
^KT-55289 Verification Pending
2022-12-12 20:29:07 +00:00
Sebastian Sellmair bd229584e4 [Gradle] Implement sources.jar resolvers
^KT-55289 Verification Pending
2022-12-12 20:29:07 +00:00
Yahor Berdnikau ff73e7a37a Fix version parsing crash on Gradle rich version string
Gradle accepts different types of version string declaration:
https://docs.gradle.org/current/userguide/single_versions.html. Now code
 should parse such declarations into semantic versioning without
 exception.

^KT-55255 Fixed
2022-12-12 19:26:07 +00:00
Anton Lakotka 36591ab8a0 [Gradle] Replace toLowerCase/toUpperCase with ASCII-only variants
^KT-38712 Verification Pending
2022-12-12 10:47:44 +00:00
Anton Lakotka afb2bfe492 [Gradle, Test] Add JS target and presets names for checking incorrect...
... characters after setting Locale to Turkish.

^KT-38712
2022-12-12 10:47:43 +00:00
Anton Lakotka a37b548b9f [Gradle, Test] Reset locale to default when changing it for tests
Since `Locale.setDefault` is a global operation it will take effect on
other test causing them to produce unexpectable results.

^KT-38712
2022-12-12 10:47:43 +00:00
Alexander Likhachev 0466fc536d [Gradle] Don't convert free compiler arguments to set, avoid args duplication
#KT-55363 Fixed
2022-12-09 10:59:14 +00:00
Alexander Likhachev a5810d88a5 [Gradle] Add an integration test for KT-55363 2022-12-09 10:59:14 +00:00
Anton Lakotka 96e1ba045c [Gradle] Do not throw exceptions when getDependenciesTransformation...
is called. Some kotlin plugins (for example JS) re-use
DefaultKotlinSourceSet class for their source sets. However
DefaultKotlinSourceSet has an API that is connected to IDE import
particularly `getDependenciesTransformation`. Since Kotlin/JS doesn't
support metadata dependencies, and their transformations as well
we should lift strong requirement for compileDependenciesTransformation
to be set for each source set. Instead, just return empty list of
transformations.

^KT-55347 Verification Pending
2022-12-08 13:38:13 +00:00
Anton Lakotka 5347fc235b [Gradle, Test] GranularMetadataTransformation should be accessible in JS
Pure JS projects should still be able to import even thus calling
`getDependenciesTransformation` should not throw any runtime exceptions
and results should be empty. Since JS projects doesn't support metadata
dependencies transformations.

^KT-55347 In Progress
2022-12-08 13:38:13 +00:00
Anton Lakotka 1d041b7ef4 [Gradle] Replace deprecated String::capitalize with capitalizeAsciiOnly
This should prevent issues when ascii characters are uppercased or
lowercased on users machines with their locales.

For example in Turkish locale:
* 'i' uppercases to 'İ'
* 'I' lowercases to 'ı'

^KT-38712 Verification Pending
2022-12-07 20:39:26 +00:00
Anton Lakotka 7ef858b2fe [Gradle, Test] Check gradle entity names for turkish 'I' or 'ı'
^KT-38712
2022-12-07 20:39:25 +00:00
Pavel Kirpichenkov f0642d6c9a fixup! Fix configurations in dependency handler of KotlinWithJavaCompilation 2022-12-07 13:35:55 +00:00
Pavel Kirpichenkov 72120271b7 fixup! Fix configurations in dependency handler of KotlinWithJavaCompilation 2022-12-07 13:35:55 +00:00
Pavel Kirpichenkov 55c13d7c05 fixup! Fix configurations in dependency handler of KotlinWithJavaCompilation 2022-12-07 13:35:55 +00:00
Pavel Kirpichenkov 786ea79886 [MPP] add tests for source set constraints
KT-54974
2022-12-07 13:35:54 +00:00
Bogdan Mukvich c02d5e8dcc Make maven dependencies provided in kotlin-maven-plugin
KTI-1028
2022-12-07 10:28:48 +00:00
Bogdan Mukvich cffeb58ec3 Update maven dependencies in kotlin-maven-plugin
KTI-1028
2022-12-07 10:28:48 +00:00
Yahor Berdnikau c682d4f4cc Use 'jvm-test-suite' for KGP functional tests 2022-12-06 13:18:43 +00:00
Anton Lakotka 8726360a8e [Gradle] Update tests after removing runtimeOnly metadata transformations
Additionally check that all metadata dependencies per scope resolve
consistently. It is a side effect after creating GranularMetadata
dependency for all compile scopes instead per scope style.

^KT-55230
2022-12-06 12:49:28 +00:00
Anton Lakotka d28659fdbe [Gradle] Merge scoped dependency transformations to one: compile scope
There is no need on fine-grained metadata dependencies transformation
per scope. Because it is only needed for compilation.

^KT-55230 Fixed
2022-12-06 12:49:27 +00:00
Anton Lakotka 98678bce0a [Gradle] Remove metadata dependencies transformation for runtimeOnly
Kotlin Metadata KLIBs cannot be used in runtime thus
we don't have to transform composite JARs that contain
metadata per source set for runtimeOnly dependencies scopes.

^KT-55230 Fixed
2022-12-06 12:49:27 +00:00