Skip to content

Android: Attach sources automatically (IDE enhancements feature) #6634

Closed

Description

@vaslabs

Right now, the android aar libs that we transform, have sources but are not carried to the intelliJ settings.

For example:

Image

After manual attachement

Image Image

Need to keep the sources , so we'll either need an extra AndroidModule task that idea/ job will use or copy the sources in the transform step

@souvlakias

Activity

  1. changed the title [-]Android: Attach sources automatically[/-] [+]Android: Attach sources automatically (IDE enhancements feature)[/+] on Jan 23, 2026
  2. souvlakias commented on Feb 17, 2026

    @souvlakias
    Contributor

    Bsp and GenIdea do discover the sources jars through
    bspBuildTargetDependencySources

    Image

    and an unused externalSources

    Image

    Im not sure yet how the linking with the classes jars should be done

  3. vaslabs commented on Feb 17, 2026

    @vaslabs
    ContributorAuthor

    Bsp and GenIdea do discover the sources jars through bspBuildTargetDependencySources

    Image and an unused [externalSources](https://github.com/com-lihaoyi/mill/blob/main/libs/javalib/src/mill/javalib/idea/GenIdeaModule.scala#L72) Image Im not sure yet how the linking with the classes jars should be done

    I think for bsp the first thing to try is to make it use the original AAR paths instead of the transformed jars, see what happens then

  4. added a commit that references this issue on Mar 4, 2026
  5. added this to the 1.1.3 milestone on Mar 5, 2026
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

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions