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

Multiplatform protokt - gradle task dependencies #206

Open
dronda-t opened this issue Oct 22, 2023 · 0 comments
Open

Multiplatform protokt - gradle task dependencies #206

dronda-t opened this issue Oct 22, 2023 · 0 comments

Comments

@dronda-t
Copy link

The following gradle config fails for me without adding explicit task dependencies:
On gradle 8.4

plugins {
    kotlin("multiplatform") version "1.9.10"
    id("com.toasttab.protokt") version "1.0.0-alpha.10"
}
repositories {
    mavenCentral()
}

kotlin {
    jvmToolchain(17)
    jvm {
        withJava()
    }

    js(IR) {
        browser()
    }
}

If I add:

tasks.named("allMetadataJar").get().dependsOn("extractProto")
tasks.named("jvmJar").get().dependsOn("extractProto")
tasks.named("jsJar").get().dependsOn("extractProto")

it passes.

I believe protokt should be able to handle this internally. I'm not sure if it's the case here, but I have solved a similar problem by adding the output providers to the kotlin source set.

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

No branches or pull requests

1 participant