Skip to content

Commit 21f6869

Browse files
committed
fix: module name → com.google.errorprone.annotations
- fix: name in `module-info.java` for `annotations` module - fix: don't emit `Automatic-Module-Name` in `annotations` module - chore: preserve all other aspects of OSGi and JAR builds Relates-To: #4311 Signed-off-by: Sam Gammon <[email protected]>
1 parent ea5ef6d commit 21f6869

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

annotations/pom.xml

+26
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,32 @@
9090
</excludes>
9191
</configuration>
9292
</plugin>
93+
<plugin>
94+
<groupId>biz.aQute.bnd</groupId>
95+
<artifactId>bnd-maven-plugin</artifactId>
96+
<version>6.4.0</version>
97+
<executions>
98+
<execution>
99+
<id>generate-OSGi-manifest</id>
100+
<phase>none</phase>
101+
</execution>
102+
<execution>
103+
<id>generate-OSGi-manifest-annotations</id>
104+
<goals>
105+
<goal>bnd-process</goal>
106+
</goals>
107+
<configuration>
108+
<bnd><![CDATA[
109+
Bundle-SymbolicName: com.google.errorprone.annotations
110+
-exportcontents: com.google.errorprone*,!META-INF.*
111+
-noextraheaders: true
112+
-removeheaders: Private-Package
113+
-fixupmessages: ^Classes found in the wrong directory: .*
114+
]]></bnd>
115+
</configuration>
116+
</execution>
117+
</executions>
118+
</plugin>
93119
</plugins>
94120
</build>
95121
</project>

annotations/src/main/java/module-info.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
open module com.google.errorprone.annotation {
17+
open module com.google.errorprone.annotations {
1818
requires java.compiler;
1919

2020
exports com.google.errorprone.annotations;

pom.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,9 @@
150150
<bnd><![CDATA[
151151
Bundle-SymbolicName: com.google.$<replacestring;$<replacestring;${project.artifactId};^error_prone;errorprone>;_;.>
152152
Automatic-Module-Name: $<Bundle-SymbolicName>
153-
-exportcontents: com.google.errorprone*,!META-INF.*
153+
-exportcontents: com.google.errorprone*
154154
-noextraheaders: true
155155
-removeheaders: Private-Package
156-
-fixupmessages: ^Classes found in the wrong directory: .*
157156
]]></bnd>
158157
</configuration>
159158
</execution>

0 commit comments

Comments
 (0)