Anton Lakotka
fe87f41c39
[Gradle] Correct valueSourceProviderCompat
...
* rename it to valueSourceWithExecProviderCompat
* After Gradle 7.5 use provider.of
^KT-63044
2023-11-09 08:09:56 +00:00
Igor Yakovlev
38695ff14c
Fix Wasm gradle plugin DSL invalid behaviour
...
Fixed #KT-63315
2023-11-08 18:48:33 +01:00
Yahor Berdnikau
224a46e438
[Gradle] Decrease in tests Gradle daemons idle timeout
...
Our Gradle integration tests could launch multiple Gradle daemons
with different versions and using different JDK versions. They are
stick around until the whole test finishes using necessary memory.
Especially this is a problem on our CI where OOM killer often tries
to kill actually needed daemon.
This commit decreases spawned Gradle Daemon idle timeout, so they
shut down itself much earlier than default timeout of 3 hours.
2023-11-08 17:10:26 +00:00
Anton Lakotka
5161b3b7d8
[Gradle] Replace TaskProvider.flatMap with map { it.get() }
...
flatMap doesn't support implicit task dependencies due to bug:
https://github.com/gradle/gradle/issues/25645
However `map { it.get() }` works.
^KT-63011 Verification Pending
2023-11-08 11:50:23 +00:00
Anton Lakotka
5aa8ecca9b
[Gradle] Test that framework configurations task dependencies
...
^KT-63011
2023-11-08 11:50:23 +00:00
Abduqodiri Qurbonzoda
999b0f7099
Avoid allocating large buffers in File.writeText #KT-51058
...
Also fixes File.appendText and Path.write/appendText.
Merge-request: KT-MR-12804
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-11-08 11:18:56 +00:00
Ilya Gorbunov
48ce45e22f
[stdlib] Fix outdated documentation in Kotlin-Java Duration conversions
...
Add tests for documentation statements
2023-11-07 16:25:06 +00:00
Sebastian Sellmair
5506384cc9
[Gradle] Remove unused KotlinTargetConfigurator.configurePlatformSpecificModel
...
KT-61634
2023-11-07 12:29:31 +00:00
Sebastian Sellmair
b347ff2c53
[Gradle] Migrate KotlinNativeTargetConfigurator.warnAboutIncorrectDependencies to KotlinGradleProjectChecker
...
KT-61634
2023-11-07 12:29:31 +00:00
Sebastian Sellmair
faecd7f772
[Gradle] Implement KotlinNativeTargetConfigurator.registerEmbedAndSignAppleFrameworkTasks as EP as side effects
...
KT-61634
2023-11-07 12:29:31 +00:00
Sebastian Sellmair
9b47c98ce9
[Gradle] Implement KotlinNativeTargetConfigurator.createCInteropTasks as EP based side effects
...
KT-61634
2023-11-07 12:29:31 +00:00
Sebastian Sellmair
8651d67aeb
[Gradle] Implement ConfigureFrameworkExportSideEffect
...
KT-61634
2023-11-07 12:29:31 +00:00
Ilya Goncharov
3a6cdc83cf
[Gradle, JS] Use KotlinJsIrCompilation with deprecated KotlinJsCompilation
...
^KT-41382 fixed
2023-11-07 08:48:50 +00:00
Nikita Bobko
4050285fef
Drop unnecessary suppress from stdlib
...
^KT-62785 Fixed
Review: https://jetbrains.team/p/kt/reviews/12858/files
2023-11-06 19:00:35 +00:00
Dmitrii Krasnov
f8507d5220
[Gradle, Native] Switched downloading k/n to from Maven Central in KGP
...
#KT-62907 Fixed
2023-11-06 16:50:43 +00:00
Yahor Berdnikau
570d9dbb19
[Gradle] Fix early buildDir capturing in kotlinTestRegistry
...
User may change build directory location in the script, and our
plugin should handle such situations correctly.
^KT-61295 Fixed
2023-11-06 14:42:52 +00:00
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