Commit Graph

14057 Commits

Author SHA1 Message Date
Anton Lakotka ebe0a84dee [Gradle] Fix GCC support for IOS specific Kotlin Native Test Tasks
^KT-63044 Verification Pending
2023-11-06 09:37:59 +00:00
Anton Lakotka 704adc053a [Gradle] Test native tasks with Gradle 8.4 Configuration Cache
^KT-63044 In Progress
2023-11-06 09:37:59 +00:00
Anton Lakotka 096cb0abce [Gradle] Add Gradle.G_8_4 version for tests 2023-11-06 09:37:59 +00:00
Yahor Berdnikau 9c146adc3a [Gradle] Update stable Kotlin version to 1.9.20 in Duckduckgo benchmark 2023-11-05 16:40:07 +01:00
Yahor Berdnikau 8429ab0309 [Gradle] Update stable Kotlin version to 1.9.20 in Kvision benchmark
Benchmark is not working as Kvision fails to assemble with Kotlin 2.0:
- https://youtrack.jetbrains.com/issue/KT-62036
- https://youtrack.jetbrains.com/issue/KT-63094 (main issue)
2023-11-05 16:40:00 +01:00
Yahor Berdnikau 43dd155f59 [Gradle] Update stable Kotlin version to 1.9.20 Graphql-kotlin benchmark 2023-11-05 16:39:44 +01:00
Ilya Chernikov 31f9e9e7a8 K2 Scripting: implement basic metadata serialization support
#KT-62305 fixed
NB: kotlin reflection do not see script class constructor after
this change, and it's ok, since the fact that the script is compiled
into a class is an implementation detail.
If needed, java reflection could be used to access the constructor.
2023-11-03 21:54:23 +00:00
Ilya Goncharov c2e2572680 [Gradle, JS] Use only KotlinJsCompilation
^KT-41382 fixed
2023-11-03 12:04:11 +00:00
Dmitrii Krasnov 680455b162 [FUS Tests] Changed expected hash in module changes
It changed in b9090e12 commit without updating it into the test

#KT-62987 Fixed
2023-11-02 15:25:19 +01:00
Sebastian Sellmair 3fb415d966 [Gradle] Replace KotlinTargetWithTestsConfigurator with KotlinTestRunFactory
KT-61634
2023-11-02 13:20:38 +00:00
Sebastian Sellmair 40820e42a6 [Gradle] Implement ConfigureBuildSideEffect (replacing 'configureBuild')
KT-61634
2023-11-02 13:20:38 +00:00
Dmitrii Krasnov 0882d5201b [FUS] Fixed ModuleChangesCatchingTest failures
#KT-62987 Fixed
2023-11-02 10:07:34 +00:00
Ilya Gorbunov e18a124cbb [stdlib] Import kotlin-test-common sources as a part of native stdlib 2023-11-02 03:12:56 +00:00
Ilya Gorbunov 1ea0c2aa44 [stdlib] Import native sources in IDE 2023-11-02 03:12:56 +00:00
Yahor Berdnikau 094490acbd [Gradle] Compile against Gradle 8.4 api
^KT-62964 Fixed
2023-11-01 19:26:36 +00:00
Dmitrii Krasnov 0c46cfd761 [Gradle MPP] Added duplicate source set name diagnostic
#KT-62601 Fixed
2023-10-31 12:34:14 +00:00
Anton Lakotka b154283149 [Gradle] Make sure that rootSoftwareComponent is always added
Even when createDefaultMultiplatformPublications=false and maven-publish
is applied it is required to create all publication-specific entities
such as tasks, configurations, components etc. In order to let users
to compose publications on their own.

^KT-62877 Verification Pending
2023-10-30 16:11:38 +00:00
Anton Lakotka d3f25d81de [Gradle] Change withPluginId to isPluginApplied
It is more convenient to use.
Also added test coverage for cases when plugin is applied too late.

^KT-62877 Verification Pending
2023-10-30 16:11:38 +00:00
Anton Lakotka 5607ae1bc3 [Gradle] Extract publicationDelegate as Project Stored Property
Previously it was attached to RootSoftwareComponent which has
heavy initialization work, for instance it creates new configurations
upon creation. The `publicationDelegate` is used in
`idOfRootModule` and should not trigger RootSoftwareComponent
initialization. After the change `idOfRootModule` became cross-project
safe. I.e. Project `foo` can call `idOfRootModule` on project `bar`.

^KT-62877 Verification Pending
^KTIJ-27374 Verification Pending
2023-10-30 16:11:38 +00:00
Anton Lakotka 6bb33cc8bc [Gradle] Test for Project's collection mutation after evaluation
Mutating projects data, particularly, adding new items to its
collections such as tasks, configurations and components is a potential
risk to lose these data during the import to IDE.

^KT-62877 In Progress
2023-10-30 16:11:38 +00:00
Sebastian Sellmair 36d1622276 [Gradle] Mute IdeNativeStdlibDependencyResolver in case of missing stdlib 2023-10-30 10:40:34 +00:00
Dmitrii Krasnov 45a1cc1a4a [Gradle IT] Fixed prepareNativeBundleForGradleIT with k/n disabled
#KT-45978
2023-10-27 10:29:15 +00:00
Dmitrii Krasnov 1a9cd81a85 [KGP] Changed type of determining maturity version for k/n
#KT-62927 Fixed

Merge-request: KT-MR-12742
Merged-by: Dmitrii Krasnov <Dmitrii.Krasnov@jetbrains.com>
2023-10-27 08:20:44 +00:00
Artem Kobzar 847178d382 [K/JS, K/Wasm] Use Unix-style separator inside the "main" field of a package.json file 2023-10-26 11:41:56 +00:00
Ilya Goncharov 2bb3b84e7e [Gradle,JS] Make customFields nullable in type adapter 2023-10-26 09:43:59 +00:00
Nataliya.Valtman b9090e12b8 Remove all project iteration for projectIsolation support
KT-62131 Fixed
2023-10-26 07:30:17 +00:00
Mikhail Glukhikh f90831398c K2: temporarily comment unstable part of FlagDelegatesTest.testDelegation
Related to KT-62581
2023-10-25 20:19:39 +00:00
Mikhail Glukhikh d42ae35624 K2: support DELEGATION member kind for properties #KT-62581 Fixed 2023-10-25 20:19:39 +00:00
Mikhail Glukhikh 19bf11f041 FlagDelegatesTest: accept K2 behavior for KT-62582 2023-10-25 20:19:39 +00:00
Christoph Loy cf8b41970e [Gradle, Kapt] Run kapt even when all dependencies are indirect
Previously, kapt skipped the execution, if the "kapt" configuration had
no direct dependencies (via `kapt.dependencies.isEmpty()`).
This lead to kapt not working, if all
annotation processors are declared in a super-configuration of kapt.

With this change, we also consider super-configurations
(via `kapt.allDependencies.isEmpty`) and fix the described bug.

^KT-62518 Fixed
2023-10-25 12:25:41 +00:00
Hung Nguyen 19104f73bf Fix casting of extraProperties in PropertiesBuildService
`project.extraProperties` may contain values that are not `String`s. To
avoid failing on those values, we should cast the value with
`as? String` instead of `as String?`.

Test: New PropertiesBuildServiceTest
^KT-62496 Fixed
2023-10-25 09:17:34 +00:00
Ilya Kirillov a65c735feb [build] add checks to ensure that no modules which are part of the IDE plugin do not use experimental stdlib API
to ensure binary compatibility with stdlib inside IntelliJ.

This includes using the latest stable kotlin API version and
forbidding using experimental declarations from stdlib.

^KT-62510
2023-10-25 08:38:07 +00:00
Sebastian Sellmair ded5cf2caa [Gradle] Replace 'configureArchivesAndComponent' with KotlinTargetArtifact
KT-61634
2023-10-25 08:34:48 +00:00
Sebastian Sellmair eb4daa4482 [Gradle] Implement CreateTargetConfigurationsSideEffect and NativeForwardImplementationToApiElementsSideEffect
KT-61634
2023-10-25 08:34:48 +00:00
Sebastian Sellmair 787420cc21 [Gradle] Introduce KotlinTargetSideEffect and KotlinCompilationSideEffect
KT-61634
2023-10-25 08:34:48 +00:00
Sebastian Sellmair f89a46710a [Gradle] Implement KotlinTargetSideEffect.extensionPoint
KT-61634
2023-10-25 08:34:47 +00:00
Ilya Goncharov c9e328528e [Gradle,JS]make downloadBaseUrl nullable to work with FAIL_ON_PROJECT_REPOS
^KT-56300 fixed
^KT-55620 fixed
2023-10-24 13:10:12 +00:00
Dmitrii Krasnov 10a6d8fd2c [Gradle IT] Added configuration for running IT with k/n from master
[Gradle] Updated kotlin-build-gradle-plugin to 0.0.40

#KT-45978 Ready for Review


Merge-request: KT-MR-12509
Merged-by: Dmitrii Krasnov <Dmitrii.Krasnov@jetbrains.com>
2023-10-24 08:38:51 +00:00
Nataliya.Valtman 80485809d9 Add runtimeOnly and compileOnly dependencies to FUS
#KT-62617 Fixed
2023-10-24 08:22:28 +00:00
Nataliya.Valtman e66f41da95 Add build report usage to FUS
#KT-62264 Fixed
2023-10-24 08:20:22 +00:00
Igor Chevdar 141dc96067 [gradle][tests] Disabled K/N incremental compilation tests on Windows 2023-10-24 06:02:21 +00:00
Evgenii Mazhukin 6ed7e83378 [IC][MPP] Upgrade tests for incremental scenarios with expect-actual
Existing tests were k1-only in CI. Simplified test project, added
assertions for native. Switched to the new test Dsl.

^KT-61845 duplicates KT-61590
^KT-56963 in progress

Merge-request: KT-MR-12651
Merged-by: Evgenii Mazhukin <evgenii.mazhukin@jetbrains.com>
2023-10-23 13:24:08 +00:00
Alexander.Likhachev 1556925358 [Gradle] Unify a bit logic of retrieving task loggers 2023-10-23 13:04:17 +00:00
Alexander.Likhachev b1ec2eb18a [Gradle] Unify a bit logic of compiler execution exceptions wrapping 2023-10-23 13:04:17 +00:00
Alexander.Likhachev 65f6f6a07f [Gradle] Extract task outputs backup restore conditions 2023-10-23 13:04:17 +00:00
Alexander.Likhachev 664b54de5f [Gradle, BT] Add IC integration tests for the build tools API mode
#KT-61865 Fixed
2023-10-23 13:04:17 +00:00
Alexander.Likhachev 3eaaed8e7f [BT] Add debug logging for compilation iterations 2023-10-23 13:04:17 +00:00
Alexander.Likhachev 3adb202eb6 [Gradle, BT] Add support for outputs backup within build tools API compilation
#KT-61896 Fixed
2023-10-23 13:04:17 +00:00
Alexander.Likhachev b460c06907 [BT] Add support for in-process incremental compilation
#KT-61865 Fixed
2023-10-23 13:04:17 +00:00
Artem Kobzar 73b1272211 [K/JS] Add .mjs extension to main file in package.json for ES modules compilation 2023-10-23 08:04:45 +00:00