Skip to content

Commit

Permalink
Fix dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Abacn committed Jun 26, 2024
1 parent 9c53d59 commit 8a5634c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
1 change: 1 addition & 0 deletions sdks/java/io/cdap/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ dependencies {
testImplementation library.java.vendored_guava_32_1_2_jre
testImplementation library.java.junit
testImplementation library.java.mockito_core
testImplementation library.java.postgres
testImplementation library.java.testcontainers_postgresql
testImplementation project(path: ":sdks:java:extensions:avro", configuration: "testRuntimeMigration")
testImplementation project(path: ":sdks:java:testing:test-utils", configuration: "testRuntimeMigration")
Expand Down
3 changes: 2 additions & 1 deletion sdks/java/io/common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ dependencies {
implementation library.java.postgres
implementation library.java.slf4j_api
implementation library.java.testcontainers_jdbc
implementation 'com.zaxxer:HikariCP-java6:2.3.13'
// TODO(https://github.com/apache/beam/issues/31678) HikariCP 5.x requires Java11+
implementation 'com.zaxxer:HikariCP:4.0.3'
implementation project(path: ":sdks:java:core", configuration: "shadow")

testImplementation library.java.junit
Expand Down
2 changes: 2 additions & 0 deletions sdks/java/io/debezium/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ dependencies {
testImplementation library.java.testcontainers_base
testImplementation library.java.testcontainers_mysql
testImplementation library.java.testcontainers_postgresql
// TODO(https://github.com/apache/beam/issues/31678) HikariCP 5.x requires Java11+
testImplementation 'com.zaxxer:HikariCP:4.0.3'

// Kafka connect dependencies
implementation "org.apache.kafka:connect-api:2.5.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ static class UpdateSchemaDoFn extends DoFn<KV<Integer, TableRow>, TableRow> {

@StateId(ROW_COUNTER)
@SuppressWarnings("unused")
private final StateSpec<@org.jetbrains.annotations.NotNull ValueState<Integer>> counter;
private final StateSpec<ValueState<Integer>> counter;

public UpdateSchemaDoFn(
String projectId, String datasetId, String tableId, TableSchema newSchema) {
Expand Down
10 changes: 1 addition & 9 deletions sdks/java/io/hcatalog/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,6 @@ hadoopVersions.each {kv -> configurations.create("hadoopVersion$kv.key")}

def hive_version = "3.1.3"

/*
* We need to rely on manually specifying these evaluationDependsOn to ensure that
* the following projects are evaluated before we evaluate this project. This is because
* we are attempting to reference the "sourceSets.test.output" directly.
* TODO: use testTextures feature which is introduced in Gradle 5.6 instead of
* the test outputs directly.
*/
evaluationDependsOn(":sdks:java:io:common")

dependencies {
implementation library.java.vendored_guava_32_1_2_jre
implementation project(path: ":sdks:java:core", configuration: "shadow")
Expand Down Expand Up @@ -75,6 +66,7 @@ dependencies {
testImplementation "org.apache.hive:hive-common:$hive_version"
testImplementation "org.apache.hive:hive-cli:$hive_version"
testImplementation "org.apache.hive.hcatalog:hive-hcatalog-core:$hive_version"
testImplementation project(path: ":sdks:java:io:common")
testRuntimeOnly project(path: ":runners:direct-java", configuration: "shadow")
hadoopVersions.each {kv ->
"hadoopVersion$kv.key" "org.apache.hadoop:hadoop-common:$kv.value"
Expand Down

0 comments on commit 8a5634c

Please sign in to comment.