Skip to content

Provide Java Module name  #605

Open
Open

Description

@sormuras

Truth doesn't provide an AUTOMATIC-MODULE-NAME, like com.google.truth, via its manifest. PresentModule.java yields:

java PresentModule.java com.google.truth:truth:1.0
path = truth-1.0.jar
name = truth
mode = automatic
automatic name source = FILENAME
api = 1 package(s)

At least, provide a more stable module name via Truth's manifest.

Better, provide a compiled module descriptor.

See also google/error-prone#1116 and linked friends.

Activity

  1. added
    P3
    type=other
    on Jul 11, 2019
  2. elharo commented on Jul 16, 2019

    @elharo
    Contributor

    Adding the felix plugin to pom.xml should take care of this.

  3. carl-mastrangelo commented on May 28, 2021

    @carl-mastrangelo

    Friendly ping on this.

  4. cpovirk commented on May 29, 2021

    @cpovirk
    Member

    I think I have been assuming that this doesn't help a ton until we fix the split package (#746). Do you think it would help even before that? The split-package thing might take a little effort, but this smaller change sounds easy enough.

  5. carl-mastrangelo commented on May 29, 2021

    @carl-mastrangelo

    The split-package thing might take a little effort, but this smaller change sounds easy enough.

    @cpovirk I haven't seen much info on the long term consequences of adding this, but several other libraries (like Junit) have done something to ease module support. If there would be long term pain to doing this, (i.e. can't add module-info in the future, mixed ABI classes can't work together), then don't feel pressured to add it.

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

    P3type=other

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions