10537 Commits

Author SHA1 Message Date
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
Bogdan Mukvich 5db9c2990a Remove deprecated dependencies resolvers from kotlin-script-util
along with outdated maven dependencies
2022-12-06 09:52:17 +00:00
Sebastian Sellmair 56b57f1908 [Gradle] Fix ConfigurationCacheIT.testCommonizer
... after removing Project parameter for 'getCommonizerTarget' calls

KT-55238
2022-12-06 08:36:13 +00:00
Sebastian Sellmair 7258926db6 [Gradle] IdeCompositeDependencyResolver: Support WithBuildDependencies
KT-55238
2022-12-06 08:36:13 +00:00
Sebastian Sellmair b4b0607597 [Gradle] Refine MppIdeDependencyResolutionIT
KT-55238
2022-12-06 08:36:13 +00:00
Sebastian Sellmair 23bd6332b4 [Gradle] Update kotlin-gradle-plugin-idea.api
KT-55238
2022-12-06 08:36:12 +00:00
Sebastian Sellmair 2225816427 [Gradle] CInteropCommonizerDependent: Remove unused Project parameters
KT-55238
2022-12-06 08:36:12 +00:00
Sebastian Sellmair 1ec7e404fd [Gradle] Implement MppIdeDependencyResolutionIT.testCommonizedPlatformDependencyResolution
^KT-55238 Verification Pending
2022-12-06 08:36:12 +00:00
Sebastian Sellmair ee07fcc00b [Gradle] Implement IdeDependencyResolver.WithBuildDependencies
KT-55238
2022-12-06 08:36:11 +00:00
Sebastian Sellmair 4b036cc627 [Gradle] Implement IdeCommonizedNativePlatformDependencyResolver
KT-55238
2022-12-06 08:36:11 +00:00
Sebastian Sellmair c1b1737cf0 [Gradle][Minor] Remove Project receiver from .getCommonizerTarget functions
KT-55238
2022-12-06 08:36:10 +00:00
Sebastian Sellmair f8919533dc [Gradle] Update kotlin-gradle-plugin-api.api
KT-55218
2022-12-06 08:35:17 +00:00
Sebastian Sellmair 7c70319308 [Gradle] KotlinTargetHierarchyBuilder: Support Android compilations
KT-55218
2022-12-06 08:35:17 +00:00
Sebastian Sellmair 8bea195d68 [Gradle] KotlinTargetHierarchyBuilder: Use any prefix for target functions
... to disambiguate with target preset functions

KT-55218
2022-12-06 08:35:16 +00:00
Anton Lakotka 6614714c94 [Gradle] Register sourcesJar during KotlinSoftwareComponent init
sourcesJar task should be available as soon as kotlin multiplatform
plugin is applied before actual evaluation.

Although copySpec of sourcesJar task will be updated in afterEvaluate
block since user should define themselves targets and intermediate
source sets between them.

^KT-55230
2022-12-05 16:54:58 +00:00
Anton Lakotka 290e50eebf [Gradle, Test] Test that sourcesJar is available during configuration
^KT-55230
2022-12-05 16:54:57 +00:00
Pavel Kirpichenkov 94f690a10e [MPP] fix misconfigured project in test
JVM + linux project shouldn't have a JVM-only dependency in common

KT-54975
2022-12-05 14:55:46 +00:00
Andrey Uskov 41ff283856 Don't call File.getCanonicalPath in KGP
Relates to KT-54579.
2022-12-04 18:49:30 +00:00
Andrey Uskov ca8f234f28 Improve performance of KAPT on JDK 17
Getting canonical path is expensive on JDK 17, thus check, whether
file is belongs to some folder becomes expensive.
In this commit implementation was replaced to a new one based on
File.getParent. It gives profit 49seconds-> 500 ms/100k files.
Note! Now if there are present two files which are actually links of the
same file, they are treated as two different files.
#KT-54579 Fixed
2022-12-04 18:49:30 +00:00
Pavel Kirpichenkov cba90c73e6 [MPP] Add stdlib-common filter, extend platform dependency resolution
KT-54975
2022-12-04 16:15:09 +02:00
Pavel Kirpichenkov 13d1f0eab0 Minor: fix typo 2022-12-04 16:14:38 +02:00
Vyacheslav Karpukhin 91749737f8 [Gradle] Workaround KT-55222 via reflection to make the project compilable 2022-12-02 21:44:36 +01:00
Alexander Likhachev 063dcea2e2 [Gradle] Access MppTestReportHelper factory directly instead of providers
Workaround for KT-55241
2022-12-02 16:37:37 +00:00
Alexander Likhachev cb53d0c388 [Gradle] Migrate AndroidDependencyResolver to the new variants selection API
#KT-55222 Fixed

Co-authored-by: Vyacheslav Karpukhin <vyacheslav.karpukhin@jetbrains.com>
2022-12-02 16:37:37 +00:00
Alexander Likhachev 6bbc577942 [Gradle] Introduce MppTestReportHelper to handle differences in internal Gradle testing API
#KT-54634 Fixed
2022-12-02 16:37:36 +00:00
Alexander Likhachev b7ebe77399 [Gradle] Workaround KT-55222 via reflection to make the project compilable 2022-12-02 16:37:36 +00:00
Alexander Likhachev 857f704a09 [Gradle] Add test for KT-54634 2022-12-02 16:37:35 +00:00
Alexander Likhachev f839d5d4c2 [Gradle] Add Gradle 7.6+ variant
#KT-54634 In Progress
2022-12-02 16:37:35 +00:00
Sebastian Sellmair adf6516986 [Gradle] Make 'isIdeaProjectLevel' opt-out instead of opt-in
KT-55218
2022-12-02 07:47:33 +00:00
Sebastian Sellmair ba68977f52 [Gradle] Remove HasExtras delegates in favor of new ExtrasProperty
KT-55189
2022-12-02 07:47:33 +00:00
Sebastian Sellmair 4ea77f7836 [Gradle] Update kotlin-gradle-plugin-idea.api and kotlin-tooling-core.api
KT-55189
2022-12-02 07:47:32 +00:00
Sebastian Sellmair c17daecca5 [Gradle] Mark InternalKotlinSourceSet as HasMutableExtras
KT-55189
2022-12-02 07:47:32 +00:00
Sebastian Sellmair 4d3880879d [Gradle] Use ExtrasProperty
KT-55189
2022-12-02 07:47:31 +00:00
Sebastian Sellmair a23e4a1048 [kotlin-tooling-core] Implement ExtrasProperty
KT-55189
2022-12-02 07:47:31 +00:00
Sebastian Sellmair 02ec4cb1b5 [Gradle] Fixup assertions
KT-55189
2022-12-02 07:47:31 +00:00
Sebastian Sellmair 61c2c0680f [Gradle] Update kotlin-gradle-plugin-idea.api
KT-55189
2022-12-02 07:47:30 +00:00
Sebastian Sellmair e002bbe906 [Gradle] Mark dependencies coming from nativeDistribution
KT-55189
2022-12-02 07:47:30 +00:00
Sebastian Sellmair 45ebbede2f [Gradle] Move native distribution dependency resolvers up
KT-55189
2022-12-02 07:47:29 +00:00
Sebastian Sellmair 3dc61822bd [Gradle] Ide dependency resolvers: support KlibExtra and isIdeaProjectLevel
KT-55189
2022-12-02 07:47:29 +00:00
Sebastian Sellmair a68140e51d [Gradle] Fix IdeNativePlatformDependencyResolver using wrong binaryType
KT-55189
2022-12-02 07:47:29 +00:00
Sebastian Sellmair 0f533a8a2f [Gradle] kgp-idea: Implement isIdeaProjectLevel and KlibExtra
KT-55189
2022-12-02 07:47:28 +00:00