Commit Graph

14265 Commits

Author SHA1 Message Date
Ilya Gorbunov d2aae67e03 Replace kotlin-test project dependencies in the project
Use dependency helper function that chooses whether to take them
from the bootstrap repository or from a configuration of kotlin-test

KT-61969
2023-12-13 15:40:25 +00:00
Ilya Gorbunov f07bf70aa7 Switch stdlib tests to KMP kotlin-test KT-61969 2023-12-13 15:40:25 +00:00
Ilya Gorbunov 7a4335b087 [kotlin-test] Enable explicit API mode KT-61969 2023-12-13 15:40:25 +00:00
Ilya Gorbunov 6c46d11d0a [kotlin-test] Post-process capabilities in leaf framework artifacts' .module files KT-61969
Gradle copies capabilities from the variants of the root artifacts
to the variants of leaf artifacts which leads to capability conflict
when both root and leaf artifacts are present in a configuration during
variant-based dependency resolution
2023-12-13 15:40:25 +00:00
Ilya Gorbunov b91e4e24c4 [kotlin-test] Custom publishing layout KT-61969 2023-12-13 15:40:25 +00:00
Ilya Gorbunov ffe54d3fc4 [kotlin-test] Alignment constraints for legacy artifacts KT-61969 2023-12-13 15:40:25 +00:00
Ilya Gorbunov 446cd1eec9 [kotlin-test] kpsm.json patching KT-61969
Adds source set relationships for additional variants
and also slightly stretches common source sets included into jvm variant
2023-12-13 15:40:25 +00:00
Ilya Gorbunov 5c4f0a70e0 [kotlin-test] Unit tests for additional compilations KT-61969 2023-12-13 15:40:25 +00:00
Ilya Gorbunov 2db2b18910 [kotlin-test] Additional framework jars and outgoing configurations KT-61969 2023-12-13 15:40:25 +00:00
Ilya Gorbunov 008a961913 [kotlin-test] Add module-info compilations KT-61969 2023-12-13 15:40:25 +00:00
Ilya Gorbunov 1d1645fd2d [kotlin-test] Setup KMP project for kotlin-test, targets and source sets KT-61969 2023-12-13 15:40:25 +00:00
Ilya Gorbunov f3240757ed Extract custom publishing dsl to buildsrc-compat
It will be used also in kotlin-test KT-61969
2023-12-13 15:40:25 +00:00
Ilya Gorbunov 6d62119659 Introduce expects in common wasm sources actualized in wasmJs and wasmWasi 2023-12-13 15:40:25 +00:00
Ilya Gorbunov 943c11d239 [Gradle] Support multiple variants of a module resolved when determining visible common source sets
With capabilities in variants it is possible to depend on multiple variants of
an artifact in the same target compilation. These variants can implement
different common source sets which all should be visible from that target.

Instead of intersecting single variant source sets visible from different
targets, first union source sets from all target variant dependencies
and only then intersect these union results from different targets.
2023-12-13 15:40:25 +00:00
Yahor Berdnikau 63e7749cfe [Gradle] Update AGP versions 2023-12-13 09:08:05 +00:00
Yahor Berdnikau da7ceb162b [Gradle] Cleanup max Gradle versions in the tests
As we are running now by default with Gradle 8.2 release our IT tests -
specifying this version explicitly does not make sense.
2023-12-13 09:08:05 +00:00
Ilya Goncharov 1d692ce6d1 [Gradle, JS] Fix devServer usage in KotlinWebpackConfig
^KT-64260 fixed
2023-12-12 19:24:13 +00:00
Leonid Startsev af23706a9a Do not allow writing metadata versions that are too high
because a format may be incorrect for future compilers

#KT-64230 Fixed
2023-12-12 18:16:56 +00:00
Yahor Berdnikau 4a7f12a8eb [Gradle] Fix deprecation warnings in AndroidBaseSourceSetName
^KT-56904 In Progress
2023-12-12 16:58:58 +00:00
Artem Kobzar 0b1c4b836a [K/JS] Fix file extension inside the JS KGP to run tests with ES modules ^KT-63719 Fixed 2023-12-12 14:52:26 +00:00
Sebastian Sellmair 4c7ad7eeb5 [Gradle] Add IdeMultiplatformImportAction API
This API can be used to schedule actions/setup code that is only
relevant for IDE sync.

^KT-56440 Verification Pending
2023-12-12 14:52:04 +00:00
Ilya Goncharov 2932f49f65 [JS] Use npx instead of yarn in kotlin-test-js-runner 2023-12-12 12:01:04 +00:00
Bogdan Mukvich b7d56dea44 Point ArtifactsTests to custom maven repo dir to avoid stale artifacts
^KTI-1345
2023-12-12 10:28:48 +00:00
Leonid Startsev 9933423a0b Add KmVersionRequirementKind.UNKNOWN
for cases when the version requirement cannot be read correctly (missing from the table).

It usually happens when we read the inner class' old metadata, which stored everything
in the outer class' table.

Fixes #KT-60870


Merge-request: KT-MR-13337
Merged-by: Leonid Startsev <leonid.startsev@jetbrains.com>
2023-12-12 08:47:41 +00:00
Dmitrii Krasnov 0b31d70ce9 [Gradle IT] Added Integration Test for checking native ic args
#KT-63742
2023-12-11 18:09:29 +00:00
Yahor Berdnikau 400137e80d [Gradle] Fix usaged of deprecated buildDir in Kapt3KotlinGradleSubplugin.kt
^KT-62527 In Progress
2023-12-11 11:32:02 +00:00
Yahor Berdnikau 366d097c92 [Gradle] Suppress internal deprecation in Kapt3KotlinGradleSubplugin.kt
^KT-56904 In Progress
2023-12-11 11:32:02 +00:00
Yahor Berdnikau 78edc45ded [Gradle] Remove unused method in Kapt3KotlinGradleSubplugin.kt
^KT-56904 In Progress
2023-12-11 11:32:01 +00:00
Yahor Berdnikau 8028e2a42d [Gradle] Suppress package directory mismatch in Kapt3KotlinGradleSubplugin.kt
^KT-56904 In Progress
2023-12-11 11:32:01 +00:00
Yahor Berdnikau 56c7309fad [Gradle] Suppress Android deprecations in Kapt3KotlinGradleSubplugin.kt
^KT-56904 In Progress
2023-12-11 11:32:01 +00:00
Ilya Goncharov 7b409d0505 [Gradle, JS] Migrate onto usage of layout.buildDir provider in NPM infrastructure.
Api which previously used buildDirectory now migrated to Provider as well, previous properties are deprecated.

^KT-61294 fixed


Co-authored-by: Alexander Likhachev <Alexander.Likhachev@jetbrains.com>
2023-12-11 10:56:28 +00:00
Yahor Berdnikau f016e8efda [Gradle] Fix deprecations in configureReporing.kt
^KT-62527 In Progress
2023-12-09 16:00:28 +00:00
Ivan Kochurkin 145958e284 [K2] Disable constants evaluation with native metadata compilation
^KT-63835 Fixed
2023-12-08 16:38:04 +00:00
Ivan Kochurkin ec4edbfcf2 [K2] Enable copyEnsuringK2 for all K2Tests by default 2023-12-08 16:38:04 +00:00
Brian Norman dc198be0ad Merge branch 'bnorm/kotlin-power-assert' 2023-12-08 08:46:35 -06:00
Leonid Startsev aff5b91da3 Provide changelog and migration guide for kotlinx-metadata-jvm 0.8.0 2023-12-08 13:12:50 +00:00
Dmitrii Krasnov 331ec5318d [Gradle] Added definitionFile RegularFileProperty in cinterop task
^KT-62795 Fixed

Merge-request: KT-MR-13307
Merged-by: Dmitrii Krasnov <Dmitrii.Krasnov@jetbrains.com>
2023-12-08 12:56:52 +00:00
Artem Kobzar 2eb1e65bbf [K/Wasm] Allow to export unsigned numbers 2023-12-08 09:06:19 +00:00
Alexander.Likhachev f5bcdb85a5 [Build] Migrate kotlin-stdlib-gen to Gradle Kotlin DSL 2023-12-07 18:31:07 +00:00
Alexander.Likhachev 9a0cf9c9f9 [Build] Rename kotlin-stdlib-gen/build.gradle -> build.gradle.kts 2023-12-07 18:31:06 +00:00
Alexander.Likhachev 0926ebac23 [Build] Remove BasePluginConvention usages
The entire concept of conventions is deprecated in Gradle. The proposed alternative for `BasePluginConvention` is `BasePluginExtension`
^KTI-1473 In Progress
2023-12-07 18:31:06 +00:00
Alexander.Likhachev eab2c6b9b9 [Build] Bump gradle-node-plugin version to 7.0.1
This change is required to fix a configuration cache problem revealed after migration to Gradle 8.4
^KTI-1473 In Progress
2023-12-07 18:31:06 +00:00
Alexander.Likhachev a19bd2ed2e [Build] Migrate most of the build logic from Project.buildDir usage
It's going to be deprecated in Gradle 8.3

There's currently no way to pass a `org.gradle.api.provider.Provider` to the JavaExec.systemProperty or Test.systemProperty. There's a workaround using `org.gradle.process.CommandLineArgumentProvider`, but I intentionally don't rework these calls as Gradle is going to allow passing providers to configure system properties: https://github.com/gradle/gradle/issues/12247#issuecomment-1568427242
^KTI-1473 In Progress
2023-12-07 18:31:06 +00:00
Alexander.Likhachev b784544f8d [Gradle] Migrate functional tests from Project.buildDir usage
It's going to be deprecated in Gradle 8.3
^KTI-1473 In Progress
2023-12-07 18:31:06 +00:00
Dmitrii Krasnov fc1ada4896 [Gradle] Changed compileKotlinTask to compileTaskProvider 2023-12-07 18:14:13 +00:00
Dmitrii Krasnov eb69229b8f [Gradle] Removed using deprecated buildDir in GradleKotlinCompilerRunner
^KT-62527
2023-12-07 17:33:44 +00:00
Yahor Berdnikau c26b5ca365 [Gradle] Slight improvement for generated compiler options KDoc
Separated possible and default value from the description.

^KT-58858 In Progress
2023-12-07 16:19:24 +00:00
Yahor Berdnikau aeaaf6dd8e [Gradle] Add a check that KGP API has consistent KDoc
^KT-58858 In Progress
2023-12-07 16:19:24 +00:00
Yahor Berdnikau 01e9ad1680 [Gradle] Update KDoc for KotlinTopLevelExtensionConfig
^KT-58858 In Progress
2023-12-07 16:19:24 +00:00
Yahor Berdnikau e7bd4e6dbd [Gradle] Update KDoc for KotlinHierarchyDsl
^KT-58858 In Progress
2023-12-07 16:19:24 +00:00