Nikolay Lunyak
ef28e031dc
[FIR] KT-58145: Ensure the compiler fails
...
It fails with: "Module data is not
registered in Libraries session"
during `FirFakeOverrideGenerator.createCopyForFirProperty()`
for `callerFrame`.
2023-05-03 10:04:25 +00:00
Alexander Udalov
f3231b2aa9
KGP IT: do not run recently added tests with class loader cache
...
Also add a comment mentioning the error so that it could be searchable
in the future.
2023-05-03 09:47:58 +00:00
Dmitrii Krasnov
617dddba70
migrated FatFrameworkIT to junit 5 and gradle TestKit
2023-05-03 09:29:31 +00:00
Nataliya.Valtman
1591869991
Add FUS statistics for dokka usage
...
#KT-57330 Fixed
2023-05-03 07:22:38 +00:00
Dmitry Savvinov
8561bbf603
[Gradle] Minor: move diagnostic tests under unitTest package
2023-05-02 14:32:14 +00:00
Dmitry Savvinov
c5bda2f63c
[Gradle] Support suppressing KGP diagnostics
2023-05-02 14:32:14 +00:00
Dmitry Savvinov
f5c4dffc3e
[mpp] Hack: Inherit KotlinProjectExtension in KotlinPm20ProjectExtension
...
Addition of checkers in previous commits lead to CCE when they call
'project.kotlinProjectExtension'. Change in this commit isn't
semantically sound, but allows to repair those tests cheaply
2023-05-02 14:32:13 +00:00
Dmitry Savvinov
97f77c2ecf
[Gradle] Add functional tests on the new diagnostics/features infra
2023-05-02 14:32:13 +00:00
Dmitry Savvinov
6452c22430
[mpp] Migrate AGP Compatbility checks to the new infra
2023-05-02 14:32:13 +00:00
Dmitry Savvinov
bb3dc145e5
[mpp] Migrate AndroidSourceSetLayout checks to the new infra
2023-05-02 14:32:13 +00:00
Dmitry Savvinov
4e479cb54b
[mpp] Migrate UnusedSourceSetsChecker to the new infra
2023-05-02 14:32:13 +00:00
Dmitry Savvinov
ee9a952da2
[mpp] Migrate jvmWithJava preset deprecation to the new infra
2023-05-02 14:32:13 +00:00
Dmitry Savvinov
05662eae7a
[mpp] Migrate MissingNativeStdlibWarning to the new infra
2023-05-02 14:32:13 +00:00
Dmitry Savvinov
07142a4083
[mpp] Migrate checks of commonMain.dependsOn to the new infra
2023-05-02 14:32:13 +00:00
Dmitry Savvinov
7a5f1d694f
[mpp] Migrate checks of deprecated K/N targets to new infra
2023-05-02 14:32:13 +00:00
Dmitry Savvinov
a539db932c
[mpp] Migrate HMPP-flags deprecations to the new infra
2023-05-02 14:32:13 +00:00
Dmitry Savvinov
29223dbd4a
[Gradle] Add integration tests on new diagnostics infrastructure
2023-05-02 14:32:13 +00:00
Dmitry Savvinov
5cd94d1db2
[Gradle] Support testing new diagnostics infrastructure in functionalTests
2023-05-02 14:32:13 +00:00
Dmitry Savvinov
4a88e01a8e
[Gradle] Add new infrastructure for diagnostics in KGP
2023-05-02 14:32:13 +00:00
Dmitry Savvinov
5dd52f7d40
[tests] Apply modern plugins instead of legacy ones
...
KotlinPlatform*Plugins are plugins from pre 1.3 MPP and shouldn't
be used. The intention was to apply usual 'kotlin("jvm")' and
'kotlin("android")'-plugins, for which KotlinPluginWrapper and
KotlinAndroidPlugin stand respectively
2023-05-02 14:32:13 +00:00
Dmitry Savvinov
0a33eef518
[build] Fix weird dependencies management
...
kotlin-gradle-plugin-integration-tests on runtime uses relocated
compiler jars. A special handling is required to support this.
Looks like 'kotlin-gradle-plugin-test-utils' was meant to help
here somehow, but was accidentally broken at some point. It went
unnoticed because not much classes from transitive dependencies
of 'kotlin-gradle-plugin-test-utils' were used.
The change in this commit still leaves a few questions about this
configuration, but at leats it makes it possible to use compiler
classes (e.g. KotlinTestUtils)
2023-05-02 14:32:12 +00:00
Dmitry Savvinov
e22a9b7108
[mpp] Minor: drop obsolete reporting of HMPP flags
...
Now any usages of HMPP-flags are deprecated and reported in
deprecationDiagnostics.kt, which can sometimes lead to duplicated
reports
2023-05-02 14:32:12 +00:00
Dmitry Savvinov
31eb012b6b
[tests] Minor: add support of DevKit in Gradle IT
...
This should provide some nicities in IDEA like folders for navigating
to testData
2023-05-02 14:32:12 +00:00
Kirill Rakhman
bdc5a37552
[Gradle IT] Enable integration test after Native version bump
...
#KT-58219
2023-05-02 13:25:30 +02:00
Alexander Udalov
926aa07ca1
Gradle: do not set fragments/fragmentRefines for non-MPP
...
Otherwise kapt-generated Kotlin sources do not end up in any module,
which causes an error in KT-58301. The error is only happening with K2
because fragments/fragmentRefines arguments are checked more strictly
than commonSources used in K1.
#KT-58301 Fixed
2023-05-02 10:52:23 +00:00
Ilya Goncharov
f8c51dcfee
[Gradle, JS] Fix configuration cache for NodeJsExec and D8Exec
...
^KT-58250 fixed
^KT-58256 fixed
2023-05-01 20:15:37 +00:00
Ilya Goncharov
83db4a06d9
[Gradle, JS] Make esModules property finalized on read
2023-05-01 19:35:31 +00:00
Ilya Goncharov
b824c091da
[Gradle, JS] Add additional diagnostic for composite build test
2023-05-01 19:12:54 +02:00
Sebastian Sellmair
e547ea29b3
[Gradle] Raise min required AGP version for Multiplatform to 7.0
...
^KT-58281 Verification Pending
2023-05-01 13:07:37 +00:00
Sebastian Sellmair
f2270ccdc7
[Gradle] Enable Multiplatform/Android SourceSetLayout v2 by default
...
^KT-58281 Verification Pending
2023-05-01 13:07:37 +00:00
Sebastian Sellmair
56ba5a284d
[Gradle] Add unit test, checking which metadata compilations are created
...
This will quickly notify any developer if some code
has unexpected effects on the creation of metadata compilations
^KT-58319 Verification Pending
2023-05-01 13:05:47 +00:00
Sebastian Sellmair
8273328726
[Gradle] ProjectMetadataProvider: Allow nullable compiled metadata for SourceSet
...
The commit leading to the issue described in KT-58319 was:
510eca9da1
[Gradle] Implement source set inspection methods as 'suspend'
In this commit one method called
'getCommonSourceSetsForMetadataCompilation' was implemented
in a suspend style.
This re-implementation however introduced a semantic change to the function:
Previously this method (counterintuitively) returned commonMain
even if the SourceSet only participated in a single platform compilation.
This is because the KotlinMetadataTarget still cas a 'main' compilation
that includes 'commonMain'. The previous implementation did not filter
this compilation therefore found two platform types for the SourceSet,
assuming that it can be compiled to metadata.
This lead to a 'commonMain' compilation created which then gets
correctly disabled by 'isMetadataCompilationSupported'.
After the commit, a single target project did not create a 'commonMain'
compilation anymore. This leads to no metadata being provided
by the metadata provider. This seems OK, but the 'ProjectMetadataProviderImpl'
threw an error in cases the IDE requested this metadata.
^KT-58319 Verification Pending
2023-05-01 13:05:47 +00:00
Sebastian Sellmair
900f26f3c5
[Gradle] Implement KT58319ProjectMetadataProviderTest to cover KT-58319
2023-05-01 13:05:47 +00:00
Ilya Goncharov
a3d45964f3
[Gradle, JS] Add test with webpack + es modules
2023-05-01 10:45:02 +00:00
Ilya Goncharov
5b47b1ac24
[Gradle, JS] esmodules for webpack
2023-05-01 10:45:01 +00:00
Vyacheslav Karpukhin
ec3e13a091
Drop AndroidDependencyResolver, since it's not used anymore
2023-04-29 01:42:15 +02:00
Dmitrii Krasnov
36fc398358
migrated XCFrameworkIT and AppleSiliconIT to junit5 and gradle TestKit
2023-04-28 18:24:29 +00:00
Ilya Gorbunov
b35b727d73
KT-53778 Remove experimental annotations from open ranges
2023-04-28 17:12:15 +00:00
Ilya Goncharov
dee3bbb4bf
[Gradle, JS] Fix testing of composite build without respect of work of NPM, just look on generated package.json
2023-04-28 16:40:11 +00:00
Yahor Berdnikau
982a4fbda0
Print in the console report showing amount of tasks used K2
...
^KT-57736 Fixed
2023-04-27 14:32:47 +00:00
Dmitrii Krasnov
847544d99c
Removed jfrog repository from kapt integration tests
...
#KT-58022
2023-04-27 14:19:22 +00:00
Bogdan Mukvich
a7396d8c10
Make gradle integration proguard test JDK 11 compatible
2023-04-27 12:25:21 +00:00
Bogdan Mukvich
e7989eecf5
Add function to get toolchain JDK home location
2023-04-27 12:25:20 +00:00
Kirill Rakhman
6d3b911dfc
[K2/Native] Configure metadata compilation mode
...
This fixes access to internal declarations in common source sets from
intermediate source sets that are compiled to metadata.
#KT-58219 Fixed
2023-04-27 10:49:53 +00:00
Dmitrii Krasnov
aea8670c12
migrated NativeLibraryDslIT and NativeLibraryDslWithCocoapodsIT to junit 5 and gradle TestKit
...
#KT-51553
2023-04-27 10:40:32 +00:00
Sebastian Sellmair
9f17f6621b
[Gradle] Adjust Kotlin2JsCompileArgumentsTest and KotlinCompileArgumentsTest
...
... after ensuring DependencyClasspath is not resolved
by CompilerArgumentAware
^KTIJ-24724 Verification Pending
2023-04-27 09:17:05 +00:00
akerimsenol
502c3c29cc
Omit dependency classpath from compiler args
...
This is in the context of the following issue:
https://youtrack.jetbrains.com/issue/KTIJ-24724
2023-04-27 09:17:05 +00:00
Ilya Gorbunov
937a14146a
Hide experimental Duration functions that are not intended to be stabilized
2023-04-26 10:44:52 +00:00
Ilya Gorbunov
448e9fc5e7
Drop functions hidden since 1.4 (inline-only or experimental in JVM)
...
Since it's no longer possible to use API version less than 1.4,
these functions can be no longer called at all.
2023-04-26 10:31:03 +00:00
Abduqodiri Qurbonzoda
63a5a74613
Introduce HexFormat for formatting and parsing hexadecimals #KT-57762
...
Merge-request: KT-MR-9460
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-04-26 09:54:25 +00:00