Commit Graph

96658 Commits

Author SHA1 Message Date
Alexander Likhachev b7ebe77399 [Gradle] Workaround KT-55222 via reflection to make the project compilable 2022-12-02 16:37:36 +00:00
Alexander Likhachev 9bbdee7817 [Gradle] Update Gradle API for the common sourceset to 7.6
The project isn't compilable at the moment
#KT-54634 In Progress
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
Mikhail Glukhikh 900a3e59ff AndroidPackage...Extension: make createLazyValue result not null 2022-12-02 15:42:37 +00:00
Alexander Korepanov d8ab9498ab [JS IR] Fix inline functions call graph in IC
Add a dependency for inline function references,
 because in some cases the references may be inlined.

^KT-55144 Fixed
2022-12-02 13:50:37 +00:00
Alexander Korepanov c31705240a [JS IR] Support a module friendship in IC infrastructure
^KT-55097 Fixed
2022-12-02 13:50:36 +00:00
Artem Kobzar 76e629340f [K/JS] Add miss LazyIr into klib Ir generation process 2022-12-02 13:28:18 +00:00
Dmitrii Gridin 35ca45a608 [SLC] fix IDE test 2022-12-02 11:59:29 +01:00
Ilya Kirillov 264198fb51 [LL FIR] add more tests for ValueWithPostCompute 2022-12-02 09:03:30 +01:00
Ilya Kirillov bd3959894b [LL FIR] fix race in ValueWithPostCompute which happened then the computation finished with a non-recoverable exception 2022-12-02 09:03:30 +01:00
Ilya Kirillov 2218651d6c [LL FIR] fix race in ValueWithPostCompute then the computation finished with a recoverable exception
^KTIJ-23773 fixed
2022-12-02 09:02:37 +01: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 734b0a80e1 [CODEOWNERS] Add mpp team to kotlin-tooling-core and kotlin-tooling-metadata
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 0575567da4 [Gradle] Implement KotlinLibrary.builtInsPlatform extension
KT-55189
2022-12-02 07:47:28 +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
Egor Kulikov fb2485f83c [FIR] Make constructor delegate lazy in RawFirBuilder
Fifth step for ^KT-52615

Merge-request: KT-MR-7860
Merged-by: Egor Kulikov <Egor.Kulikov@jetbrains.com>
2022-12-02 03:12:51 +00:00
Sergej Jaskiewicz 1539d7ef1a [klib] Bring package names in sync with the directory layout
Basically, some package names were Native-specific, whilst the packages
themselves were not Native-specific at all. This was already reflected
in the directory layout, but not in the package names.
This is fixed here.

NFC, just an automatic rename of packages with fixes of imports.
2022-12-01 21:46:43 +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
Sergej Jaskiewicz 672be7ecb5 [test] Allow files with same names in tests
Introduce a directive that allows compiling different files with
matching names in tests.
2022-12-01 17:15:55 +00:00
Leonid Startsev ee9d9d7b32 Do not pre-generate writeSelf function for non-JVM platforms
write$Self in K1 is created only on JVM, so we need this check to avoid
creating IR function without original descriptor — it will lead to various
bugs in JS and Native, such as superclass properties missing from output
when super.writeSelf is not found in descriptor.

Fixes #KT-55180
2022-12-01 16:16:38 +00:00
Artem Kobzar 3f4a937ad6 [K/JS] Don't generate TypeScript definitions from ExportModel if the -Xgenerate-dts flag was not provided ^Fixed KT-53940 2022-12-01 15:47:08 +00:00
Artem Kobzar 0f0421ea3d [K/JS] Generating TypeScript definitions for exceptions and rest of the types ^Fixed KT-53940 2022-12-01 15:01:24 +00:00
Vyacheslav Gerasimov 50ad5027fe Build: Fix kotlin-annotation-processing pom dependencies
#KTI-878
2022-12-01 15:50:38 +01:00