10537 Commits

Author SHA1 Message Date
Sebastian Sellmair c802fd30c0 [Gradle] IdeJvmAndAndroidDependencyResolutionTest: Add assertion on jvmAndAndroidTest
^KT-55475 Verification Pending
2022-12-15 13:01:42 +00:00
Sebastian Sellmair 9f810116d3 [Gradle] Fine-tune Jvm and Android ide dependency resolution
The binary dependency resolver shall only run for remote
artifacts. Project to project dependencies shall be handled
by the IdeJvmAndAndroidSourceDependencyResolver

^KT-55475 Verification Pending
2022-12-15 13:01:42 +00:00
dependabot[bot] 1371216207 Bump decode-uri-component in /libraries/tools/kotlin-test-js-runner
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-13 16:27:53 +01:00
Sebastian Sellmair 1d30ce9662 [Gradle] MppCompositeBuildIT: Replace included build path in Windows compatible way
^KT-52172 Verification Pending
2022-12-13 14:47:19 +00:00
Sebastian Sellmair 151da98331 [Gradle] cleanNativeDistributionCommonization: Don't try to delete .lock file
^KT-52172 Verification Pending
2022-12-13 14:47:19 +00:00
Sebastian Sellmair 8a01ad9010 [Gradle] MppCompositeBuildIT: Add test for included build using different Kotlin version
^KT-52172 Verification Pending
2022-12-13 14:47:18 +00:00
Sebastian Sellmair fb6a2f5bb4 [Gradle] Implement MppCompositeBuildIT based on martinbonnin's commit
^KT-52172 Verification Pending
2022-12-13 14:47:18 +00:00
Sebastian Sellmair abd58445c9 [Gradle] Move test project from martinbonnin into /sample1
^KT-52172 Verification Pending
2022-12-13 14:47:18 +00:00
Martin Bonnin 240983bca4 [Gradle] add a reproducer project for KT-52172
Cherry Picked from: https://github.com/JetBrains/kotlin/pull/5045
2022-12-13 14:47:17 +00:00
Sebastian Sellmair b706e05e65 [Gradle] NativeDistributionCommonizerLock: Lift lockedOutputDirectories into companion
^KT-52172 Verification Pending
2022-12-13 14:47:17 +00:00
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