49 lines
1.3 KiB
Groovy
49 lines
1.3 KiB
Groovy
import org.jsonschema2pojo.SourceType
|
|
|
|
plugins {
|
|
id 'airbyte-java-connector'
|
|
id 'org.jsonschema2pojo' version '1.2.1'
|
|
}
|
|
|
|
airbyteJavaConnector {
|
|
cdkVersionRequired = '0.30.7'
|
|
features = ['db-sources']
|
|
useLocalCdk = false
|
|
}
|
|
|
|
java {
|
|
compileJava {
|
|
options.compilerArgs += "-Xlint:-try,-rawtypes"
|
|
}
|
|
}
|
|
|
|
application {
|
|
mainClass = 'io.airbyte.integrations.source.mysql.MySqlSource'
|
|
applicationDefaultJvmArgs = ['-XX:+ExitOnOutOfMemoryError', '-XX:MaxRAMPercentage=75.0']
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'mysql:mysql-connector-java:8.0.30'
|
|
implementation 'io.debezium:debezium-embedded:2.4.0.Final'
|
|
implementation 'io.debezium:debezium-connector-mysql:2.4.0.Final'
|
|
|
|
testFixturesImplementation 'org.testcontainers:mysql:1.19.0'
|
|
|
|
testImplementation 'org.hamcrest:hamcrest-all:1.3'
|
|
testImplementation 'org.testcontainers:mysql:1.19.0'
|
|
}
|
|
|
|
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
|
|
}
|