Commit Graph

95026 Commits

Author SHA1 Message Date
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
Ilya Goncharov f450b9397e [Gradle, JS] Fix testData for kotlin-gradle-plugin-api 2022-09-21 10:58:27 +00:00
Ilya Goncharov 912066aadf [Gradle, JS] Fix for output file 2022-09-21 10:58:27 +00:00
Ilya Goncharov b721b3e13c [Gradle, JS] dependsOn for test tasks 2022-09-21 10:58:26 +00:00
Ilya Goncharov e7f2085aa9 [Gradle, JS] platformType as internal 2022-09-21 10:58:26 +00:00
Ilya Goncharov 4906f17d09 [JS IR] Fix js compiler arguments 2022-09-21 10:58:25 +00:00
Ilya Goncharov 3d1db387f7 [Gradle, JS] Extension for outputFileProperty 2022-09-21 10:58:25 +00:00
Ilya Goncharov cab79d950f [Gradle, JS] outputName -> moduleName 2022-09-21 10:58:25 +00:00
Ilya Goncharov 55731f27a4 [Gradle, JS] Adopt changes about compilerOptions 2022-09-21 10:58:24 +00:00
Ilya Goncharov 4eedfe7f58 [Gradle, JS] Fix compilation after rebase 2022-09-21 10:58:24 +00:00
Ilya Goncharov 0efb8a64bf [Gradle, JS] Add fileTree for kotlin2jsCompile 2022-09-21 10:58:23 +00:00
Ilya Goncharov 0bcb823550 [Gradle, JS] Rebase on master 2022-09-21 10:58:23 +00:00
Ilya Goncharov 8d90173ea5 [JS, IR] Deprecated outputFile 2022-09-21 10:58:23 +00:00
Ilya Goncharov 71ab99c47f [JS, IR] Fix wasm tests 2022-09-21 10:58:22 +00:00
Ilya Goncharov 9685b0a86b [JS, IR] Wasm with outputDir and outputName 2022-09-21 10:58:21 +00:00
Ilya Goncharov f320efedd3 [JS, Tests] Migrate IR tests onto outputDir and outputName 2022-09-21 10:58:21 +00:00
Ilya Goncharov eeb0520b48 [Gradle, JS] Migrate kotlin-stdlib-js 2022-09-21 10:58:21 +00:00
Ilya Goncharov eed994f1fe [Gradle, JS] Correct require relative path 2022-09-21 10:58:20 +00:00
Ilya Goncharov 642fae1a5b [Gradle, JS] Migrate onto destinationDirectory and outputName 2022-09-21 10:58:20 +00:00
Ilya Kirillov cd5b9d6356 [Analysis API] do not generate standalone tests which use compiler plugin 2022-09-21 09:44:24 +02:00
Ilya Kirillov 2387b31b9b [Analysis API] add kotlin-stdlib to Analysis API tests via KotlinStandardLibrariesPathProvider
to customize it outside kotlin repo
2022-09-21 09:44:24 +02:00
Ilya Kirillov a74b5dbcad Add annotations-jar to compiler tests via KotlinStandardLibrariesPathProvider
to customize it outside kotlin repo
2022-09-21 09:44:24 +02:00
Ilya Kirillov 51cece4741 Publish Analysis API test framework 2022-09-21 09:44:23 +02:00
Ilya Goncharov d203dc35bf [JS IR] Add to IR keep possibility similar to legacy-dce one
It helps to:

- keep declarations even if they are not reachable and not exported
- not minify names of not exported declarations

Compiler argument: -Xir-keep=A,B

Can be used for top-level declarations or for member

^KT-54118 fixed
2022-09-20 16:06:17 +00:00
nataliya.valtman 4863e5d47b Store errors into separate files 2022-09-20 14:11:25 +02:00