From ea5ef6dd29022683eced044a2b0b3fa91d8b3200 Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Sat, 9 Mar 2024 14:12:19 -0800 Subject: [PATCH] Add the 'compile' goal for 'compile-java9' https://github.com/google/error-prone/pull/4314#issuecomment-1986961609 Fixes #4314 COPYBARA_INTEGRATE_REVIEW=https://github.com/google/error-prone/pull/4314 from cushon:module 604430dfc2cb70bf7dba8d1cb27224d3e50869fe PiperOrigin-RevId: 614276837 --- annotations/pom.xml | 6 ++++++ annotations/src/main/java/module-info.java | 1 - pom.xml | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/annotations/pom.xml b/annotations/pom.xml index 39a06275850..e68d412cbc2 100644 --- a/annotations/pom.xml +++ b/annotations/pom.xml @@ -64,6 +64,9 @@ compile-java9 + + compile + 9 9 @@ -82,6 +85,9 @@ true + + /META-INF/versions/9/com/**/*.class + diff --git a/annotations/src/main/java/module-info.java b/annotations/src/main/java/module-info.java index 779f8fe61eb..532f2758a07 100644 --- a/annotations/src/main/java/module-info.java +++ b/annotations/src/main/java/module-info.java @@ -15,7 +15,6 @@ */ open module com.google.errorprone.annotation { - requires java.base; requires java.compiler; exports com.google.errorprone.annotations; diff --git a/pom.xml b/pom.xml index f7cad3c75bd..3dc704b4f83 100644 --- a/pom.xml +++ b/pom.xml @@ -150,9 +150,10 @@ ;_;.> Automatic-Module-Name: $ - -exportcontents: com.google.errorprone* + -exportcontents: com.google.errorprone*,!META-INF.* -noextraheaders: true -removeheaders: Private-Package + -fixupmessages: ^Classes found in the wrong directory: .* ]]>