Skip to content

Commit

Permalink
build: re-activate dependency scope check in 'tools'
Browse files Browse the repository at this point in the history
Signed-off-by: Jendrik Johannes <[email protected]>
  • Loading branch information
jjohannes committed Jan 9, 2025
1 parent 3d4e426 commit 33eebf8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions gradle/modules.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
com.google.auth.oauth2=com.google.auth:google-auth-library-oauth2-http
13 changes: 8 additions & 5 deletions tools/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
import com.github.jengelman.gradle.plugins.shadow.internal.DefaultDependencyFilter
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.gradlex.javamodule.dependencies.tasks.ModuleDirectivesScopeCheck

plugins {
id("application")
Expand Down Expand Up @@ -30,13 +29,13 @@ extraJavaModuleInfo {
failOnAutomaticModules = false
}

// Disable module directives scope check as we are not using modules
tasks.withType<ModuleDirectivesScopeCheck>().configureEach { enabled = false }

mainModuleInfo {
// depend on peer streams gradle module to get access to protobuf generated classes
requires("com.hedera.block.stream")
requires("com.hedera.pbj.runtime")
requires("com.github.luben.zstd_jni")
requires("com.google.auth.oauth2")
requires("com.google.gson")
requires("info.picocli")
runtimeOnly("com.swirlds.config.impl")
runtimeOnly("org.apache.logging.log4j.slf4j2.impl")
Expand All @@ -45,7 +44,11 @@ mainModuleInfo {

testModuleInfo { requiresStatic("com.github.spotbugs.annotations") }

dependencies { implementation("com.google.cloud:google-cloud-storage") }
dependencies {
implementation("com.google.api:gax")
implementation("com.google.cloud:google-cloud-core")
implementation("com.google.cloud:google-cloud-storage")
}

tasks.withType<ShadowJar>().configureEach {
group = "shadow"
Expand Down

0 comments on commit 33eebf8

Please sign in to comment.