Commit Graph

104116 Commits

Author SHA1 Message Date
Sebastian Sellmair 282d2f4454 [Gradle] Remove Gradle KPM implementation
KT-61463
2023-08-29 16:45:12 +00:00
Sebastian Sellmair 34abc008ec [Gradle] Update api dump after removing KPM import code
KT-61463
2023-08-29 16:45:12 +00:00
Sebastian Sellmair ea3c275961 [Gradle] Dissolve .kotlin.gradle.kpm package
KT-61463
2023-08-29 16:45:12 +00:00
Sebastian Sellmair 0a8cca9be4 [Gradle] Remove KPM IDE Gradle Sync support
KT-61463
2023-08-29 16:45:12 +00:00
Sebastian Sellmair e800885c03 [Gradle] Remove ':kotlin-gradle-plugin-kpm-android' module
KT-61463
2023-08-29 16:45:12 +00:00
Vladislav Grechko d97e8ae456 Use Enum.entries instead of deprecated Enum.values() 2023-08-29 16:30:57 +00:00
Ilya Gorbunov 7d3f080c81 Generate JS Long using builtin generators (step 2) 2023-08-29 16:27:55 +00:00
Ilya Gorbunov 814515964d Move JS Long to generated Primitives.kt file (step 1) 2023-08-29 16:27:55 +00:00
Igor Chevdar 2e02ee4ec8 [K/N] Fixed a corner case in escape analysis
#KT-61409 Fixed
2023-08-29 16:05:13 +00:00
Yahor Berdnikau e80988d98c [Gradle] Don't collect module-info on using new IC/JVM approach
Collecting 'moduleInfo' is required for the old history-file-based
incremental compilation approach. And the way how it is being collected
violates Gradle project-isolation feature as it accesses all Kotlin
compile tasks from other Gradle subprojects.

When the new IC based on classpath snapshot is enabled, the plugin will
not collect 'moduleInfo' making it compatible with project isolation.

^KT-59826 Fixed
2023-08-29 15:21:57 +00:00
Yahor Berdnikau 40928d50a2 [Gradle] Access build stats internal properties in project-isolation compatible way
^KT-59826 In Progress
2023-08-29 15:21:57 +00:00
Yahor Berdnikau d6becee2ce [Gradle] Read 'local.properties' in project isolation compatible way
^KT-59826 In Progress
2023-08-29 15:21:56 +00:00
Yahor Berdnikau b1965e746f [Gradle] Move project isolation test to separate test suite
^KT-59826 In Progress
2023-08-29 15:21:56 +00:00
Svyatoslav Scherbina b8e1349b72 Native: fix filecheck_constants_merge test after 4774912f
4774912f updated the patterns for the filecheck_constants_merge test,
because the commit slightly changed the code generated for TypeInfo.
But the test update was made with a copy-paste-related mistake.

As a result, the test didn't work with `-Ptest_with_cache_kind=static`.
This commit fixes this, buy reverting the unintended changes in
the filecheck patterns.
2023-08-29 13:48:30 +00:00
Alexander.Likhachev 9ec0ab2f5c [Gradle] Disable failed K2 JS IC test
Enable it back when KT-61153 is resolved
#KT-60588 In Progress
2023-08-29 13:37:26 +00:00
Alexander.Likhachev 9e31904f0f [Gradle] Run CompilerPluginsIncrementalIT only with K1
Should be reconsidered in KT-61171
#KT-60588 In Progress
2023-08-29 13:37:26 +00:00
Alexander.Likhachev 52303a1b23 [Gradle] Fix test plugins application 2023-08-29 13:37:25 +00:00
Alexander.Likhachev 4f820230fd [Gradle] Disable K2 precise java tracking IC tests
Enable them back when KT-57147 is resolved
#KT-60588 In Progress
2023-08-29 13:37:25 +00:00
Alexander.Likhachev a89aa1fb8d [Gradle] Disable failed daemon test with K2
Enable it back when KT-58894 is resolved
#KT-60588 In Progress
2023-08-29 13:37:25 +00:00
Alexander.Likhachev 82df028bc5 [Gradle] Disable failed K2 scripting tests
Enable them back when KT-61137 is resolved
#KT-60588 In Progress
2023-08-29 13:37:25 +00:00
Alexander.Likhachev bdf87c2713 [Gradle] Limit language version for tests providing Gradle plugins
#KT-60588 In Progress
2023-08-29 13:37:25 +00:00
Alexander.Likhachev c6b1d37476 [Gradle] Add expected K2 Kapt fallback warning
#KT-60588 In Progress
2023-08-29 13:37:25 +00:00
Alexander.Likhachev 3177df9ad8 [Gradle] Disable LightTree for K2 scripting tests
#KT-60588 In Progress
2023-08-29 13:37:25 +00:00
Alexander.Likhachev 196fb3e5f1 [Gradle] Split K1/K2 integration tests
#KT-60588 In Progress
2023-08-29 13:37:25 +00:00
Johan Bay 0a612e4268 [klib] Add an option to write out header klibs
The header klib is supposed to only contain the public abi of the module
similar to jvm-abi-gen. It is intended to be used as a dependency for other
klib compilations instead of the full klib for compilation avoidance.

^KT-60807
2023-08-29 13:25:07 +00:00
Alexander.Likhachev 829e0675f4 [Build] Suppress BuildToolsApiVersionInconsistency for the kotlin repo 2023-08-29 13:00:16 +00:00
Alexander.Likhachev 501c111e36 [Gradle] Implement BuildToolsApiVersionInconsistency diagnostic
This diagnostic checks if the Build Tools API implementation version is consistent with KGP in the case compilation goes using the old way
#KT-61449 Fixed
2023-08-29 13:00:16 +00:00
Alexander.Likhachev 271d767138 [Gradle] Allow using KotlinToolingDiagnosticsCollector in transform actions
Related to KT-56832
2023-08-29 13:00:16 +00:00
Alexander.Likhachev e6ae3f1d85 [Gradle] Replace intellijCore() dependency by intellijPlatformUtil()
#KT-61449 In Progress
2023-08-29 13:00:16 +00:00
Alexander.Likhachev 59997fb76a [Build] Update the list of modules with disabled K2 bootstrap
#KT-61449 In Progress
Relates to KT-59171
2023-08-29 13:00:15 +00:00
Alexander.Likhachev db43d8cc8d [Build] Apply workaround for bt-api resolution as in b97e82f604 2023-08-29 13:00:15 +00:00
Alexander.Likhachev 2304b0f12d [Build] Change how buildSrc buildscript detects versions 2023-08-29 13:00:15 +00:00
Alexander.Likhachev 2570be129f [Gradle, BT] Move script definitions scanning into the build tools API
#KT-61449 In Progress
2023-08-29 13:00:15 +00:00
Alexander.Likhachev 6cfa165ddb [Gradle, Build] Publish an artifact with unpublished compiler modules for KGP
#KT-61449 In Progress
2023-08-29 13:00:15 +00:00
Alexander.Likhachev c3f8706fe2 Use kotlin-stdlib to fully read a reader in CompilerOutputParser
The `FileUtil` requires additional dependency on intellij util artifacts
#KT-61449 In Progress
2023-08-29 13:00:15 +00:00
Alexander.Likhachev b4e8e27a6f Apply reformatting to CompilerOutputParser.kt 2023-08-29 13:00:15 +00:00
Alexander.Likhachev b14406b7b7 [Gradle] Inline daemon exception report call
It allows getting rid of the dependency on `:compiler:incremental-compilation-impl`
#KT-61449 In Progress
2023-08-29 13:00:15 +00:00
Alexander.Likhachev d9a6bed012 [Gradle, JS] Hardcode legacy DCE tool main class
It allows getting rid of the dependency on `:compiler:cli-js`
#KT-61449 In Progress
2023-08-29 13:00:15 +00:00
Alexander.Likhachev 52ac237015 [Gradle] Copy destinationAsFile and classpathAsList extensions
It allows getting rid of the dependency on `:compiler:incremental-compilation-impl`
#KT-61449 In Progress
2023-08-29 13:00:15 +00:00
Alexander.Likhachev 5c852347a1 [Gradle] Copy ABI_SNAPSHOT_FILE_NAME constant
It allows getting rid of the dependency on `:compiler:incremental-compilation-impl`
#KT-61449 In Progress
2023-08-29 13:00:15 +00:00
Alexander.Likhachev 3fb1f7bf42 [Gradle] Migrate from ChangesFiles to SourcesChanges
It allows getting rid of the dependency on `:compiler:incremental-compilation-impl`
#KT-61449 In Progress
2023-08-29 13:00:15 +00:00
Alexander.Likhachev 4eb468443a [Gradle] Remove old classpath snapshot transformation
Leave only the implementation via the build tools API in order to reduce compiler dependencies.
THe old implementation expects to have many of compiler modules (through `kotlin-compiler-embeddable`) in the plugin runtime classpath
#KT-61449 In Progress
2023-08-29 13:00:15 +00:00
Alexander.Likhachev a8269ff8e2 [Gradle] Opt in for the experimental build tools API module-wide
#KT-61449 In Progress
2023-08-29 13:00:14 +00:00
Alexander.Likhachev e68661fc0d [Build, Gradle] Remove totally unused KGP dependencies
#KT-61449 In Progress
2023-08-29 13:00:14 +00:00
Sebastian Sellmair 3c4163187d [Gradle] K2/KMP: Implement expect/actual discrimination by topologically ordering dependsOn klibs
^KT-61540 Verification Pending
2023-08-29 12:56:02 +00:00
Alexey Merkulov 10c6e2da87 [LL API] Fix code generation to access private property from evaluator
Lowering asks whether to generate getter/setter call only when it should
be present. It means the code define explicit getter or setter.
And it seems correct to use it instead of trying direct field access.
2023-08-29 12:34:58 +00:00
mvicsokolova 8f4136f145 [atomicfu] Added a check that atomic properties are declared as final values.
Fixes: https://github.com/Kotlin/kotlinx-atomicfu/issues/237

YT: KT-61550


Merge-request: KT-MR-11886
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com>
2023-08-29 12:15:56 +00:00
Ilmir Usmanov e333716fbe JVM: Optimize isPrimitiveBoxing and isPrimitiveUnboxing
Precompute internal names and method descriptors instead of computing
on every access.
2023-08-29 12:15:31 +00:00
Alexander Udalov 3246b0a6bd JVM IR: inherit some lowerings from ClassLoweringPass
This slightly simplifies code, but has no other immediate benefits. In
the future though, we may end up optimizing all ClassLoweringPass
JVM IR phases by making them traverse only one list of all classes in
the module, instead of traversing the whole IR tree each time.
2023-08-29 11:32:41 +00:00
Aleksei.Cherepanov 073df585c4 Fix testdata after #5162
After changes in `kotlin-maven-plugin: Don't print warning on no resources to compile` and `Update KotlinCompileMojoBase.java` commits test data was updated

#KT-26156 Fixed
2023-08-29 11:11:04 +00:00