Ilya Gorbunov
d7c31fbe82
Disregard PlatformImplementation class loaded from parent classloader
...
Such type cannot be cast to a base type, if the former is loaded from
a different, parent classloader.
#KT-47857 Fixed
Co-authored-by: Aleksei.Cherepanov <aleksei.cherepanov@jetbrains.com >
2021-11-24 01:59:48 +03:00
Ilya Goncharov
ffbf2ea1a5
[Gradle, JS] Remove redundant build.gradle modification in test
2021-11-23 18:48:33 +03:00
Ilya Goncharov
01deac5e5c
[Gradle, JS]Run kotlinNodeJsSetup ad kotlinYarnSetup instead of assemble
2021-11-23 11:41:20 +00:00
Ilya Goncharov
e32a1ca562
[Gradle, JS] Not resolve configuration with nodejs and yarn if it should not be downloaded
2021-11-23 11:41:19 +00:00
Alexander Udalov
0048540652
Prepare kotlinx-metadata-jvm 0.4.0 for release
2021-11-23 02:17:01 +01:00
Viacheslav Kormushkin
a695d9bf59
KT-49771 - podInstall task is not executed after adding a pod dependency to the shared module
...
#KT-49771
2021-11-22 13:19:03 +00:00
Ilya Goncharov
f48436b35e
rra/ilgonmic/eager-like-native
...
[JS IR] Leave JsEagerInitialization until bootstrap update
[JS IR] Fix js stdlib api
[JS IR] Change annotation on eager initialization in sources
[JS IR] Make eager initialization consistent with native
Merge-request: KT-MR-5030
2021-11-22 12:45:37 +00:00
sebastian.sellmair
d5a081bf03
[MPP] [Android] KotlinAndroidTarget: filter AgpVersionAttr attribute
...
Ensure that the attribute com.android.build.api.attributes.AgpVersionAttr
is not published when creating the android usage contexts.
^KT-49798 Verification Pending
2021-11-22 10:48:43 +00:00
sebastian.sellmair
95018a9de0
[MPP] [Android] implement testAndroidMultiplatformPublicationAGPCompatibility
...
This test publishes a Multiplatform/Android library locally with
a given AGP version (7.1-*+) and tests the compatibility with older
AGP consumer versions.
Two projects will be tested:
multiplatformAndroidConsumer:
kotlin("multiplatform") + android target depending on
the previous publication as 'commonMainImplementation' dependency
plainAndroidConsumer:
kotlin("android") depending on the previous publication
as 'implementation' dependency.
Both projects will test the 'assemble' umbrella task to ensure,
compatibility with the given publication.
^KT-49798 implicitly covered as well
2021-11-22 10:48:43 +00:00
sebastian.sellmair
8c5f980c16
[MPP] [Android] implement testKT49798AgpVersionAttrNotPublished
...
This test covers ^KT-49798 by publishing an Android library and
checking that 'AgpVersionAttr' is not mentioned in any .module files
of those publications.
2021-11-22 10:48:42 +00:00
sebastian.sellmair
f864e19d95
[Android] Add Gradle integration tests for AGP 7.1
...
^KT-49798
2021-11-22 10:48:42 +00:00
Aleksei.Cherepanov
8e21e954ad
Disable functionalTest source set for JPS build
...
Exclude functionalTest from :kotlin-gradle-plugin module for JPS build
2021-11-22 08:15:37 +00:00
Steven Schäfer
4b4ee78e5d
kotlinx-metadata: Fix parsing of inlineClassUnderlyingType
2021-11-20 12:39:15 +01:00
Dmitry Petrov
77dde26c7c
JVM KT-48944 improve performance of FunctionReference#equals
...
'getOwner()' computes KDeclarationContainer for function references,
which can be costly. Compare other FunctionReference properties first.
2021-11-20 10:31:07 +03:00
Nikolay Krasko
987cbd58e9
Refactoring: restore empty javadoc for all publications in kotlin-test
...
Partially revert 4dc45a4118
2021-11-20 10:11:37 +03:00
Nikolay Krasko
6a2c607862
Return source and javadoc publication for kotlin-test-wasm
...
Setting packaging to klib didn't work because it was overwritten below.
^KTI-692 Fixed
2021-11-20 10:11:32 +03:00
Nikolay Krasko
18ed361f9b
Narrow down suppressAllPomMetadataWarnings() in kotlin-test publication
2021-11-20 10:11:27 +03:00
Ilya Goncharov
7aef45d5cf
[JS] Implement strategy with adapterTransformer on global object to mutate adapter of kotlin-test
2021-11-19 21:39:23 +00:00
wrongwrong
6ecb5a1bd3
Fix ReadMe
2021-11-19 14:48:22 +01:00
Roman Artemev
7f27ebc589
[JS IR] Add API to js runtime to throw linkage errors
2021-11-19 01:16:35 +03:00
Anton Bannykh
4e0d91d463
[JS IR] don't pack tests for kolin.test library into the klib.
2021-11-19 00:39:09 +03:00
Anton Bannykh
ee6d3ea281
[JS IR] mark coroutine intrinsics as inline
...
They are de-facto inlined, but their bodies don't get
loaded when using the "no bodies except for inline functions"
deserializtion mode.
2021-11-19 00:39:06 +03:00
Anton Bannykh
b684c2f8d7
Revert "JS IR gradle plugin: don't run IC for the main module"
...
This reverts commit 525c5b886f .
2021-11-19 00:38:48 +03:00
Zac Sweers
7f5eb3f5ff
Fix incorrect kapt classpath error message.
...
The correct value is `kapt.include.compile.classpath`
^KT-47002 Fixed
2021-11-18 16:43:45 +01:00
Ivan Gavrilovic
684273783f
Kotlin Gradle Plugin - clean caches for in-process compilation
...
This is to prevent file handle leaks on Windows. This
commit disposes KotlinCoreEnvironment used during
in-process compilation.
^KT-49772 Fixed
2021-11-18 16:20:10 +01:00
Svyatoslav Kuzmich
f833fc4bcb
[Wasm] Default parameter values for external functions
...
+ import top-level external functions wrapped in lambdas
2021-11-17 19:28:14 +00:00
Yahor Berdnikau
4c3404888a
Set minimal supported Gradle version to 6.7.1.
...
^KT-49733 Fixed
2021-11-17 14:10:24 +00:00
Ilya Goncharov
fb6eb414ad
[Gradle, JS] Fix afterEvaluate not inside task configuration
2021-11-17 12:19:39 +03:00
sebastian.sellmair
bec2f89a07
[Gradle, MPP] Fix 'getCommonizerTarget' for source sets participating in multiple compilations of the same konanTarget
...
The previous implementation would return a 'SharedCommonizerTarget'
containing just a single leaf target. This would trigger the commonizer.
The new implementation will correctly return just a single
LeafCommonizerTarget instead.
^KT-49735 Verification Pending
2021-11-16 23:07:47 +00:00
konstantin.tskhovrebov
cb37424831
Update K/N to "1.6.20-dev-5356".
2021-11-16 23:10:10 +03:00
Alexander Udalov
850d76f6bf
Remove error on annotated types as arguments to typeOf
...
Instead, document that `KType.annotations` returns an empty list for
types created with `typeOf`. Annotations might be supported in the
future.
#KT-49573 Fixed
#KT-29919
2021-11-16 15:02:50 +01:00
Nikolay Krasko
4dc45a4118
Drop sources and javadoc artifacts for kotlin-test-wasm
...
There's a source and javadoc validation in sonatype that
once *-sources.jar or *-javadoc.jar is found expect main
jar must be present as well.
This doesn't work when instead of jar we publish klib.
2021-11-15 19:54:56 +03:00
Igor Yakovlev
ec9fcce1bc
[WASM] Add hashCode, equals and toString to KClass and KType implementations
2021-11-15 19:53:48 +03:00
Igor Yakovlev
ee7f4c7278
[WASM] Implementation typeOf support
2021-11-15 19:53:48 +03:00
Igor Yakovlev
39a389c49a
[WASM] Implementation qualifiedOrSimpleName
2021-11-15 19:53:47 +03:00
Igor Yakovlev
ce360bb10b
[WASM] Implementation of Class references
2021-11-15 19:53:46 +03:00
sebastian.sellmair
7d56ef1925
[Gradle, MPP] Implement kotlin.mpp.absentAndroidTarget.nowarn flag
...
^KT-41641 Verification Pending
2021-11-15 16:15:18 +00:00
sebastian.sellmair
c56c503426
[Gradle] Implement 'Project.kotlinPropertiesProvider' extension
...
This extension should increase discoverability over the previous
'PropertiesProvider(project)' API
2021-11-15 16:15:17 +00:00
sebastian.sellmair
373dcef45d
[Gradle, MPP] Mention multiplatform in absent android target warning
...
^KT-41641 Verification Pending
2021-11-15 16:15:17 +00:00
sebastian.sellmair
bf04f821d6
[Gradle, MPP] Print warning on absent 'android' targets
...
^KT-41641 Verification Pending
2021-11-15 16:15:16 +00:00
sebastian.sellmair
db21bfe13b
[Gradle, MPP] findAndroidTarget: Return null when missing
...
Prior to this change a 'Collection is empty.' error was reported
when the Android plugin was applied without an Android Kotlin target
being registered.
^KT-41641 Verification Pending
2021-11-15 16:15:16 +00:00
Igor Laevsky
c7cfa97748
[Wasm] Implement Any::hashCode()
2021-11-15 18:26:46 +03:00
Igor Laevsky
9e00a2c5b4
[Wasm] Implement platform random in stdlib
2021-11-15 18:26:45 +03:00
Igor Laevsky
1bdc9edb20
[Wasm] Implement Jasmine adapter for kotlin.test
2021-11-15 18:26:44 +03:00
Igor Chevdar
03d8a3927b
[gradle] Made KotlinToolRunner public to use in K/N build
2021-11-15 12:42:24 +05:00
Svyatoslav Kuzmich
08362e8b38
[Wasm] Support defineExternally
2021-11-12 18:44:46 +03:00
Andrey Uskov
9826984c4a
Report flag use-fir in Gradle statistics
...
#KT-49633 Fixed
2021-11-12 18:13:41 +03:00
Andrey Uskov
b5456539aa
More stable reporting of compilation in statistics
2021-11-12 18:13:40 +03:00
Andrey Uskov
2fe337f58a
Fixed flakiness of BuildSessionLoggerTest
2021-11-12 18:13:39 +03:00
Igor Chevdar
b474b570a4
[K/N][gradle] Supported friend modules for two stage compilation
...
Fixes https://youtrack.jetbrains.com/issue/KT-49248
2021-11-12 17:40:26 +05:00