Skip to content

Commit

Permalink
Make jsr305 dependency optional (#140)
Browse files Browse the repository at this point in the history
* Make jsr305 dependency optional

* minor formatting adjustments

---------

Co-authored-by: Johannes Schneider <johannes-schneider_1995@web.de>
  • Loading branch information
newtork and Johannes-Schneider authored Jun 30, 2023
1 parent 9d7d465 commit e3eed51
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 28 deletions.
4 changes: 0 additions & 4 deletions api-parent/access-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
<groupId>com.sap.cloud.environment.servicebinding.api</groupId>
<artifactId>java-core-api</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions api-parent/consumption-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
<groupId>com.sap.cloud.environment.servicebinding.api</groupId>
<artifactId>java-core-api</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</dependency>

<!-- Scope: Test -->
<dependency>
Expand Down
5 changes: 0 additions & 5 deletions api-parent/core-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
</properties>

<dependencies>
<!-- Scope: Compile -->
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</dependency>

<!-- Scope: Test -->
<dependency>
Expand Down
6 changes: 0 additions & 6 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@

<properties>
<cloud-environment.version>0.6.0</cloud-environment.version>
<jsr305.version>3.0.2</jsr305.version>
<org.json.version>20230618</org.json.version>
<junit-jupiter.version>5.9.3</junit-jupiter.version>
<assertj-core.version>3.24.2</assertj-core.version>
Expand All @@ -65,11 +64,6 @@
</dependency>

<!-- Scope: Compile -->
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>${jsr305.version}</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
Expand Down
14 changes: 13 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>

<jsr305.version>3.0.2</jsr305.version>
<slf4j-simple.version>2.0.7</slf4j-simple.version>

<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
Expand Down Expand Up @@ -103,6 +104,17 @@
</dependencies>
</dependencyManagement>

<dependencies>
<!-- Scope: Compile -->
<!-- for @Nonnull and @Nullable annotations, not required transitively -->
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>${jsr305.version}</version>
<optional>true</optional>
</dependency>
</dependencies>

<build>
<resources>
<resource>
Expand Down Expand Up @@ -484,4 +496,4 @@
</build>
</profile>
</profiles>
</project>
</project>
4 changes: 0 additions & 4 deletions sap-service-operator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
<groupId>com.sap.cloud.environment.servicebinding.api</groupId>
<artifactId>java-access-api</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions sap-vcap-services/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
<groupId>com.sap.cloud.environment.servicebinding.api</groupId>
<artifactId>java-access-api</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
Expand Down

0 comments on commit e3eed51

Please sign in to comment.