Skip to content

Commit

Permalink
Add the 'compile' goal for 'compile-java9'
Browse files Browse the repository at this point in the history
google#4314 (comment)

Fixes google#4314

COPYBARA_INTEGRATE_REVIEW=google#4314 from cushon:module 604430d
PiperOrigin-RevId: 614276837
  • Loading branch information
cushon authored and Error Prone Team committed Mar 9, 2024
1 parent 0e95364 commit ea5ef6d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions annotations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
</execution>
<execution>
<id>compile-java9</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<source>9</source>
<target>9</target>
Expand All @@ -82,6 +85,9 @@
<Multi-Release>true</Multi-Release>
</manifestEntries>
</archive>
<excludes>
<exclude>/META-INF/versions/9/com/**/*.class</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
Expand Down
1 change: 0 additions & 1 deletion annotations/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/

open module com.google.errorprone.annotation {
requires java.base;
requires java.compiler;

exports com.google.errorprone.annotations;
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@
<bnd><![CDATA[
Bundle-SymbolicName: com.google.$<replacestring;$<replacestring;${project.artifactId};^error_prone;errorprone>;_;.>
Automatic-Module-Name: $<Bundle-SymbolicName>
-exportcontents: com.google.errorprone*
-exportcontents: com.google.errorprone*,!META-INF.*
-noextraheaders: true
-removeheaders: Private-Package
-fixupmessages: ^Classes found in the wrong directory: .*
]]></bnd>
</configuration>
</execution>
Expand Down

0 comments on commit ea5ef6d

Please sign in to comment.