Commit Graph

12210 Commits

Author SHA1 Message Date
Zalim Bashorov 58e523b890 [Wasm] Change target directory for wasm intrinsics for finer tuning code owners
Also, minor cleanup in the generator.
2023-02-01 00:35:49 +01:00
Sebastian Sellmair b6ea04d789 [K/N] Don't add linkDependencies when serializing a metadata klib
^KT-56205 Verification Pending
2023-01-31 16:15:19 +00:00
Yahor Berdnikau 752de6c622 Don't override compilation freeCompilerArgs in link task
Calling '.addAll()' was replacing convention value leading for inability
to add/modify Kotlin/Native link task freeCompilerArgs via
KotlinCompilation.options.freeCompilerArgs. For now convention
was replaced by normal value.

^KT-56280 Fixed
2023-01-31 15:01:10 +00:00
Anton Lakotka 37007a28ac [Gradle] Report deprecated source set layouts outside after evaluate
^KT-55730 Verification Pending
2023-01-31 07:43:15 +00:00
Anton Lakotka 3c343543e9 [Gradle] Legacy metadata compilation should contain all source sets from
depends on closure of its default source set.

With HMPP it is no longer needed, since each source compiles
independently and sees its parent declarations via klib dependencies

^KT-55730 Verification Pending
2023-01-31 07:43:15 +00:00
Anton Lakotka 23f10a1d38 [Gradle] Deprecate case when commonMain depends on another source set
^KT-55824 Verification Pending
2023-01-31 07:43:14 +00:00
Sebastian Sellmair 35c0a3d391 [Gradle] Keep stdlib-common for shared native source sets
^KT-56278 Verification Pending
2023-01-30 14:50:50 +00:00
Pavel Kirpichenkov 25668ddd01 [MPP] Do not postpone warning reporting for HMPP props to afterEvaluate
The check itself happens during application time, remove the health
check wrapper for reporting to make the code more clear. One downside is
that the warning could be reported on misconfigured projects, but it's
a minor inconvenience.

KT-55891
2023-01-30 13:21:00 +00:00
Pavel Kirpichenkov a03db78ed2 [MPP] Fix warning reports for subprojects
Properly report warnings for projects that don't apply multiplatform
plugin in the root project, but declare the obsolete properties

KT-55891
2023-01-30 13:21:00 +00:00
Pavel Kirpichenkov b0c360b1b6 [MPP] Change the deprecation message for HMPP properties
KT-55891
2023-01-30 13:21:00 +00:00
Pavel Kirpichenkov 37c87b0a84 [MPP] Don't report HMPP deprecation warnings on subprojects
MPP plugin applied to a root project leads to false positive reports
in its subprojects. Also, granular metadata flag is not supposed to be
set in subprojects. Reporting only for the root project should cover
most of the cases.

KT-55891
2023-01-30 13:20:59 +00:00
Pavel Punegov c9aeadd31f [K/N] Remove old Compiler and Meta Version ^KT-55677 Fixed
* Replace it with KotlinCompilerVersion
* K/N version should be set now with `deployVersion`.
* Cleanup deprecated functions in older versions
 of the Gradle plugin
* Cleanup tests for older versions of compiler downloader

Merge-request: KT-MR-8436
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com>
2023-01-30 13:10:08 +00:00
Yahor Berdnikau 137e4b0422 Update duckduckgo benchmark
It is still not working due to koltin-androidx-extensions plugin usage.
2023-01-30 12:43:13 +00:00
Yahor Berdnikau 09ab70473d Update kvision benchmark 2023-01-30 12:43:13 +00:00
Yahor Berdnikau ff2de0e2b9 Also clean newly added files.
Some patches could add new file and after hard reset they are not
deleted. This leads to patch apply failure.

Updated JGit otherwise clean command was not working properly.
2023-01-30 12:43:12 +00:00
Yahor Berdnikau 5541d1d8a2 Update graphql-kotlin benchmark. 2023-01-30 12:43:12 +00:00
Yahor Berdnikau 3f4c824a23 Run benchmarks in the same suite
This should reduce variation in results, especially when overall time is
 quite low.
2023-01-30 12:43:12 +00:00
Sebastian Sellmair ace1bc76a1 [Gradle] IdeProjectToProjectCInteropDependencyResolver: Ensure lenient resolution
^KT-56285 Verification Pending
2023-01-30 12:42:05 +00:00
Dmitriy Novozhilov 71f8cfa193 [Maven] Fix running scripts from maven 2023-01-30 09:29:59 +00:00
Artem Kobzar d58d9a5c77 fix runing legacy js maven tests in integration tests. 2023-01-30 09:29:59 +00:00
Yahor Berdnikau 861563fdb0 [KGP] Fix test fails with LV 1.3
Kotlin compiler now throws error with LV 1.3 meaning KGP could not be
used with Gradle 6.x.
2023-01-30 09:29:59 +00:00
Dmitriy Novozhilov 88efa6bfb6 Update tests after switching to LV 1.9 2023-01-30 09:29:57 +00:00
Dmitriy Novozhilov 66544a4e00 Switch kotlin version to 1.9
with appropriate fixes in testdata, tests and other
places.
2023-01-30 09:29:55 +00:00
Zalim Bashorov 885381dd63 [Wasm] Change externRefToAny to make it compatible with SpiderMonkey and V8
It's hard to achieve that without implementing part of `externRefToAny` using an intrinsic. It should be rewritten when all VMs and tools update to the latest spec.

Also, stop using (deprecated) instructions unsupported by SpiderMonkey.

#KT-56166 In-Progress
2023-01-27 17:57:50 +01:00
Ilya Goncharov 1150ec6882 [JS] Implementation dependencies for JS klibs
^KT-56158 fixed
2023-01-27 13:31:59 +00:00
Stanislav Ruban 4523535545 Deprecate -Xuse-k2 compiler flag in Gradle DSL
^KT-56239 Fixed
2023-01-27 12:42:50 +00:00
Yahor Berdnikau 8fcea399f9 Fix double call to get files from FileCollection
^KT-54588 Fixed
2023-01-27 09:29:16 +00:00
Yahor Berdnikau fda4ff177d Add missing javadoc and sources jar publication
That was missed during 92509ad400 on
adding commit.
2023-01-27 09:22:03 +00:00
Aleksei.Cherepanov 07d369998c [Maven] Add test for the fix of illegal reflective access while using jdk17
IJ-203 dependency has illegal reflective access usage, which is prohibited without a special flag since JDK17. Specific reflect usage was fixed on the IntelliJ side (IDEA-31024). After the new IC was present in 1.8.0, this problem shows up on modules with a large number of source files in Maven projects. During the incremental compilation, FileSnapshotMap is filled up with paths to files as keys, so in the test, we generate a lot of source files with long names. If there are a lot of files to compile, a key chunk with paths overflowed and drops the current chunk to the disk, after that PersistentHashMap caches FilterOutputStream and uses illegal reflective access.
Closing caches after the first IC attempt fix this problem:
`63a0660c` IC: Close caches before falling back to non-incremental compile
`908dbf32` IC: Clean up closing caches logic in IncrementalCompilerRunner.kt
authored by Hung Nguyen
This commit should be reverted after the update of IJ dependency (KT-47765)

#KT-55709 Fixed

Merge-request: KT-MR-8359
Merged-by: Aleksei Cherepanov <aleksei.cherepanov@jetbrains.com>
2023-01-27 07:26:17 +00:00
Ilya Gorbunov b558382f17 Cleanup unneeded options in kotlin-stdlib-jdk7/8 compilations 2023-01-26 20:57:00 +00:00
Ilya Gorbunov 5a4eb22961 Move isolated addSuppressed extension test to jvm tests
Conditions for being isolated do not hold anymore:
it tested that addSuppressed extension could work without kotlin-stdlib-jdk7,
but now the latter is merged to kotlin-stdlib and thus always present

#KT-51907
2023-01-26 20:57:00 +00:00
Ilya Gorbunov 8b68234528 Include all jvm stdlib tests into kotlin-stdlib project test
JVM stdlib tests are compiled against JDK 8 so there's no need to divide them by modules anymore

#KT-51907
2023-01-26 20:57:00 +00:00
Ilya Gorbunov 72ced53833 Fix dependencies between stdlib main source sets KT-51907
Otherwise mainJdk7/8 source sets don't see symbols from main when imported to IDEA
2023-01-26 20:56:59 +00:00
Anton Lakotka ba20972449 [Gradle] Clone Properties before iterating over them as it can cause...
...ConcurrentModificationException if someone will concurrently
 modify them
2023-01-26 16:01:37 +00:00
Sebastian Sellmair 294014a85d [Gradle][Minor] KotlinTargetHierarchyDsl: Fix doc pointing to old function
KT-56204
2023-01-26 15:37:23 +00:00
Sebastian Sellmair ca859c0132 [Gradle] KotlinTargetHierarchy: Change naming from 'any' to 'with' prefix
^KT-56204 Verification Pending
2023-01-26 15:37:23 +00:00
Pavel Punegov 156c2db855 [K/N][test] Fine tune the Maven downloading test
Only final builds (without build number) should be placed to Central.
Don't run the test for these builds while they are not published there.

Merge-request: KT-MR-8491
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com>
2023-01-26 14:04:46 +00:00
Alexander Udalov 574b9b76cd Add test checking that JVM_IR is enabled/disabled in kapt
#KT-53135
2023-01-26 12:07:19 +00:00
Sebastian Sellmair d9957335d3 [Gradle] Don't fail when psm is missing from a given included build
This basically restores behaviour as before changes related to
the configuration cache support

See:
https://github.com/JetBrains/kotlin/blob/35dacd6add18e031902765fd1386f9f8aad7e738/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/KotlinProjectStructureMetadata.kt#L427

^KT-56198 Verification Pending
2023-01-26 10:25:20 +00:00
Sebastian Sellmair 6fae581ffb [Gradle][Minor] IdeaKotlinClasspath: Improve .toString() readability
KT-56198
2023-01-26 10:25:20 +00:00
Sebastian Sellmair 2bda0c0c57 [Gradle] Implement test covering KT-56198 (composite: mpp-jvm to jvm) 2023-01-26 10:25:19 +00:00
Sebastian Sellmair 85473068c9 [Gradle][Minor] Improve readability of SourceSetVisibilityProvider 2023-01-25 20:07:52 +00:00
Artem Daugel-Dauge b1b744b863 [Gradle] Provide granular Gradle warnings suppression for CocoaPodsIT
^KT-56162 Fixed
2023-01-25 18:45:23 +00:00
Ilya Goncharov 42ded7be09 [Gradle, JS] Disable optimization in webpack for karma tests
^KT-56192 fixed
2023-01-25 16:06:29 +00:00
nataliya.valtman 3aade8ad95 Mark removed source file as deleted for compiler
#KT-55905 Fixed
2023-01-25 09:43:10 +00:00
Alexander.Likhachev 92d39f0b1d [Gradle] Inverse K/JS build services declaration
It's done by hardcoding the task classes unlike to approach with other build services (with adding interfaces like Uses<blah-blah-service>), because the J/S services are subject to rework in a short time. This way earlier task initialization shouldn't cause problems.
#KT-56131 Fixed
2023-01-24 19:15:59 +00:00
Alexander.Likhachev 7638b95a31 [Gradle] Add integration tests for KT-56131 2023-01-24 19:15:58 +00:00
Sebastian Sellmair 6d660451b5 [Gradle] LazyResolvedConfiguration: Ensure lenient resolution of artifacts
^KT-56153 Verification Pending
2023-01-24 18:52:40 +00:00
Sebastian Sellmair f15feb644b [Gradle] Ensure cinterop* configurations contain target/compilation attributes
^KT-56115 Verification Pending
2023-01-24 15:53:30 +00:00
Svyatoslav Kuzmich 983140ca04 [Wasm] stdlib NFC: suppress unchecked cast 2023-01-24 16:02:48 +01:00