Commit Graph

95050 Commits

Author SHA1 Message Date
Alexander Likhachev 9d8df8eb5e [Gradle] Introduce ConfigurationTimePropertiesAccessor
#KT-53823 In Progress
2022-09-22 17:04:23 +00:00
Yahor Berdnikau ad44ee8904 Fix syncing languageSettings for KotlinNativeLink task
Task registration may happen within another configuration call leading
to prohibited 'afterEvaluate {}' block error. Fixed it by moving out
sync to separate configuration call.

^KT-54113 Fixed
2022-09-22 17:03:38 +00:00
Artem Kobzar d7ef5efa6a [K/JS] Remove ligature that breaks map files comparison pipeline (hack for KT-50589 issue) 2022-09-22 16:03:14 +00:00
Artem Kobzar 2081dc327c [K/JS] Trick-out the D8 bug related to a long path on Windows 2022-09-22 15:22:00 +00:00
Vsevolod Tolstopyatov 137e5d67d0 Scrupulously document OptIn-related annotations
#KT-49425

Merge-request: KT-MR-7094
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com>
2022-09-22 13:57:45 +00:00
Artem Kobzar 39a44d4ccb [K/JS] Add lateinit as exception for simple properties ^KT-53968 Fixed 2022-09-22 13:50:51 +00:00
Vyacheslav Gerasimov ec09d3c1e4 Build: Prioritize gradle.integration.tests.split.tasks property
To allow disabling task splitting on TeamCity
2022-09-22 15:49:24 +02:00
Pavel Mikhailovskii f8fd23e373 KT-8575 Add tests and disable reflection for Java synthetic property references 2022-09-22 13:33:28 +00:00
Igor Yakovlev 5116bbc440 [WASM] Fix invalid element visiting for external declarations 2022-09-22 11:54:04 +02:00
Igor Yakovlev b4ebc1dca4 [WASM] Add missing implicit casts 2022-09-22 11:54:04 +02:00
Igor Yakovlev 081cd4a4a8 [WASM] Support nullable types for external functions 2022-09-22 11:54:04 +02:00
Aleksei.Cherepanov dc57ccdf76 Clean up default additional compiler argument
Remove `-version` from additional compiler arguments of newly created facets

#KTIJ-22490 Fixed
2022-09-22 09:14:08 +00:00
Svyatoslav Scherbina 38f2b20e1a Native: add more tests for Swift Set and Dictionary used in Kotlin 2022-09-22 07:37:44 +00:00
Svyatoslav Scherbina 39c73e25a4 Native: improve thread state switches for NSSet/NSDictionary adapters
^KT-54119
2022-09-22 07:37:44 +00:00
Nikolay Krasko 1630386712 Move to JDK_X_Y variables 2022-09-21 22:53:19 +00:00
Nikolay Krasko 2df9203336 Add ability to configure jdk with two backup properties 2022-09-21 22:53:18 +00:00
Nikolay Krasko 87c2e5145c Move to JDK_9_0 in maven project 2022-09-21 22:53:18 +00:00
Nikolay Krasko 7c11ddf7ac Move to JDK_1_7 in maven project 2022-09-21 22:53:18 +00:00
Nikolay Krasko 930c63c324 Move to JDK_1_6 in maven project 2022-09-21 22:53:18 +00:00
Nikolay Krasko e92c7983d0 Move to JDK_1_8 in maven project 2022-09-21 22:53:17 +00:00
Ilmir Usmanov 569e72c34e Minor. Do not check for specific bytecode in test 2022-09-21 16:42:15 +00:00
Xin Wang 0eadf35132 Inline: Fix operand stack type verify error
This is a proposal to fix KT-49364.
Operand stack type verification happens before `checkcast`
is executed. When we implicitly cast an inline class
to a non-inline type, if type of stack value is not subtype
of the target, then coercing is necessary.
2022-09-21 16:42:14 +00:00
Yahor Berdnikau cc5f65be1e Update KGP-api binary compatibility with removed JvmTarget.JVM_1_6 2022-09-21 17:01:35 +02:00
Sebastian Sellmair c641ba5397 [Gradle][MPP] Rename isSharedNative function to isNativeSourceSet
^KT-48135 Verification Pending
2022-09-21 14:33:11 +00:00
Sebastian Sellmair 4ddd23b09f [Gradle][MPP] Add very small doc on KotlinProjectStructureMetadata
^KT-48135 Verification Pending
2022-09-21 14:33:11 +00:00
Sebastian Sellmair 929750011a [Gradle][MPP] Extract CompositeMetadataArtifact.ArtifactContent
... into its own top level entity called CompositeMetadataArtifactContent.

This commit also refines naming os the APIs and provides
additional documentation.

^KT-48135 Verification Pending
2022-09-21 14:33:11 +00:00
Sebastian Sellmair 4935026b2c [Gradle][MPP] transformMetadataLibraries.kt Fix comment
^KT-48135 Verification Pending
2022-09-21 14:33:10 +00:00
Sebastian Sellmair 59f4d76bcf [Gradle][MPP] CompositeMetadataArtifact: Remove Int checksum (keep String)
^KT-48135 Verification Pending
2022-09-21 14:33:10 +00:00
Sebastian Sellmair 9f01217050 [Gradle][MPP] Add comment for CInteropMetadataDependencyTransformationTask.OutputLibraryFilesDiscovery.Precise
^KT-48135 Verification Pending
2022-09-21 14:33:10 +00:00
Sebastian Sellmair 386c2f8015 [Gradle][MPP] Fix KotlinProjectStructureMetadataSerializationTest.sampleMetadata
This object did not list 'commonMain' and put non-idiomatic
data into 'sourceSetNamesByVariantName'

^KT-48135 Verification Pending
2022-09-21 14:33:09 +00:00
Sebastian Sellmair 59d0bd5e39 [Gradle][MPP] Rename CompositeMetadataArtifact.ArtifactHandle to ArtifactContent
^KT-48135 Verification Pending
2022-09-21 14:33:09 +00:00
Sebastian Sellmair 75cc378cac [Gradle][MPP] Include artifact checksum string in transformed metadata klib file names
This can be used for locally published snapshot libraries.
Without it, the import will see that there is already
a library with same coordinates in .gradle/kotlin/... and
therefore skip extracting it.

Including the 32 checksum at the end of the file will ensure,
that if a different artifact is the source of the metadata,
then a new file will be created.

This approach is generally more desirable than cleaning the
.gradle/kotlin directory to avoid the IDE of re-indexing
after import.

^KT-48135 Verification Pending
2022-09-21 14:33:09 +00:00
Sebastian Sellmair f1aad4aa4e [Gradle][MPP] Rename TransformKotlinGranularMetadataForFragment to GradleKpmMetadataDependencyTransformationTask
This, hopefully, finally makes my life easier.

^KT-48135 Verification Pending
2022-09-21 14:33:08 +00:00
Sebastian Sellmair 27f7150d48 [Gradle][MPP] Rename TransformKotlinGranularMetadata to MetadataDependencyTransformationTask
This, hopefully, finally makes my life easier.

^KT-48135 Verification Pending
2022-09-21 14:33:08 +00:00
Sebastian Sellmair a2229758d7 [Gradle][MPP] Rename JarMetadataProvider to ArtifactMetadataProvider
^KT-48135 Verification Pending
2022-09-21 14:33:07 +00:00
Sebastian Sellmair 3cee2ca409 [Gradle][MPP] Flatten transformed metadata library directories
The main purpose of this commit is to fix KT-48135 and to
de-duplicate libraries for the IDE whilst also minimizing
zip operations during IDE import.

However, with this commit the metadata library directories layout
also gets changed for CLI builds. The overall layout
is now more shared with cinterops and the IDE.

^KT-48135 Verification Pending
2022-09-21 14:33:06 +00:00
Sebastian Sellmair 7a1f4304d0 [Gradle][MPP] Implement CompositeMetadataArtifact
^KT-48135 WIP
2022-09-21 14:33:06 +00:00
Sebastian Sellmair 244094501b [Gradle][MPP] Fix isSharedNative condition in getHostSpecificSourceSets
^KT-48135 WIP
2022-09-21 14:33:06 +00:00
Sebastian Sellmair 74594c05ca [Gradle][MPP] zipUtils: Add ZipFile.copyPartially
^KT-48135 WIP
2022-09-21 14:33:05 +00:00
Sebastian Sellmair 2391720999 [Gradle][MPP] KotlinProjectStructureMetadata: Add .sourceSetNames property
^KT-48135 WIP
2022-09-21 14:33:05 +00:00
Dmitriy Dolovov c5d4619ebc [IR] Restore old Psi2IrTranslator constructor for older IDEs
^KT-54115
^KT-53649
2022-09-21 16:13:21 +02:00
Artem Kobzar 443f7d1048 [K/JS] Do not run generate-file-tests task if the source was not changed 2022-09-21 13:53:43 +00:00
Sebastian Sellmair 5580e4f06c [Gradle] KotlinPlugin.kt: Convert minimalSupportedAgpVersion into data class representation
^KT-54033 Verification Pending
2022-09-21 13:43:46 +00:00
Sebastian Sellmair f286588e4c [Gradle] Setup kotlin sources directly on AndroidSourceSet for AGP >= 7.0
^KT-54033 Verification Pending
2022-09-21 13:43:45 +00:00
Sebastian Sellmair 958c7e72da [Gradle] Replace KotlinPlugin.kt#androidPluginVersion with AndroidGradlePluginVersion
^KT-54033 WIP
2022-09-21 13:43:45 +00:00
Sebastian Sellmair 7d5b3d3628 [Gradle] KotlinMultiplatformAndroidGradlePluginCompatibilityHealthCheck: Use AndroidGradlePluginVersion tool
^KT-54033 WIP
2022-09-21 13:43:45 +00:00
Sebastian Sellmair 32f86d4672 [Gradle] Implement AndroidGradlePluginVersion util
^KT-54033 WIP
2022-09-21 13:43:44 +00:00
Ilya Goncharov 3a39a0d468 [Gradle, JS] Karma kotlin reporter initialize browser if it was not initialized
^KT-54132
2022-09-21 13:15:27 +00:00
Yahor Berdnikau fbc155ba17 Restore 'target' input for KotlinNativeLink task
^KT-54112 Fixed
2022-09-21 15:13:46 +02:00
Yahor Berdnikau 136ccbd328 Remove JvmTarget.JVM_1_6 from Gradle DSL
This target is not available inside compiler and left for IDE
compatibility.

^KT-54103 Fixed
2022-09-21 13:34:26 +02:00