Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify the multiplatform configuration #3246

Merged
merged 3 commits into from
May 20, 2022

Conversation

martinbonnin
Copy link
Contributor

@martinbonnin martinbonnin commented May 19, 2022

With HMPP, KotlinMetadataTarget now has compilations for "shared" sourceSets. Our setup ended up with 2 tasks because we had an intermediate appleMain source set. This PR hardcodes "commonMain" because well, I don't think the generated sources can end up in another sourceSet but maybe there's more to it?

":runtime:internal:publishJvmPublicationToInstallLocallyRepository",
":runtime:internal:publishJsPublicationToInstallLocallyRepository",
":runtime:shared:publishKotlinMultiplatformPublicationToInstallLocallyRepository",
":runtime:shared:publishIosArm64PublicationToInstallLocallyRepository",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes in this file are unrelated and were required for some Gradle tests to pass on my mac. I'm assuming they pass on CI because they're run on linux and therefore the task are disabled.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh well.. publishIosArm64PublicationToInstallLocallyRepository fails on linux. I reverted this part. Will look into it in a separate PR

@AlecKazakova
Copy link
Collaborator

yea for now I think we just want stuff to go into commonMain and not worry about other source sets. We were essentially hardcoding it to commonMain anyways but in a more roundabout way so at least this is more explicit

@AlecKazakova AlecKazakova merged commit e4bb68f into cashapp:master May 20, 2022
@antohaby
Copy link

antohaby commented Nov 2, 2022

Hey! Would it be possible to cherry-pick these changes to 1.5.X ?
In Kotlin Gradle Plugin 1.8 there is breaking change in compilation.allKotlinSourceSets in 1.8 it will return more data (and more correct) than before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants