Commit Graph

8044 Commits

Author SHA1 Message Date
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
Sebastian Sellmair bb039ae535 [Gradle] kgp-idea: Implement IdeaKotlinExtra
KT-55189
2022-12-02 07:47:28 +00:00
Sebastian Sellmair 8cee0496f3 [Gradle] Lift String, Int and Boolean serializers from testFixtures to main source set
KT-55189
2022-12-02 07:47:27 +00:00
Sebastian Sellmair c30b554dc4 [Gradle] Implement IdeDependencyLogger
KT-54977
2022-12-02 07:47:27 +00:00
Sebastian Sellmair 0ad45cc196 [Gradle] Implement IdeResolveDependenciesTask
KT-54977
2022-12-02 07:47:27 +00:00
Sebastian Sellmair d268a7e117 [Gradle] IdeMultiplatformImportImpl: Catch exceptions in dependency resolvers
KT-54977
2022-12-02 07:47:26 +00:00
Anton Lakotka 14acbd990f [Gradle, Test] Update kotlin-js-plugin-project with sources publication
Sources are published now as gradle variant, so it shouldn't be added
manually to publication.

^KT-36943
2022-12-01 18:57:05 +00:00
Anton Lakotka 5023ccc724 [Gradle] Keep kotlinSourcesJar in Kotlin/JVM projects
After introducing sourcesElements for Multiplatform projects the task
was not registered. As result of an assumption that Java Gradle Plugin
is taking care of sources publication. But in fact some users can
still rely on Kotlin's `kotlinSourceJar` task instead of JGP's
`sourcesJar`. This look inconsistent and is a matter of a different
issue: KT-54207

^KT-36943
2022-12-01 18:57:04 +00:00
Anton Lakotka 51c33333ea [Gradle, Test] Update ConfigurationsTest after adding sourcesElements
^KT-36943
2022-12-01 18:57:04 +00:00
Anton Lakotka f72b67a5ca [Gradle] Update kotlin-gradle-plugin-api.api
Add new field `sourcesElementsConfigurationName` to KotlinTarget

^KT-36943
2022-12-01 18:57:03 +00:00
Anton Lakotka 032c3330ab [Gradle] Support sources publication as variants in ExternalKotlinTarget
^KT-36943
2022-12-01 18:57:03 +00:00
Anton Lakotka b7dff37734 [Gradle] Rename usageScope to mavenScope of KotlinUsageContext
and remove includeDependenciesToMavenPublication flag as it not
needed anymore.
2022-12-01 18:57:02 +00:00
Anton Lakotka 3fa85bf7fd [Gradle, MPP] Publish sources as gradle variants
Now when MPP library is published it will contain "sourcesElements"
variant for each target and one for common code.

Sources variants are published under gradle attributes that were
borrowed from Java Gradle Plugin for consistency reasons.
This makes it compatible with JVM tooling that rely on these attributes.

^KT-36943 Verification Pending
2022-12-01 18:57:02 +00:00
Anton Lakotka fd7ceabab6 [Gradle, MPP] Test sources publication as gradle variants
^KT-36943
2022-12-01 18:57:01 +00:00
Anton Lakotka 3a418bfe66 [Gradle, Test] Move mpp-sources-publication test data 2022-12-01 18:57:01 +00:00
Anton Lakotka a093527b8d [Gradle] Copy user-defined attributes to android variants...
when they are grouped by flavor.

In such case a different implementation of SoftwareComponents is used
And originally only KotlinComponents were covered.
2022-12-01 18:57:00 +00:00
Anton Lakotka 8e85e556ce [Gradle] Stop using Usage of UsageContext for maven scoping
Replace it instead with dedicated property [usageScope].

Gradle no longer supports `Usage` and KGP used it only for mapping
dependencies to appropriate maven scopes.
2022-12-01 18:57:00 +00:00
Artem Daugel-Dauge 30c2c62a1b Properly specify outputs for PodGenTask + expose Podfile location 2022-11-30 21:19:14 +00:00
Yahor Berdnikau 4d20b43619 Set jvm target validation to error only for builds with Gradle 8+
^KT54993 Fixed
2022-11-29 14:34:54 +00:00
Sebastian Sellmair 05b8a26a17 [Gradle] IdeMultiplatformImport: Support LibraryBinaryIdentifier 2022-11-29 12:52:51 +00:00
Dmitriy Dolovov 898626d055 [Gradle][IT] Fix K/N IT that fails due to new interop library CoreFoundationBase 2022-11-29 10:19:00 +00:00
Sebastian Sellmair 0b5d905577 [Gradle] Update kotlin-tooling-core.api and kotlin-gradle-plugin-idea.api
^KT-55112 Verification Pending
2022-11-29 08:05:15 +00:00
Sebastian Sellmair 80f22dda28 [Gradle] Cleanup IdeMultiplatformImportFactory.kt
^KT-55112 Verification Pending
2022-11-29 08:05:15 +00:00
Sebastian Sellmair d6f9e62565 [Gradle] Constraint IdeVisibleMultiplatformSourceDependencyResolver to non-leaf source sets
^KT-55112 Verification Pending
2022-11-29 08:05:15 +00:00
Sebastian Sellmair 2f5dc93ba7 [Gradle] Replace IdeaKotlinProjectArtifactDependency.Resolver by resolved function
^KT-55112 Verification Pending
2022-11-29 08:05:14 +00:00
Sebastian Sellmair 4c270c7f6e [kotlin-tooling-core] Implement HasExtras utils
^KT-55112 Verification Pending
2022-11-29 08:05:14 +00:00
Sebastian Sellmair 55cfe52e7d [Gradle] IdeaKotlinProjectArtifactDependencyMatcher: Use host independent path matcher
^KT-55112 Verification Pending
2022-11-29 08:05:14 +00:00
Sebastian Sellmair 3f24b690e2 [Gradle] IdeVisibleMultiplatformSourceDependencyResolver: Reuse resolveMetadata function
^KT-55112 Verification Pending
2022-11-29 08:05:13 +00:00
Sebastian Sellmair 813fb6fc40 [Gradle] kgp-idea: Update api reference
KT-55112
2022-11-29 08:05:13 +00:00
Sebastian Sellmair f9d1286fce [Gradle] kgp-idea: Compatibility tests: bump version to 1.8.20-dev-3076
KT-55112
2022-11-29 08:05:13 +00:00
Sebastian Sellmair 2bfc559c50 [Gradle] Implement IdeaKotlinEntityTest and IdeaKotlinEntity annotations
KT-55112
2022-11-29 08:05:12 +00:00
Sebastian Sellmair 2c55d2cea3 [Gradle] Implement IdeaKotlinProjectArtifactDependency.Resolver.composite
KT-55112
2022-11-29 08:05:12 +00:00
Sebastian Sellmair 273f8a8434 [Gradle] Implement IdeaKotlinProjectArtifactDependency.Resolver
KT-55112
2022-11-29 08:05:11 +00:00
Sebastian Sellmair 0aad848757 [Gradle] IdeMultiplatformImport: Force empty binary resolve for Android dependencies
KT-55112
2022-11-29 08:05:11 +00:00
Sebastian Sellmair 90248f4e44 [Gradle] Share utils in IdeMetadataDependencyResolvers with IdeJvmAndAndroidSourceDependencyResolver
KT-55112
2022-11-29 08:05:11 +00:00
Sebastian Sellmair cda82b47e0 [Gradle] Implement IdeaKotlinProjectArtifactDependency
KT-55112
2022-11-29 08:05:10 +00:00
Sebastian Sellmair e6daabdb2d [Gradle] IdeOriginalMetadataDependencyResolver: Safe cast to ModuleCompontentIdentifier
KT-55112
2022-11-29 08:05:10 +00:00
Sebastian Sellmair dcc196db04 [Gradle] Implement IdeJvmAndAndroidSourceDependencyResolver
KT-55112
2022-11-29 08:05:10 +00:00
Sebastian Sellmair 38446dc3e8 [Gradle] IdeResolveSourceDependenciesTest: Implement jvmAndAndroid test
KT-55112
2022-11-29 08:05:09 +00:00
Sebastian Sellmair d935e41862 [Gradle] Implement IdeFriendSourceDependencyResolver & IdeVisibleMultiplatformSourceDependencyResolver
KT-55112
2022-11-29 08:05:09 +00:00
Alexander Korepanov 9dab8637a8 [JS Gradle] Pass incremental cache root dir to K2JS compiler 2022-11-28 20:46:40 +00:00
Alexander Korepanov ca19d71a00 [JS IR] Commit cache header after lowering
Commiting cache header before lowering may
 break caches in case of lowering errors.

^KT-54912 Fixed
2022-11-28 20:46:40 +00:00
Pavel Kirpichenkov ad0dee822e [MPP] KT-54974 Implement TCS dependency resolver for K/N stdlib 2022-11-28 09:25:07 +00:00
Artem Daugel-Dauge 4f736524b2 KT-54969 Kotlin artifacts withPodspec DSL 2022-11-27 18:09:38 +00:00