diff options
author | cpovirk <cpovirk@google.com> | 2019-10-04 08:37:09 -0700 |
---|---|---|
committer | Chris Povirk <beigetangerine@gmail.com> | 2019-10-04 12:15:06 -0400 |
commit | 61256c32781cf50c7bef534da7adf2d936171aa1 (patch) | |
tree | c8b6c920f10be8c7dbd3c5d9c52522a05884db19 /service | |
parent | d1ec8e84143f4e1b10dfca9c857cc9c98c424468 (diff) | |
download | auto-61256c32781cf50c7bef534da7adf2d936171aa1.tar.gz |
Set an Automatic-Module-Name.
This makes it practical to use from code that uses modules.
Compare to Guava:
https://github.com/google/guava/blob/5496c37d4d904869297c2ced1f0d20e6f1507eaa/guava/pom.xml#L60
https://github.com/google/guava/issues/2920
RELNOTES=AutoService: Set an Automatic-Module-Name.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=272882826
Diffstat (limited to 'service')
-rw-r--r-- | service/annotations/pom.xml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/service/annotations/pom.xml b/service/annotations/pom.xml index dbd82d6a..e84147d2 100644 --- a/service/annotations/pom.xml +++ b/service/annotations/pom.xml @@ -43,11 +43,16 @@ <build> <plugins> <plugin> - <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <manifestEntries> + <Automatic-Module-Name>com.google.auto.service</Automatic-Module-Name> + </manifestEntries> + </archive> + </configuration> </plugin> <plugin> - <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <!-- disable processing because the definition in META-INF/services breaks javac --> |