Ian Botsford
09/30/2022, 8:45 PMIgnat Beresnev
09/30/2022, 8:53 PMIan Botsford
09/30/2022, 8:55 PMIan Botsford
09/30/2022, 8:56 PMIgnat Beresnev
10/04/2022, 2:47 PMIan Botsford
10/04/2022, 2:54 PMIgnat Beresnev
10/04/2022, 3:00 PMVadim Mishenev
10/04/2022, 3:01 PMkotlin.mpp.enableCompatibilityMetadataVariant=true
2. Build the entire project before a Dokka run
3. Run DokkaIan Botsford
10/04/2022, 3:06 PMIan Botsford
10/04/2022, 9:58 PMIgnat Beresnev
10/05/2022, 12:26 AMIan Botsford
10/05/2022, 9:41 PMIan Botsford
10/05/2022, 9:42 PMkotlin.mpp.enableCompatibilityMetadataVariant=true
flag to avoid implicit dependencies between Gradle tasks?Ian Botsford
10/06/2022, 3:12 PMIgnat Beresnev
10/10/2022, 10:58 PMIan Botsford
10/10/2022, 11:13 PMIgnat Beresnev
11/17/2022, 3:59 AMIan Botsford
01/12/2023, 5:52 PMIgnat Beresnev
01/13/2023, 3:52 PMIgnat Beresnev
01/13/2023, 3:53 PMIan Botsford
01/13/2023, 5:10 PMIan Botsford
01/13/2023, 5:10 PMAnton Lakotka [JB]
01/13/2023, 5:14 PMcommonMain
? And you want to let IDE highlight all such declarations before compilation?Ian Botsford
01/13/2023, 5:15 PMAnton Lakotka [JB]
01/13/2023, 5:16 PMIan Botsford
01/13/2023, 5:17 PMIan Botsford
01/13/2023, 5:19 PMAnton Lakotka [JB]
01/14/2023, 11:44 AMval isIdeaActive: Boolean = System.getProperty("idea.active") == "true"
if (isIdeaActive) {
kotlin.linuxX64()
} else {
afterEvaluate {
val commonMetadata = tasks.named("compileCommonMainKotlinMetadata") {
enabled = true
}
}
}
It should set up linuxX64
target to trick IDEA that commonMain
is truly common.
But on CLI side (when idea is not active), just enable compileCommonMainKotlinMetadata
task that will ensure that your commonMain is truly common.
You can also get rid of kotlin.mpp.enableCompatibilityMetadataVariant=true
flag in such case.
Let me know if it helps for you.Ignat Beresnev
02/14/2023, 9:33 PMIan Botsford
02/14/2023, 9:58 PMMatas Lauzadis
02/15/2023, 6:07 PMkotlin.mpp.enableGranularSourceSetsMetadata
property that's checked in the PR gives a warning because hierarchical structures support is enabled by default since (I believe) Kotlin 1.6.20. Should this logic be checking the kotlin.mpp.hierarchicalStructureSupport
property instead?
If the PR is still correct as-is, do you have any recommendations on what we should modify to get this working again?Ignat Beresnev
02/15/2023, 6:22 PMktor
in particular) were failing with errors like
The following variants were also considered but didn't match the requested attributes:
- Variant 'iosArm32MetadataElements-published' capability net.mamoe.yamlkt:yamlkt:0.12.0 declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
- Incompatible because this component declares a usage of 'kotlin-metadata' of a component and the consumer needed a usage of 'kotlin-api' of a component
- Other compatible attribute:
We consulted the KMP team about what could be done, and the changes introduced in the PR are the result of the discussion. Perhaps, we need to revisit it - I've written it down, we'll have a look
Maybe @Anton Lakotka [JB] has some other ideas about what could be done in the meantime. Alternatively, if you want, I can publish a custom build of Dokka 1.8.10 (once it's released) with the change reverted, but you'll need to add our dev maven repository to use it. This would unblock you and give us more time to investigate and find a proper solutionMatas Lauzadis
02/15/2023, 7:03 PMIgnat Beresnev
03/06/2023, 2:12 PM1.8.10-dev-211
. You can find it in the following repository:
maven("<https://maven.pkg.jetbrains.space/kotlin/p/dokka/dev>")
If you want/can try it out - let us know how it goes, it'd be helpfulMatas Lauzadis
03/06/2023, 2:57 PMIan Botsford
06/21/2023, 5:33 PMIan Botsford
06/21/2023, 5:34 PMIan Botsford
06/27/2023, 10:17 PM