* Initial Commit of CDC PK snapshotting * Added unit tests * Flip to true * Refactor flags * Re-add flag * Comment cleanup * Code review comments * Automated Commit - Format and Process Resources Changes * minor refactor * Address comments --------- Co-authored-by: akashkulk <akashkulk@users.noreply.github.com> Co-authored-by: subodh <subodh1810@gmail.com>
60 lines
2.5 KiB
Groovy
60 lines
2.5 KiB
Groovy
import org.jsonschema2pojo.SourceType
|
|
|
|
plugins {
|
|
id 'application'
|
|
id 'airbyte-docker'
|
|
id 'airbyte-integration-test-java'
|
|
id 'airbyte-performance-test-java'
|
|
id 'airbyte-connector-acceptance-test'
|
|
id 'org.jsonschema2pojo' version '1.2.1'
|
|
}
|
|
|
|
application {
|
|
mainClass = 'io.airbyte.integrations.source.mysql.MySqlSource'
|
|
applicationDefaultJvmArgs = ['-XX:+ExitOnOutOfMemoryError', '-XX:MaxRAMPercentage=75.0']
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':airbyte-db:db-lib')
|
|
implementation project(':airbyte-integrations:bases:base-java')
|
|
implementation project(':airbyte-integrations:bases:debezium')
|
|
implementation project(':airbyte-integrations:connectors:source-jdbc')
|
|
implementation libs.airbyte.protocol
|
|
implementation project(':airbyte-integrations:connectors:source-relational-db')
|
|
|
|
implementation 'mysql:mysql-connector-java:8.0.30'
|
|
implementation 'org.apache.commons:commons-lang3:3.11'
|
|
|
|
testImplementation testFixtures(project(':airbyte-integrations:bases:debezium'))
|
|
testImplementation testFixtures(project(':airbyte-integrations:connectors:source-jdbc'))
|
|
testImplementation 'org.apache.commons:commons-lang3:3.11'
|
|
testImplementation 'org.hamcrest:hamcrest-all:1.3'
|
|
testImplementation libs.junit.jupiter.system.stubs
|
|
testImplementation libs.connectors.testcontainers.mysql
|
|
|
|
integrationTestJavaImplementation project(':airbyte-integrations:bases:standard-source-test')
|
|
integrationTestJavaImplementation project(':airbyte-integrations:connectors:source-mysql')
|
|
|
|
performanceTestJavaImplementation project(':airbyte-integrations:bases:standard-source-test')
|
|
performanceTestJavaImplementation project(':airbyte-integrations:connectors:source-mysql')
|
|
|
|
implementation files(project(':airbyte-integrations:bases:base-java').airbyteDocker.outputs)
|
|
integrationTestJavaImplementation files(project(':airbyte-integrations:bases:base-java').airbyteDocker.outputs)
|
|
performanceTestJavaImplementation files(project(':airbyte-integrations:bases:base-java').airbyteDocker.outputs)
|
|
}
|
|
|
|
jsonSchema2Pojo {
|
|
sourceType = SourceType.YAMLSCHEMA
|
|
source = files("${sourceSets.main.output.resourcesDir}/internal_models")
|
|
targetDirectory = new File(project.buildDir, 'generated/src/gen/java/')
|
|
removeOldOutput = true
|
|
|
|
targetPackage = 'io.airbyte.integrations.source.mysql.internal.models'
|
|
|
|
useLongIntegers = true
|
|
generateBuilders = true
|
|
includeConstructors = false
|
|
includeSetters = true
|
|
}
|
|
|