Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Jan 13, 2025
1 parent 444e161 commit af9ae71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import com.google.auth.oauth2.GoogleCredentials;
import com.google.cloud.storage.StorageOptions;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
Expand Down Expand Up @@ -383,7 +382,7 @@ private BlobStorageClient createGoogleStorageClient() {

private GoogleCredentials getGoogleCredentials() {
try (final FileInputStream credentialsStream = new FileInputStream(this.getString(GOOGLE_CLOUD_KEY_PATH))) {
final List<String> scopes = Lists.newArrayList(GOOGLE_CLOUD_OAUTH_SCOPE);
final List<String> scopes = List.of(GOOGLE_CLOUD_OAUTH_SCOPE);
return GoogleCredentials.fromStream(credentialsStream).createScoped(scopes);
} catch (final IOException ioException) {
throw new UncheckedIOException(
Expand Down
4 changes: 4 additions & 0 deletions large-message-serde/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
description = "Kafka serde that stores large messages on a blob storage, such as Amazon S3 and Azure Blob Storage"


repositories {
mavenCentral()
maven(url = "https://packages.confluent.io/maven/")
}

dependencies {
api(project(":large-message-core"))
Expand Down

0 comments on commit af9ae71

Please sign in to comment.