Skip to content

Commit fc8cbb0

Browse files
authored
deps: Push explicit dependency versioning into the parent pom. Remove explicit versioning to rely on parent or imported BOMs. Remove old lib versions and update explicit lib versions (#1748)
* Updated BOMs, Removed versions for deps now managed by BOM. Updated deps not managed by BOM * Push explicit versioning of hamcrest into the parent. Depend on google-cloud-bom in snippets. Remove explicit versioning where possible * fix pomfile header * Fix snippets to leave tags in place. Use the same version tag for all versions in the parent * Fix accidental newlines * Update pom.xml * Add ignore unused deps to proto lib * Fix unused dep in grpc * un-parent google-cloud-pubsublite-bom from google-cloud-pubsublite-parent since it actually is a child of sdk-platform-java-config * Update samples checkstyle check to run on java-version: 11 to fix version mismatch. Same fix applied in googleapis/java-pubsub#2201 * Updated BOMs, Removed versions for deps now managed by BOM. Updated deps not managed by BOM deps: update googleapis/sdk-platform-java action to v2.47.0 (#1738) deps: update dependency com.google.cloud:google-cloud-pubsub to v1.133.1 (#1736) chore: Update generation configuration at Tue Oct 8 02:28:35 UTC 2024 (#1735) * chore: Update generation configuration at Tue Oct 1 02:30:56 UTC 2024 * chore: Update generation configuration at Wed Oct 2 02:26:57 UTC 2024 * chore: Update generation configuration at Thu Oct 3 02:27:16 UTC 2024 * chore: Update generation configuration at Fri Oct 4 02:27:19 UTC 2024 * chore: Update generation configuration at Sat Oct 5 02:25:46 UTC 2024 * chore: Update generation configuration at Sun Oct 6 02:29:14 UTC 2024 * chore: generate libraries at Sun Oct 6 02:29:34 UTC 2024 * chore: Update generation configuration at Tue Oct 8 02:28:35 UTC 2024 chore(main): release 1.14.4-SNAPSHOT (#1733) :robot: I have created a release *beep* *boop* --- --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). chore(deps): update dependency com.google.cloud:google-cloud-pubsublite to v1.14.3 (#1734) deps: update dependency com.google.cloud:sdk-platform-java-config to v3.37.0 (#1740) chore(main): release 1.14.4 (#1741) * chore(main): release 1.14.4 * chore: generate libraries at Tue Oct 8 19:56:23 UTC 2024 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot <[email protected]> Push explicit versioning of hamcrest into the parent. Depend on google-cloud-bom in snippets. Remove explicit versioning where possible fix pomfile header Fix snippets to leave tags in place. Use the same version tag for all versions in the parent Fix accidental newlines Update pom.xml Add ignore unused deps to proto lib Fix unused dep in grpc un-parent google-cloud-pubsublite-bom from google-cloud-pubsublite-parent since it actually is a child of sdk-platform-java-config Update samples checkstyle check to run on java-version: 11 to fix version mismatch. Same fix applied in googleapis/java-pubsub#2201 * Use errorprone 2.31.0 since 2.32.0 and 2.33.0 break our java 11 build with compiler errors * Fix samples/pom.xml * fix snapshot and snippets pom.xml * Fix bad merge on pom files
1 parent dd849d6 commit fc8cbb0

File tree

12 files changed

+74
-45
lines changed

12 files changed

+74
-45
lines changed

.github/workflows/samples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
- uses: actions/checkout@v4
99
- uses: actions/setup-java@v1
1010
with:
11-
java-version: 8
11+
java-version: 11
1212
- name: Run checkstyle
1313
run: mvn -P lint --quiet --batch-mode checkstyle:check
1414
working-directory: samples

google-cloud-pubsublite-bom/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@
5757
<dependency>
5858
<groupId>com.google.api.grpc</groupId>
5959
<artifactId>grpc-google-cloud-pubsublite-v1</artifactId>
60-
<version>1.14.4</version><!-- {x-version-update:grpc-google-cloud-pubsublite-v1:current} -->
60+
<version>1.14.4</version><!-- {x-version-update:google-cloud-pubsublite:current} -->
6161
</dependency>
6262
<dependency>
6363
<groupId>com.google.api.grpc</groupId>
6464
<artifactId>proto-google-cloud-pubsublite-v1</artifactId>
65-
<version>1.14.4</version><!-- {x-version-update:proto-google-cloud-pubsublite-v1:current} -->
65+
<version>1.14.4</version><!-- {x-version-update:google-cloud-pubsublite:current} -->
6666
</dependency>
6767
</dependencies>
6868
</dependencyManagement>

google-cloud-pubsublite/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
<dependency>
3939
<groupId>com.google.cloud</groupId>
4040
<artifactId>google-cloud-pubsub</artifactId>
41-
<version>1.133.1</version>
4241
</dependency>
4342
<dependency>
4443
<groupId>com.google.api.grpc</groupId>
@@ -110,7 +109,6 @@
110109
<dependency>
111110
<groupId>com.google.flogger</groupId>
112111
<artifactId>flogger-system-backend</artifactId>
113-
<version>0.8</version>
114112
<scope>runtime</scope>
115113
</dependency>
116114

@@ -120,11 +118,6 @@
120118
<artifactId>truth</artifactId>
121119
<scope>test</scope>
122120
</dependency>
123-
<dependency>
124-
<groupId>com.google.truth.extensions</groupId>
125-
<artifactId>truth-java8-extension</artifactId>
126-
<scope>test</scope>
127-
</dependency>
128121
<dependency>
129122
<groupId>org.mockito</groupId>
130123
<artifactId>mockito-core</artifactId>
@@ -138,7 +131,6 @@
138131
<dependency>
139132
<groupId>org.hamcrest</groupId>
140133
<artifactId>hamcrest</artifactId>
141-
<version>3.0</version>
142134
<scope>test</scope>
143135
</dependency>
144136
<dependency>
@@ -175,7 +167,6 @@
175167
<plugin>
176168
<groupId>org.apache.maven.plugins</groupId>
177169
<artifactId>maven-enforcer-plugin</artifactId>
178-
<version>3.5.0</version>
179170
<executions>
180171
<execution>
181172
<id>enforce</id>

google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/internal/ApiExceptionMatcher.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package com.google.cloud.pubsublite.internal;
1818

1919
import static com.google.common.truth.Truth.assertThat;
20-
import static com.google.common.truth.Truth8.assertThat;
2120
import static org.junit.Assert.assertThrows;
2221

2322
import com.google.api.gax.rpc.StatusCode.Code;

google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/internal/BufferingPullSubscriberTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package com.google.cloud.pubsublite.internal;
1818

1919
import static com.google.common.truth.Truth.assertThat;
20-
import static com.google.common.truth.Truth8.assertThat;
2120
import static org.junit.Assert.assertThrows;
2221
import static org.mockito.ArgumentMatchers.any;
2322
import static org.mockito.Mockito.doAnswer;

google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/internal/CursorClientImplTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import static com.google.cloud.pubsublite.internal.ApiExceptionMatcher.assertFutureThrowsCode;
2020
import static com.google.common.truth.Truth.assertThat;
21-
import static com.google.common.truth.Truth8.assertThat;
2221
import static org.mockito.Mockito.verify;
2322
import static org.mockito.Mockito.when;
2423
import static org.mockito.MockitoAnnotations.initMocks;

google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/internal/TopicStatsClientImplTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import static com.google.cloud.pubsublite.internal.ApiExceptionMatcher.assertFutureThrowsCode;
2020
import static com.google.common.truth.Truth.assertThat;
21-
import static com.google.common.truth.Truth8.assertThat;
2221
import static org.mockito.Mockito.verify;
2322
import static org.mockito.Mockito.when;
2423
import static org.mockito.MockitoAnnotations.initMocks;

google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/internal/wire/CommitStateTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package com.google.cloud.pubsublite.internal.wire;
1818

1919
import static com.google.common.truth.Truth.assertThat;
20-
import static com.google.common.truth.Truth8.assertThat;
2120
import static org.junit.Assert.assertThrows;
2221

2322
import com.google.api.core.ApiFuture;

google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/internal/wire/FlowControlBatcherTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package com.google.cloud.pubsublite.internal.wire;
1818

1919
import static com.google.common.truth.Truth.assertThat;
20-
import static com.google.common.truth.Truth8.assertThat;
2120

2221
import com.google.cloud.pubsublite.internal.CheckedApiException;
2322
import com.google.cloud.pubsublite.proto.Cursor;

grpc-google-cloud-pubsublite-v1/pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,21 @@
4444
<artifactId>proto-google-common-protos</artifactId>
4545
</dependency>
4646
</dependencies>
47+
<build>
48+
<pluginManagement>
49+
<plugins>
50+
<plugin>
51+
<groupId>org.apache.maven.plugins</groupId>
52+
<artifactId>maven-dependency-plugin</artifactId>
53+
<configuration>
54+
<ignoredUnusedDeclaredDependencies>
55+
<ignoredUnusedDeclaredDependency>com.google.flogger:google-extensions</ignoredUnusedDeclaredDependency>
56+
</ignoredUnusedDeclaredDependencies>
57+
</configuration>
58+
</plugin>
59+
</plugins>
60+
</pluginManagement>
61+
</build>
4762
<properties>
4863
<checkstyle.skip>true</checkstyle.skip>
4964
</properties>

0 commit comments

Comments
 (0)