Commit Graph

1961 Commits

Author SHA1 Message Date
Alexander.Likhachev 67c4dc3cce [Gradle, K/N] Stop using enableEndorsedLibs Gradle flag, make it Error
#KT-54098 Fixed
2023-02-06 19:24:05 +00:00
Sebastian Sellmair 300995209f [Gradle] MppIdeDependencyResolutionIT: Use correct encoder for assertion
^KT-56429 Verification Pending
2023-02-06 09:54:58 +00:00
Artem Daugel-Dauge 143a233a9e [Gradle] Use unique artifact name for podspec task + avoid redundant task registration
^KT-51518 Verification Pending
2023-02-03 19:41:59 +00:00
Alexander.Likhachev 0da23d4b9c [Gradle, JS] Remove Gradle version requirements for testJsBothModeWithTests 2023-02-03 11:53:03 +00:00
Alexander Korepanov 3a42b9846e [JS IR] Test the incremental rebuild after an error from JS IR BE
Move JS IR BE IC integration tests in a separate file

 Test case for KT-56282
2023-02-03 10:04:43 +00:00
nataliya.valtman 8cfe234140 KT-56352 Add metric filter for build scan
#KT-56352 Fixed
2023-02-03 09:56:27 +00:00
Alexander.Likhachev 3cc69f691e [Gradle] Add test for KT-56047 2023-02-02 22:27:38 +00:00
Svyatoslav Kuzmich 81072ac9b4 [Wasm] Fix parsing D8 CLI arguments in kotlin.test
`@JsFun("code")` is now executed inside a JS function which brings its
`arguments` into the scope shadowing D8's CLI `arguments`.
 Accessing arguments through `globalThis` fixes the problem.

Merge-request: KT-MR-8630
Merged-by: Svyatoslav Kuzmich <svyatoslav.kuzmich@jetbrains.com>
2023-02-02 16:37:32 +00:00
Sebastian Sellmair 5a14c11ae7 [Gradle] Implement MppCompositeBuildIT for KT-37051 (with cinterop)
^KT-37051 Verification Pending
2023-02-02 13:14:14 +00:00
Sebastian Sellmair 8a62523ffc [Gradle] Streamline how cinterop artifacts are exposed within a Gradle project
Before:
- The cinterop task's output files were added as file dependency
to the declaring target's apiElementsConfiguration
- A 'copy' task was created for the cinterop artifact that was added
to the apiElements configuration as artifact (and therefore also
to the apiElements-published). This copy task placed the
same klib into the 'libs' folder
- Before passing libraries to the compiler the, all files
that are likely to be the result of the 'copy' task (in any libs dir) were
filtered

After:
- The cinterop task's output files are *not* added as file dependency
- The cinterop task's output is added as artifact directly to
the 'apiElements' configuration
- There is no more need for a copy task
- There is no more need for manually filtering the 'libs' artifacts

Tested:
project to project dependencies,
project to project dependencies (with KGP based dependency resolution)
project to repository
project to repository (with KGP based dependency resolution)

^KT-37051 Verification Pending
2023-02-02 13:14:14 +00:00
Artem Daugel-Dauge 70ace38788 [Gradle] Fix library artifacts naming in generated podspec
^KT-56304 Verification Pending
2023-02-01 16:51:49 +00:00
Sebastian Sellmair 1c1b6ff92a [Gradle] Implement MppIdeDependencyResolutionIT for platform cinterops and failing cinterops
^KT-56337 Verification Pending
2023-02-01 15:53:06 +00: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 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 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 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
Ilya Goncharov 1150ec6882 [JS] Implementation dependencies for JS klibs
^KT-56158 fixed
2023-01-27 13:31:59 +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 2bda0c0c57 [Gradle] Implement test covering KT-56198 (composite: mpp-jvm to jvm) 2023-01-26 10:25:19 +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
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 c5d929eee4 [Gradle] Update MppCInteropDependencyTransformationIT UP-TO-DATE requirements
KT-56115
2023-01-24 14:47:28 +00:00
Sebastian Sellmair d94a9411e0 [Gradle] MppCompositeBuildIT: Run also with cinterop commonization enabled
KT-56115
2023-01-24 14:47:28 +00:00
Sebastian Sellmair 24db9f3680 [Gradle] Add MppCompositeBuildIT with host specific targets
... to cover KT-56111
2023-01-23 19:25:34 +00:00
Artem Daugel-Dauge c2e092fe4a [Gradle] Fix invalidating iOS framework after import
^KT-49430 Verification Pending
2023-01-23 18:52:03 +00:00
Artem Daugel-Dauge 8a34d1f430 Separate podgen & podinstall tasks
^KT-54161 Verification Pending
2023-01-23 18:52:03 +00:00
Alexander.Likhachev f144f8b6d3 [Gradle] Fix compilation error in CocoaPodsIT
Also add a Gradle version constraint for deprecation warnings suppressing
KT-55972 Related
2023-01-23 19:02:22 +01:00
Alexander.Likhachev 2e7e1625d3 [Gradle] Remove warnings suppression from more tests
KT-55972 Related
2023-01-23 17:21:17 +00:00
Alexander.Likhachev 9bb2a2468d [Gradle] Suppress warnings only for the Gradle versions that produce them
KT-55972 Related
2023-01-23 17:21:17 +00:00
Alexander.Likhachev 3373a1dd90 [Gradle] Add a warning mode assertion for the old test DSL tests
#KT-55972 Fixed
2023-01-23 17:21:17 +00:00
Alexander.Likhachev 1e7cf5571b [Gradle] Add a warning mode assertion for the new test DSL tests
#KT-55972 In Progress
2023-01-23 17:21:16 +00:00
Alexander.Likhachev dc24582a0b [Gradle] Apply gradle-warnings-detector to test projects
#KT-55972 In Progress
2023-01-23 17:21:16 +00:00
Alexander.Likhachev 7bcfa45c49 [Build] Add gradle-warnings-detector plugin for integration tests
#KT-55972 In Progress
2023-01-23 17:21:16 +00:00
Dmitriy Dolovov b42492cd4d [Native][tests] Mute failing ktor 1_5_4 and coroutines 1_5_0-RC-native-mt (KT-46697) Gradle IT 2023-01-23 16:11:06 +00:00
Artem Daugel-Dauge f6eb978671 [Gradle] More workarounds for KT-55751 after adding linkOnly mode 2023-01-23 11:48:04 +00:00
Anton Lakotka fbbd1d737a [Gradle] Transform only composite metadata artifacts
^KT-49933
2023-01-20 20:15:27 +00:00
Anton Lakotka 9ff9fa35ec [Gradle] Make CInterop[MDT]Task compatible with Configuration Cache
^KT-49933
2023-01-20 20:15:25 +00:00
Anton Lakotka 1777fc58e7 [Gradle] Use transformDependenciesMetadata task name directly
Using internal TRANSFORM_ALL_SOURCESETS_DEPENDENCIES_METADATA doesn't
work well with K2 compiler

^KT-49933
2023-01-20 20:15:23 +00:00
Anton Lakotka 32cb38e0d4 [Gradle] Disable KPM tests that is faling due to changes about GCC+HMPP
^KT-49933
2023-01-20 20:15:22 +00:00