Skip to content

Commit

Permalink
fixup! self-review
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Gammon <[email protected]>
  • Loading branch information
sgammon committed Feb 6, 2025
1 parent d0c4b65 commit 197822b
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 27 deletions.
12 changes: 1 addition & 11 deletions futures/failureaccess/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>failureaccess</artifactId>
<version>1.0.3-jpms</version>
<version>1.0.3</version>
<packaging>jar</packaging>
<name>Guava InternalFutureFailureAccess and InternalFutures</name>
<description>
Expand All @@ -26,16 +26,6 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<source>1.8</source>
<target>1.8</target>
<excludes>
<exclude>module-info.java</exclude>
</excludes>
</configuration>
</execution>
<execution>
<id>compile-java9</id>
<goals>
Expand Down
26 changes: 17 additions & 9 deletions guava-gwt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,23 @@
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<excludes>
<!-- Yes, we want to exclude ForceGuavaCompilation 4 times: -->
<!-- (And we might as well exclude DummyJavadocClass 3 times (though it would be harmless to include).) -->
<!-- 1. Don't compile it (since that requires a *non-test* dep on gwt-user. -->
<exclude>**/ForceGuavaCompilation*</exclude>
<exclude>**/DummyJavadocClass*</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>default-compile</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<excludes>
<!-- Yes, we want to exclude ForceGuavaCompilation 4 times: -->
<!-- (And we might as well exclude DummyJavadocClass 3 times (though it would be harmless to include).) -->
<!-- 1. Don't compile it (since that requires a *non-test* dep on gwt-user. -->
<exclude>**/ForceGuavaCompilation*</exclude>
<exclude>**/DummyJavadocClass*</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
Expand Down
5 changes: 0 additions & 5 deletions guava/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,6 @@
<execution>
<id>default-compile</id>
<configuration>
<source>1.8</source>
<target>1.8</target>
<excludes>
<exclude>module-info.java</exclude>
</excludes>
<compilerArgs combine.children="append" combine.self="append">
<arg>-XDignore.symbol.file</arg>
</compilerArgs>
Expand Down
23 changes: 21 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<jspecify.version>1.0.0</jspecify.version>
<errorprone.version>2.36.0</errorprone.version>
<j2objc.version>3.0.0</j2objc.version>
<failureaccess.version>1.0.2</failureaccess.version>
<failureaccess.version>1.0.3</failureaccess.version>
<javac.version>9+181-r4173-1</javac.version>
<!-- Javadoc is pinned to the latest LTS, otherwise there are doc redirect warnings. -->
<javadoc.specification.version>21</javadoc.specification.version>
Expand Down Expand Up @@ -95,6 +95,7 @@
<module>guava-gwt</module>
<module>guava-testlib</module>
<module>guava-tests</module>
<module>futures/failureaccess</module>
</modules>
<build>
<!-- Handle where Guava deviates from Maven defaults -->
Expand Down Expand Up @@ -182,7 +183,7 @@
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg>
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
<arg>-Xlint:-removal,-options</arg>
<arg>-Xlint:-options</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
Expand All @@ -194,6 +195,19 @@
<!-- Fork because we need args like add-exports. (But see the TODO above about .mvn/jvm.config.) -->
<fork>true</fork>
</configuration>
<executions>
<execution>
<id>default-compile</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<excludes>
<exclude>module-info.java</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
Expand All @@ -214,6 +228,11 @@
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.0</version>
<configuration>
<excludes>
<exclude>/module-info.class</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
Expand Down

0 comments on commit 197822b

Please sign in to comment.