Anton Lakotka
73c76c5b2d
[Gradle] Add KOTLIN_PERSISTENT_GRADLE_DATA_DIR with .kotlin/ as default
...
Don't store data in `.gradle` as it treated specially by gradle i.e.
they are exclude this dir from UP-TO-DATE checks. This can lead into
broken IDE import state which is not fixable by re-importing.
Move CInterop Commonized libraries and Metadata Transformation results
to new KOTLIN_PERSISTENT_GRADLE_DATA_DIR to avoid IDE import issues.
^KT-58223
2023-11-14 18:38:12 +00:00
Ilya Goncharov
405a502675
[Gradle, Wasm] Tests can be up-to-date, and use by default chrome headless
...
^KT-62633 fixed
2023-11-14 17:58:42 +00:00
Yahor Berdnikau
ea49a9a292
[Gradle] Limit max heap size for Kotlin daemon in integration tests
...
This change should further reduce memory pressure on running these tests
on CI agents.
Kapt4 tests require more Kotlin daemon memory than default 1g. It is
a known issue and eventually should be addressed by the compiler team.
2023-11-14 15:40:38 +00:00
Nataliya.Valtman
6210da0c98
Ignore ConcurrencyModificationExceptions at project.tasks.names
...
#KT-62131: Fixed
2023-11-14 14:39:11 +00:00
Artem Daugel-Dauge
4df73551c7
[Gradle] Don't depend on generated podspec in synthetic podInstall task
...
^KT-63331 Verification Pending
2023-11-14 14:30:43 +00:00
Ilya Gorbunov
5e61cb5098
[stdlib-docs] Fix JS stdlib source paths in API docs builds
2023-11-13 19:21:08 +00:00
Anton Lakotka
f2ddae533e
[Gradle] Create archive tasks for custom compilations
...
This change is needed for kotlin-test in order to support
correct project dependencies in kotlin.git repository.
^KT-62943 Verification Pending
2023-11-13 16:56:58 +00:00
Ilya Goncharov
87e81d8562
[Gradle, JS] Distribution is copy task, webpack targeting to separate directory
...
^KT-63040 fixed
2023-11-13 10:56:04 +00:00
Dmitriy Dolovov
d65fc00578
[KLIB] Introduce isJsStdlib() and isWasmStdlib() checks for KLIBs
2023-11-11 13:33:06 +00:00
Ilya Chernikov
932b5bf8cd
Scripting: avoid proguarding of slf4j libs in main-kts
...
slf4j libs are bundled unshadowed to main-kts jar to avoid annoying
slf4j stderr printout (slf4j is used in the maven dependencies resolver)
Exluding it from proguard processing solves problems with using it
directly from scripts.
#KT-60813 fixed
#KT-54819 fixed
2023-11-10 17:24:12 +00:00
Ilya Chernikov
a47ee44e65
Scripting: refactor test infrastructure - add missing stderr handling
2023-11-10 17:24:12 +00:00
Ilya Gorbunov
9ccce52915
Clean up WasExperimental annotation from declarations with SinceKotlin<=1.4
...
Since it is not possible to use -api-version < 1.4, this annotation has no effect
2023-11-10 12:20:52 +00:00
Alexander.Likhachev
defa0b955b
[Gradle] Use kotlin-compiler-embeddable instead of kotlin-gradle-plugin-compiler-dependencies
...
^KT-62650 In Progress
2023-11-09 12:19:23 +00:00
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
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
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
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