Yahor Berdnikau
c682d4f4cc
Use 'jvm-test-suite' for KGP functional tests
2022-12-06 13:18:43 +00:00
Anton Lakotka
8726360a8e
[Gradle] Update tests after removing runtimeOnly metadata transformations
...
Additionally check that all metadata dependencies per scope resolve
consistently. It is a side effect after creating GranularMetadata
dependency for all compile scopes instead per scope style.
^KT-55230
2022-12-06 12:49:28 +00:00
Anton Lakotka
d28659fdbe
[Gradle] Merge scoped dependency transformations to one: compile scope
...
There is no need on fine-grained metadata dependencies transformation
per scope. Because it is only needed for compilation.
^KT-55230 Fixed
2022-12-06 12:49:27 +00:00
Anton Lakotka
98678bce0a
[Gradle] Remove metadata dependencies transformation for runtimeOnly
...
Kotlin Metadata KLIBs cannot be used in runtime thus
we don't have to transform composite JARs that contain
metadata per source set for runtimeOnly dependencies scopes.
^KT-55230 Fixed
2022-12-06 12:49:27 +00:00
Bogdan Mukvich
5db9c2990a
Remove deprecated dependencies resolvers from kotlin-script-util
...
along with outdated maven dependencies
2022-12-06 09:52:17 +00:00
Sebastian Sellmair
56b57f1908
[Gradle] Fix ConfigurationCacheIT.testCommonizer
...
... after removing Project parameter for 'getCommonizerTarget' calls
KT-55238
2022-12-06 08:36:13 +00:00
Sebastian Sellmair
7258926db6
[Gradle] IdeCompositeDependencyResolver: Support WithBuildDependencies
...
KT-55238
2022-12-06 08:36:13 +00:00
Sebastian Sellmair
b4b0607597
[Gradle] Refine MppIdeDependencyResolutionIT
...
KT-55238
2022-12-06 08:36:13 +00:00
Sebastian Sellmair
23bd6332b4
[Gradle] Update kotlin-gradle-plugin-idea.api
...
KT-55238
2022-12-06 08:36:12 +00:00
Sebastian Sellmair
2225816427
[Gradle] CInteropCommonizerDependent: Remove unused Project parameters
...
KT-55238
2022-12-06 08:36:12 +00:00
Sebastian Sellmair
1ec7e404fd
[Gradle] Implement MppIdeDependencyResolutionIT.testCommonizedPlatformDependencyResolution
...
^KT-55238 Verification Pending
2022-12-06 08:36:12 +00:00
Sebastian Sellmair
ee07fcc00b
[Gradle] Implement IdeDependencyResolver.WithBuildDependencies
...
KT-55238
2022-12-06 08:36:11 +00:00
Sebastian Sellmair
4b036cc627
[Gradle] Implement IdeCommonizedNativePlatformDependencyResolver
...
KT-55238
2022-12-06 08:36:11 +00:00
Sebastian Sellmair
c1b1737cf0
[Gradle][Minor] Remove Project receiver from .getCommonizerTarget functions
...
KT-55238
2022-12-06 08:36:10 +00:00
Sebastian Sellmair
f8919533dc
[Gradle] Update kotlin-gradle-plugin-api.api
...
KT-55218
2022-12-06 08:35:17 +00:00
Sebastian Sellmair
7c70319308
[Gradle] KotlinTargetHierarchyBuilder: Support Android compilations
...
KT-55218
2022-12-06 08:35:17 +00:00
Sebastian Sellmair
8bea195d68
[Gradle] KotlinTargetHierarchyBuilder: Use any prefix for target functions
...
... to disambiguate with target preset functions
KT-55218
2022-12-06 08:35:16 +00:00
Nikolay Krasko
9a69c1dd35
Clean-up verification-metadata.xml from old dependencies
2022-12-05 20:11:26 +00:00
Nikolay Krasko
57ffc61cc1
Reveal non-boostrap kotlin dependency usages
2022-12-05 20:11:26 +00:00
Nikolay Krasko
13a4fc7f36
Remove mute-platform.csv tests
2022-12-05 20:11:25 +00:00
Nikolay Krasko
edc562e8b9
Remove old android-studio jps module
2022-12-05 20:11:24 +00:00
Anton Lakotka
6614714c94
[Gradle] Register sourcesJar during KotlinSoftwareComponent init
...
sourcesJar task should be available as soon as kotlin multiplatform
plugin is applied before actual evaluation.
Although copySpec of sourcesJar task will be updated in afterEvaluate
block since user should define themselves targets and intermediate
source sets between them.
^KT-55230
2022-12-05 16:54:58 +00:00
Anton Lakotka
290e50eebf
[Gradle, Test] Test that sourcesJar is available during configuration
...
^KT-55230
2022-12-05 16:54:57 +00:00
Ilya Kirillov
5477e2073f
[Analysis API] fix typo in testdata filenames
2022-12-05 17:27:43 +01:00
Ilya Kirillov
8e70dbc7e3
[FIR] fix SOE on cycle hierarchy of Java classes during status computation
2022-12-05 17:27:43 +01:00
Ilya Kirillov
03549d4b98
[FIR] remove suspicious safe-cast to FirResolvedDeclarationStatus in status tranformer
...
Statuses of super members should already be preresolved
2022-12-05 17:27:43 +01:00
Ilya Kirillov
82fe86c003
[FIR] fix lazy resolution contract violation in status resolve transformer
...
Previously, there was issue with resolving statuses of properties' super
declarations for anonymous/local classes.
And this problem was hidden by calling lazyResolveToPhase(STATUS) which
is a violation of lazy resolution contract as lazy resolution to status
cannot be called from the status phase itself
^KT-54890
2022-12-05 17:27:42 +01:00
Ilya Kirillov
c899f6dae3
[LL FIR] fix lazy resolution of member property statuses for anonymous objects
...
Previously, statuses of superclass which are not local was not ignored
Sometimes it worked in the IDE by calling lazyResolveToPhase
which is a violation of the lazy resolution contract
^KT-54890
2022-12-05 17:27:42 +01:00
Ilya Kirillov
c66fbf5c0e
[LL FIR] fix lazy resolution of member-property statuses for local classes
...
Previously, statuses of superclass which are not local was not ignored
Sometimes it worked in the IDE by calling lazyResolveToPhase
which is a violation of the lazy resolution contract
^KT-54890
2022-12-05 17:27:42 +01:00
Andrey Uskov
1550a37b17
Cleanup: remove deprecated methods from Kotlin daemon
2022-12-05 16:02:04 +00:00
Andrey Uskov
c9e0100214
Remove experimental implementation of Kotlin Compiler Daemon
...
#KT-50846 Fixed
2022-12-05 16:02:03 +00:00
Pavel Kirpichenkov
94f690a10e
[MPP] fix misconfigured project in test
...
JVM + linux project shouldn't have a JVM-only dependency in common
KT-54975
2022-12-05 14:55:46 +00:00
Yan Zhulanow
bcf1389ae5
[LL API] Fix enum value lazy analysis (KTIJ-23833)
...
^KTIJ-23833 Fixed
2022-12-05 11:44:15 +00:00
Jaebaek Seo
a637626601
Handle context receiver in KtModifierListOwner.addModifierList()
...
The existing `KtModifierListOwner.addModifierList(newModifierList)`
function adds a visibility keyword (e.g., `private`) in front of the
`context(..)` modifier, which generates wrong code. This commit fixes
it.
^KTIJ-23728 fixed
2022-12-05 11:20:03 +01:00
Simon Ogorodnik
9856204925
KTI-1046. Tests Replace XmlParser with JDOM in tests-spec
...
Fix test behaviour with two artifacts of spec on teamcity
2022-12-05 07:30:24 +00:00
Andrey Uskov
41ff283856
Don't call File.getCanonicalPath in KGP
...
Relates to KT-54579.
2022-12-04 18:49:30 +00:00
Andrey Uskov
ca8f234f28
Improve performance of KAPT on JDK 17
...
Getting canonical path is expensive on JDK 17, thus check, whether
file is belongs to some folder becomes expensive.
In this commit implementation was replaced to a new one based on
File.getParent. It gives profit 49seconds-> 500 ms/100k files.
Note! Now if there are present two files which are actually links of the
same file, they are treated as two different files.
#KT-54579 Fixed
2022-12-04 18:49:30 +00:00
Pavel Kirpichenkov
cba90c73e6
[MPP] Add stdlib-common filter, extend platform dependency resolution
...
KT-54975
2022-12-04 16:15:09 +02:00
Pavel Kirpichenkov
13d1f0eab0
Minor: fix typo
2022-12-04 16:14:38 +02:00
Steven Schäfer
21fef70367
Standardize context receiver parameter names
...
Previously, FIR used `_context_receiver_n` while FE10 used `<this>` for
all context receiver parameters. This commit changes the code in FE10
to follow the convention from FIR.
2022-12-03 00:11:38 +01:00
Mikhail Glukhikh
5cf1a88c42
FE: move delegate name functions to NameUtils
2022-12-02 21:54:18 +00:00
Steven Schäfer
a7ba081d22
FIR: Fix interface delegation ABI
...
- Unifies the name of the `$$delegate_<n>` field between K1 and K2.
- Make the `$$delegate_<n>` field private
2022-12-02 21:54:18 +00:00
Vyacheslav Karpukhin
91749737f8
[Gradle] Workaround KT-55222 via reflection to make the project compilable
2022-12-02 21:44:36 +01:00
Vladimir Dolzhenko
ebf24c2d24
Add default impl of getCanonicalText
...
#KTIJ-11270
2022-12-02 18:28:41 +00:00
Vladislav Grechko
cb93e9d408
Get rid of redundant boxing of unsigned operands of infix 'compareTo'
...
^KT-48759: Fixed
2022-12-02 18:25:52 +00:00
Ilya Kirillov
7423b35741
[Low Level FIR] explicitly specify all phases in LazyTransformerFactory
...
so when the new phase is added, lazy transformer for it is not missed
2022-12-02 17:08:34 +00:00
Ilya Kirillov
9dd398dc77
[FIR] do not consider FirDefaultPropertyBackingField to be always resolved to BODY_RESOLVE
...
Otherwise, lazy resolve will never resolve it
2022-12-02 17:08:34 +00:00
Ilya Kirillov
500f5b48f8
[Low Level FIR] reformat code
2022-12-02 17:08:33 +00:00
Ilya Kirillov
fb500fd521
[Low Level FIR] do not try to lazy resolve FirBackingField
2022-12-02 17:08:33 +00:00
Ilya Kirillov
317bb0122f
[Low Level FIR] encapsulate the work with lazy transformers to a class
2022-12-02 17:08:32 +00:00