Skip to content

Gradle plugin: feed PythonStubsTask output to toolchain's typedpythonStubs configuration #27

Closed

Description

@b-re-w

What

When toolchain's plugin is applied (it creates the typedpythonStubs configuration), python-multiplatform-gradle-plugin adds project.files(<PythonStubsTask output provider>) to it. The task dependency travels with the files, so the type check always sees the current stubs and can never quietly run without them because a path moved.

Why

TypedPython 1b (#20, toolchain issue): the check must see Kotlin-side types through the generated .pyi. The leader required explicit wiring instead of the build/generated/pythonStubs/<sourceSet>/ path convention.

Done when

A plugin test: with the typedpythonStubs configuration present, its files include the stubs task output and resolving them runs the stubs task. With the configuration absent, nothing happens and no error is raised.

Activity

  1. b-re-w commented on Oct 3, 2026

    @b-re-w
    MemberAuthor

    Landed in develop via #50 (coordinator verification after merging develop: plugin 235/0, desktopTest 578/0, ksp artifact 35/0, app 70/0, compose 111/0, androidNative OK).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions