Skip to content

Commit

Permalink
POM: Mark compile-time dependencies as non-optional.
Browse files Browse the repository at this point in the history
While they are optional when running on the class path, they are
required when running on the module path.

Change-Id: I6816de2b5a44243a4fbd70a0f7fe002b19fe1177
  • Loading branch information
benkard committed Dec 18, 2021
1 parent 9ca2fc2 commit 4d29307
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,34 +74,22 @@
</snapshotRepository>
</distributionManagement>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId>
<version>${errorprone.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<!-- Annotations -->
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId>
<optional>true</optional>
<version>${errorprone.version}</version>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>${jetbrains-annotations.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apiguardian</groupId>
<artifactId>apiguardian-api</artifactId>
<version>${apiguardian.version}</version>
<optional>true</optional>
</dependency>

<!-- Testing -->
Expand Down

0 comments on commit 4d29307

Please sign in to comment.