Anton Lakotka
c3274b61ee
[Gradle] rename projectIdOrNull to currentBuildProjectIdOrNull for clarity
2023-01-11 12:33:00 +00:00
Anton Lakotka
d70a57d689
[Gradle, Test] Remove ktor 1_5_4 and coroutines 1_4_3-native-mt test
...
as consuming coroutines 1.4.3-native-mt is no longer compatible with
current KGP version. Since it transitively depends on
old atomicfu of version 0.15.1. And that atomicfu library was published
with experimental publication model by old Multiplatform Gradle Plugin
2023-01-11 12:32:59 +00:00
Anton Lakotka
b730bfe51e
[Gradle, Test] Bump coroutines and serialization libraries version...
...
for MPP test. As they were way too old and no longer compatible with
MPP plugin because of the experimental publication model that were used
in earlier versions.
2023-01-11 12:32:59 +00:00
Anton Lakotka
a83bdc9772
[Gradle] Don't consume old MPP dependencies with external metadata artifact
...
Old KGP versions published metadata artifact in separate maven module.
Current KGP should no longer support such dependencies.
2023-01-11 12:32:59 +00:00
Anton Lakotka
26c1b931c8
[Gradle] Create deprecated configurations as some projects are still...
...
...dependending on them.
2023-01-11 12:32:58 +00:00
Anton Lakotka
ee3034328b
[Gradle] Update test that resolves jsMain dependencies metadata
...
This behavior is incorrect and it is not supported by new
resolvable metadata dependencies configurations.
Because this configuration is expected to be resolved to metadata
artifacts only. And the fact that it gets resolvled to some platform
variant is not right. But is not critical as well.
The next steps is to remove metadata configurations from platform
source sets.
2023-01-11 12:32:58 +00:00
Anton Lakotka
0e3be164c7
[Gradle] Update kotlin-gradle-plugin-api after removing...
...
... `getRelatedConfigurationNames` override.
This property shouldn't be used in user scripts. It supposed to be
internal.
2023-01-11 12:32:58 +00:00
Anton Lakotka
b16f404cc2
[Gradle, Test] Remove unnecessary JS test that checks metadata dependencies
...
Kotlin metadata dependencies shouldn't be used in JS plugin. It is
pure multiplatform thing.
2023-01-11 12:32:57 +00:00
Anton Lakotka
89acfd0a98
[Gradle] Source Dependency Resolver shouldn't check whether project...
...
...dependency is in current build or not. Because for IDE import it
matters that it is a source dependency. While for CLI it is not
since included builds will produce an actual klib that will be transformed
2023-01-11 12:32:57 +00:00
Anton Lakotka
ac429b6997
[Gradle] Use resolvableMetadataConfiguration as Input for transformation task
2023-01-11 12:32:57 +00:00
Anton Lakotka
6cda136566
[Gradle] Fix tests after deprecating and removing scoped Metadata Configurations
2023-01-11 12:32:56 +00:00
Anton Lakotka
3f8df88857
[Gradle, Test] Move newMppDependenciesDsl test to functional tests
2023-01-11 12:32:56 +00:00
Anton Lakotka
13fbfad549
Add dependencies only to intransitive
2023-01-11 12:32:56 +00:00
Anton Lakotka
eaa3eadc9e
Remove metadataConfiguration for source set and reuse
...
resolvableMetadataConfiguration
2023-01-11 12:32:55 +00:00
Anton Lakotka
0690613082
[Gradle] Don't use whole Project in MetadataDependencyResolution's
...
Instead, derive Project info from Resolved Component.
2023-01-11 12:32:55 +00:00
Anton Lakotka
35b2672436
[Gradle] Deprecate scoped metadata dependencies
...
Scoped metadata dependencies are not needed since
metadata dependencies are used only for metadata compilation. Metadata
is not consumed at runtime. Therefore, scoped metadata dependencies
are not required.
^KT-55312
2023-01-11 12:32:55 +00:00
Vyacheslav Gerasimov
417fef0d58
Build: Change node directory in :js:js.tests project to build/node
...
#KTI-1087
2023-01-11 11:58:40 +00:00
Svyatoslav Scherbina
b1e3226ed5
K2: add KlibDeserializedContainerSource.isFromNativeInteropLibrary
...
This will be required when serializing IR symbols referring declarations
from interop libraries.
2023-01-11 11:47:45 +00:00
Svyatoslav Scherbina
6877b2fc55
K2: add KlibDeserializedContainerSource to packages too
...
^KT-55809
2023-01-11 11:47:45 +00:00
Pavel Punegov
dfef9e03f0
[K/N][test] Build the platform libs only if Xcode >= 14.1
...
Test uses light distribution and builds platform libs that
require Xcode at least 14.1.
Merge-request: KT-MR-8243
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com >
2023-01-11 11:35:10 +00:00
Pavel Mikhailovskii
bec76db7b3
Update year in autogenerated test files
2023-01-11 11:26:23 +00:00
Svyatoslav Kuzmich
1564de5859
[Wasm] Support external vararg
...
Initial implementation copies Wasm array to JS array and spreads it
2023-01-11 10:35:36 +00:00
Aleksei.Cherepanov
99de93bbd6
[Maven] Kotlin compiler plugin should respect model's compile source roots
...
#KT-13995 Fixed
Merge-request: KT-MR-8236
Merged-by: Aleksei Cherepanov <aleksei.cherepanov@jetbrains.com >
2023-01-11 10:19:31 +00:00
Svyatoslav Scherbina
e2640b4afa
Native: add an option to disable exported Swift member name mangling
...
This commit supports `objcExportDisableSwiftMemberNameMangling=true`
binary option, which disables mangling for Swift names in generated
Objective-C headers, but keeps mangling for Objective-C names.
Enabling it might cause issues in some cases with actual clashes.
^KT-53638 Fixed
2023-01-11 08:57:12 +00:00
Kirill Rakhman
1b016d0bce
FIR, Serialization: fix FirSerializationPluginClassChecker after DiagnosticsReporter refactoring related to reporting diagnostic on null source
2023-01-11 08:30:36 +00:00
Kirill Rakhman
69f2e8826a
FIR: fix a bunch of issues after DiagnosticsReporter refactoring related to reporting diagnostic on null source
2023-01-11 08:30:36 +00:00
Kirill Rakhman
a7edf5b83e
FIR: Throw if source is null in DiagnosticReporter.reportOn ^KT-55284 Fixed
2023-01-11 08:30:36 +00:00
Ilya Goncharov
c3bdcc6b0d
[Gradle, JS] Use JAR archive task type only for jar archiveType
2023-01-10 20:15:55 +00:00
aleksandrina-streltsova
c6886fc779
[FIR] Use post-compute in typeAliasCache for deserialized symbols
...
^KTIJ-24156 Fixed
2023-01-10 20:15:28 +00:00
aleksandrina-streltsova
3a6e3290aa
[FIR] KTIJ-24156: Add test data
2023-01-10 20:15:28 +00:00
aleksandrina-streltsova
af414cfb5e
[Analysis API] Provide API for getting KtTypeAliasSymbol by ClassId
2023-01-10 20:15:27 +00:00
Alexander.Likhachev
ca68ca753a
[Gradle] Temporary add max version for ScriptingIT due to a Gradle bug
...
#KT-52625 In Progress
2023-01-10 19:08:38 +00:00
Alexander Likhachev
be3fe747c3
[Gradle] Suppress JS deprecation warning in test projects
2023-01-10 19:08:37 +00:00
Alexander Likhachev
d7b446d20f
[Gradle] Avoid accessing PropertiesProvider via rootProject
...
This way in the default setup, there are no reported problems with project isolation
#KT-55164 Fixed
#KT-52963 Fixed
#KT-52625 In Progress
2023-01-10 19:08:37 +00:00
Alexander Likhachev
61cac14ed7
[Gradle] Don't detect multiple plugin instances with project isolation enabled
...
#KT-55164 In Progress
#KT-52625 In Progress
2023-01-10 19:08:37 +00:00
Alexander Likhachev
08c8d3ec03
[Gradle] Bump maximum supported Gradle version to 7.4 in tests
...
#KT-52625 In Progress
2023-01-10 19:08:36 +00:00
Alexander Likhachev
51b011706b
[Gradle] Check if configuration cache was stored in JS CoCa tests
2023-01-10 19:08:36 +00:00
Alexander Likhachev
89811f8d95
[Gradle] Remove unnecessary Gradle version requirements for CoCa tests
2023-01-10 19:08:36 +00:00
Alexander Likhachev
487439054e
[Gradle] Remove default build options duplicates in ConfigurationCacheIT
2023-01-10 19:08:35 +00:00
Alexander Likhachev
bfde8eda81
[Gradle] Do not check for configuration cache report file existence
...
This file is generated even if there's no problems since Gradle 7.4. It now contains useful information to determine configuration inputs. Rely on the configuration cache problems option instead.
#KT-52625 In Progress
2023-01-10 19:08:35 +00:00
Alexander Likhachev
72a6f977f6
[Gradle] Disable fail on warning for some tests because of KT-55751
...
#KT-52625 In Progress
2023-01-10 19:08:35 +00:00
Alexander Likhachev
503db425aa
[Gradle] Disable fail on warning for some tests with an old AGP version
...
#KT-52625 In Progress
2023-01-10 19:08:34 +00:00
Alexander.Likhachev
202fe9e41e
[Build] Fix configuration cache issue on running :js:js.tests:test
...
#KT-55839 Fixed
2023-01-10 19:08:09 +00:00
Nikolay Krasko
1451ef74c2
Additional note in instruction for reproducibility 1.8.0
2023-01-10 18:06:38 +01:00
Alexander Udalov
3dc3ed4ca5
Exclude jdk.internal.* in backend debug tests
...
Otherwise `debug/stepping/enum.kt` starts failing as soon as we advance
default language version to 1.9, because with the introduction of enum
entries, enum's `<clinit>` now invokes LambdaMetafactory which invokes
its own bundled version of ASM located in
`jdk.internal.org.objectweb.asm`, so we end up stepping over a lot of
internal ASM code.
`jdk.internal.*` is also excluded by default in the debugger settings in
IntelliJ, so users will not observe this issue in practice.
2023-01-10 16:39:05 +00:00
Pavel Kirpichenkov
38d55757b3
[Tests] Move MultiplatformExtensionTest to util
...
KT-55530
2023-01-10 16:02:55 +00:00
Pavel Kirpichenkov
e40d64dfc0
[Tests] Move functional task tests to unit tests package
...
KT-55530
2023-01-10 16:02:55 +00:00
Pavel Kirpichenkov
4dbb2b01fe
[Tests] Give clear name to functional dependency resolution tests
...
KT-55530
2023-01-10 16:02:54 +00:00
Pavel Kirpichenkov
11b026f268
[Tests] Remove deprecated JS compiler type from test
...
KT-55530
2023-01-10 16:02:54 +00:00
Pavel Kirpichenkov
ba7ecc07be
[Tests] Move external android target smoke test to the common package
...
KT-55530
2023-01-10 16:02:54 +00:00