-
Notifications
You must be signed in to change notification settings - Fork 4.4k
/
Copy pathbuild.gradle
48 lines (38 loc) · 1.29 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import org.jsonschema2pojo.SourceType
plugins {
id 'airbyte-java-connector'
id 'org.jsonschema2pojo' version '1.2.1'
}
airbyteJavaConnector {
cdkVersionRequired = '0.40.7'
features = ['db-sources']
useLocalCdk = true
}
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.5.4.Final'
implementation 'io.debezium:debezium-connector-mysql:2.5.4.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
}