Alexander.Likhachev
357d12fc8e
[Build] Move JUnit dependencies into the version catalog
...
The `kotlin-test` dependencies are left untouched as changing them affects publications, thus these versions are independent from the used inside our build
#KTI-1349 In Progress
2023-09-06 22:47:33 +00:00
Timofey Solonin
14bed668d4
Revert "[MPP] Emit a warning when kotlin-test testing framework couldn't be inferred"
...
This reverts commit 256d9da24c .
Revert "[MPP] Only add test framework dependency once per configuration"
This reverts commit 65649673a7 .
^KT-56828
2023-09-05 18:55:15 +00:00
Alexander Shabalin
9ab6a5ff56
[K/N] Migrate all stdlib_external tests to new testing infra ^KT-61259
...
- Move backend.native/tests/stdlib_external to runtime/test This mirrors
tests location (in relation to sources) on other backends.
- Remove all backend.native/tests tasks using stdlib_external.
Additionally remove now unused KonanGTest.
- Include complete native-wasm/test and runtime/test in
native/native.test
- In runtime/test/numbers/MathTest.kt leave only native-specific part.
2023-09-04 18:51:10 +00:00
Yahor Berdnikau
f866883871
[Gradle] Also configure JsIrLink tasks with target compiler options
...
This should synchronize options between JS compile and link tasks
configured with target compiler options DSL.
^KT-61253 Fixed
2023-09-04 14:29:00 +00:00
Yahor Berdnikau
38e7bf6afa
[Gradle] Add compilerOptions() methods to KotlinCompilation implementations
...
This should help to avoid user mistakes in configuring options when they
are trying to use KotlinCompilation.
^KT-61636 Fixed
2023-09-04 14:29:00 +00:00
Yahor Berdnikau
55a0c86508
[Gradle] Fix JS module name and freeCompilerArgs config is not propagated to the task
...
Task was not using configured module name correctly.
In case of using "browser()" DSL freeCompilerArgs could be overwritten.
^KT-61194 Fixed
2023-09-04 14:28:59 +00:00
Yahor Berdnikau
4c60dd3f38
[Gradle] Fix JVM and Android targets moduleName change is not propagated in the multiplatform project
...
Missed existing logic where 'moduleName' was specifically configured
from 'moduleName' task input for MPP projects.
^KT-61303 Fixed
2023-09-04 14:28:59 +00:00
Nikita Bobko
01fc708a0f
Mark expect/actual classifiers as experimental
...
^KT-61573 Fixed
Review: https://jetbrains.team/p/kt/reviews/11969/timeline
Tests:
- MultiPlatformIntegrationTestGenerated
- CliTestGenerated
- MultiPlatformIntegrationTestGenerated
- DiagnosticTestGenerated.Multiplatform
- FirLightTreeOldFrontendDiagnosticsTestGenerated
Also add -Xexpect-actual-classes flag to all necessary ./libraries/* modules
Otherwise compilation of those modules failes because of `-Werror`
2023-09-04 12:21:37 +00:00
Ilya Gorbunov
8ae21c0e1b
[Generator] Do not omit public visibility of methods in wasm
2023-09-04 11:32:39 +00:00
Ilya Gorbunov
1c149925b7
[Generator] Always put expression body on a new line
2023-09-04 11:32:39 +00:00
Ilya Gorbunov
68a9b9c312
[Generator] Reference generator class in generated code files
2023-09-04 11:32:39 +00:00
Ilya Gorbunov
60bbd08569
[Generator] Rename additionalDoc, put its content before annotations
2023-09-04 11:32:39 +00:00
Alexander Udalov
761221904c
K2 kapt: add kapt.use.k2 Gradle property
...
... and `-Kapt-use-k2` CLI flag to enable K2 kapt.
#KT-61114 Fixed
2023-09-01 22:51:19 +00:00
Dmitrii Krasnov
e1c770eecb
Remove checking userHomeDir/.konan/dependencie in NativeDownloadAndPlatformLibsIT. In teamcity someone creates this dir.
2023-09-01 16:04:59 +00:00
Nataliya.Valtman
f46245621f
Log created error file in debug log
...
KT-59451 Fixed
2023-09-01 14:26:09 +00:00
Ilya Goncharov
0f40b2adce
[Gradle, wasm] Hack for mixed mode with js, wasmJs and wasmWasi
...
^KT-61623 fixed
2023-09-01 11:53:04 +00:00
strangepleasures
cc60618e86
KGP IT: do not run a failing test with class loader cache
2023-09-01 11:26:17 +00:00
Alexander Udalov
5c19cb3fcb
[KAPT4] KT-51982 Implement Kapt4AnalysisHandlerExtension, add KAPT CLI and Gradle IT
...
Co-authored-by: Alexander Udalov <Alexander.Udalov@jetbrains.com >
2023-08-31 22:19:13 +00:00
Dmitrii Krasnov
0191a15d96
migrated NativeDownloadAndPlatformLibsIT to junit 5 and gradle TestKit
2023-08-31 17:39:47 +00:00
Ilmir Usmanov
6c13250a08
KAPT3: Use another class in com.sun.tools.javac.main
...
Instead of CommandLine use Option, since CommandLine was moved or
removed from JDK 21.
#KT-60507 Fixed
2023-08-31 15:55:06 +00:00
Abduqodiri Qurbonzoda
9352e40d54
Wasm Enum.hashCode() is not final #KT-61614
...
Merge-request: KT-MR-11938
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-08-31 14:31:56 +00:00
Alexander.Likhachev
652ff54835
[Gradle] Print kapt worker classpath properly
2023-08-31 13:14:49 +00:00
Alexander.Likhachev
77b9860021
[Gradle] Make KaptTask.kaptPluginOptions an input of the task
...
#KT-58326 Fixed
2023-08-31 13:14:49 +00:00
Alexander.Likhachev
3a246d3a1d
[Gradle] Add an integration test for KT-58326
2023-08-31 13:14:49 +00:00
Ilya Kirillov
9b114335fb
[stdlib] fix stdlib-common highlighting in K2 IDE plugin
...
K2 IDE Plugin uses only a partial set of built-ins.
It only has declarations which are not present in
the JVM stdlib as classfiles.
Because of that, some major declarations like
`kotlin.Unit` are missing,
so resolution inside kotlin stdlib common modules does not work.
Because of incorrectly resolved stdlib,
highlighting and resolution in other files in the kotlin project does not work.
This commit adds source versions of stdlib declarations
(`/core/builtins/src/kotlin/`) to the common stdlib as a source-set
for IDE import.
This way all declarations in stdlib common module are properly resolved.
The approach might be incorrect as it might introduce possible redeclaration
conflicts between common and platform stdlib sources
as `/core/builtins/src/kotlin/` source-set is also registered as a source-set for
platforms.
2023-08-31 12:51:47 +00:00
Dmitrii Krasnov
8299fffae2
Added possibility to create a custom usable KotlinCompile task without using internals ownModuleName and moduleName
...
#KT-60541 Ready for Review
2023-08-31 09:37:21 +00:00
Yahor Berdnikau
c6893de9bb
[Gradle] Update Duckduckgo build regression benchmark
...
Compare against Kotlin 1.9.10 release.
^KT-61190 Fixed
2023-08-30 16:06:50 +00:00
Yahor Berdnikau
e5a3139d62
[repo] Update jgit to the latest version
...
^KT-61190 In Progress
2023-08-30 16:06:50 +00:00
Yahor Berdnikau
66bc6ea8eb
[Gradle] Update Graphql build regression benchmark
...
Compare against Kotlin 1.9.10 release.
^KT-61190 In Progress
2023-08-30 16:06:49 +00:00
Yahor Berdnikau
85284e00c7
[Gradle] Update KVision build regression benchmark
...
Compare against Kotlin 1.9.10 release.
^KT-61190 In Progress
2023-08-30 16:06:49 +00:00
Ilya Gorbunov
516383b995
[Docs] add wasm source sets for wasm-js and wasm-wasi
2023-08-30 11:37:29 +00:00
Sebastian Sellmair
eb0e7fa55b
[Gradle] Remove kpm Gradle integration tests
...
KT-61463
2023-08-29 16:45:12 +00:00
Sebastian Sellmair
02c2c76ffe
[Gradle] Remove ':kotlin-project-model' and ':kotlin-project-model-tests-generator'
...
KT-61463
2023-08-29 16:45:12 +00:00
Sebastian Sellmair
6d38a314cc
[Gradle] Remove kpm native variant codegen
...
KT-61463
2023-08-29 16:45:12 +00:00
Sebastian Sellmair
c889c2f217
[Gradle] Dissolve plugin.mpp.pm20 package
...
KT-61463
2023-08-29 16:45:12 +00:00
Sebastian Sellmair
282d2f4454
[Gradle] Remove Gradle KPM implementation
...
KT-61463
2023-08-29 16:45:12 +00:00
Sebastian Sellmair
34abc008ec
[Gradle] Update api dump after removing KPM import code
...
KT-61463
2023-08-29 16:45:12 +00:00
Sebastian Sellmair
ea3c275961
[Gradle] Dissolve .kotlin.gradle.kpm package
...
KT-61463
2023-08-29 16:45:12 +00:00
Sebastian Sellmair
0a8cca9be4
[Gradle] Remove KPM IDE Gradle Sync support
...
KT-61463
2023-08-29 16:45:12 +00:00
Sebastian Sellmair
e800885c03
[Gradle] Remove ':kotlin-gradle-plugin-kpm-android' module
...
KT-61463
2023-08-29 16:45:12 +00:00
Ilya Gorbunov
7d3f080c81
Generate JS Long using builtin generators (step 2)
2023-08-29 16:27:55 +00:00
Ilya Gorbunov
814515964d
Move JS Long to generated Primitives.kt file (step 1)
2023-08-29 16:27:55 +00:00
Yahor Berdnikau
e80988d98c
[Gradle] Don't collect module-info on using new IC/JVM approach
...
Collecting 'moduleInfo' is required for the old history-file-based
incremental compilation approach. And the way how it is being collected
violates Gradle project-isolation feature as it accesses all Kotlin
compile tasks from other Gradle subprojects.
When the new IC based on classpath snapshot is enabled, the plugin will
not collect 'moduleInfo' making it compatible with project isolation.
^KT-59826 Fixed
2023-08-29 15:21:57 +00:00
Yahor Berdnikau
40928d50a2
[Gradle] Access build stats internal properties in project-isolation compatible way
...
^KT-59826 In Progress
2023-08-29 15:21:57 +00:00
Yahor Berdnikau
d6becee2ce
[Gradle] Read 'local.properties' in project isolation compatible way
...
^KT-59826 In Progress
2023-08-29 15:21:56 +00:00
Yahor Berdnikau
b1965e746f
[Gradle] Move project isolation test to separate test suite
...
^KT-59826 In Progress
2023-08-29 15:21:56 +00:00
Alexander.Likhachev
9ec0ab2f5c
[Gradle] Disable failed K2 JS IC test
...
Enable it back when KT-61153 is resolved
#KT-60588 In Progress
2023-08-29 13:37:26 +00:00
Alexander.Likhachev
9e31904f0f
[Gradle] Run CompilerPluginsIncrementalIT only with K1
...
Should be reconsidered in KT-61171
#KT-60588 In Progress
2023-08-29 13:37:26 +00:00
Alexander.Likhachev
52303a1b23
[Gradle] Fix test plugins application
2023-08-29 13:37:25 +00:00
Alexander.Likhachev
4f820230fd
[Gradle] Disable K2 precise java tracking IC tests
...
Enable them back when KT-57147 is resolved
#KT-60588 In Progress
2023-08-29 13:37:25 +00:00