1
0
mirror of synced 2025-12-30 03:02:21 -05:00
Files
airbyte/airbyte-db/db-lib/build.gradle
Jonathan Pearlin b017ee67f9 Test MongoDB Replica Set/Oplog via Testcontainers (#28400)
* Update dependencies

* Use RawBsonDocument

* Add tests

* Formatting

* Incremental refresh test

* Formatting

* Fix NPE

* Test replica set/oplog via testcontainers

* Formatting

* PR feedback

* Automated Commit - Formatting Changes

* Add logging to debug integration test failures

* Fix failing test

* Remove credentials conversion logic

* Update documentation to include correct config format

* Use database from credentials

* Make expected catalog match test data

* Fix formatting

* Cleanup

* Improve logging

* Revert test catalog change

* Use test database

---------

Co-authored-by: jdpgrailsdev <jdpgrailsdev@users.noreply.github.com>
2023-07-20 11:27:07 -05:00

63 lines
2.0 KiB
Groovy

plugins {
id 'java-library'
}
// Add a configuration for our migrations tasks defined below to encapsulate their dependencies
configurations {
migrations.extendsFrom implementation
}
configurations.all {
exclude group: 'io.micronaut.flyway'
}
dependencies {
api libs.hikaricp
api libs.jooq.meta
api libs.jooq
api libs.postgresql
implementation libs.airbyte.protocol
implementation project(':airbyte-json-validation')
implementation project(':airbyte-config-oss:config-models-oss')
implementation libs.flyway.core
migrations libs.platform.testcontainers.postgresql
migrations sourceSets.main.output
// Mark as compile only to avoid leaking transitively to connectors
compileOnly libs.platform.testcontainers.postgresql
compileOnly libs.connectors.testcontainers.mysql
// These are required because gradle might be using lower version of Jna from other
// library transitive dependency. Can be removed if we can figure out which library is the cause.
// Refer: https://github.com/testcontainers/testcontainers-java/issues/3834#issuecomment-825409079
implementation 'net.java.dev.jna:jna:5.8.0'
implementation 'net.java.dev.jna:jna-platform:5.8.0'
testImplementation project(':airbyte-test-utils')
testImplementation 'org.apache.commons:commons-lang3:3.11'
testImplementation libs.platform.testcontainers.postgresql
testImplementation libs.connectors.testcontainers.mysql
testImplementation libs.connectors.testcontainers.mongodb
// Big Query
implementation('com.google.cloud:google-cloud-bigquery:1.133.1')
// Lombok
implementation 'org.projectlombok:lombok:1.18.20'
annotationProcessor('org.projectlombok:lombok:1.18.20')
// MongoDB
implementation libs.mongodb.driver
// Teradata
implementation 'com.teradata.jdbc:terajdbc4:17.20.00.12'
// MySQL
implementation 'mysql:mysql-connector-java:8.0.30'
}
Task publishArtifactsTask = getPublishArtifactsTask("$rootProject.ext.version", project)