Skip to content

Conversation

@sormuras
Copy link
Contributor

@sormuras sormuras commented Jan 21, 2018

Claim com.google.googlejavaformat as Automatic-Module-Name in the JAR manifest.

Details:
http://branchandbound.net/blog/java/2017/12/automatic-module-name/

Module names already claimed by Google:
https://github.com/jodastephen/jpms-module-names/blob/master/generated/modules.md#google

Before name is set:

jar --describe-module --file google-java-format-1.5.jar

google.java.format@1.5 automatic
[...]

After name is set:

jar --describe-module --file google-java-format-1.6-SNAPSHOT.jar

com.google.googlejavaformat@1.6-SNAPSHOT automatic
requires java.base mandated
contains com.google.googlejavaformat
contains com.google.googlejavaformat.java
contains com.google.googlejavaformat.java.filer
contains com.google.googlejavaformat.java.javadoc
main-class com.google.googlejavaformat.java.Main

@sormuras
Copy link
Contributor Author

@ronshapiro / @cushon What about this automatic module name PR?

@ronshapiro
Copy link
Contributor

LGTM. I'll wait for Liam before merging it in.

ronshapiro pushed a commit that referenced this pull request Feb 16, 2018
@ronshapiro ronshapiro mentioned this pull request Feb 16, 2018
@eaftan eaftan closed this in #257 Feb 16, 2018
eaftan pushed a commit that referenced this pull request Feb 16, 2018
@sormuras sormuras deleted the automatic-module-name branch February 17, 2018 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants