-
Notifications
You must be signed in to change notification settings - Fork 3.7k
/
build.gradle
51 lines (43 loc) · 1.82 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
49
50
51
plugins {
id 'application'
id 'airbyte-java-connector'
}
airbyteJavaConnector {
cdkVersionRequired = '0.13.3'
features = ['db-destinations', 's3-destinations', 'typing-deduping']
useLocalCdk = true
}
airbyteJavaConnector.addCdkDependencies()
application {
mainClass = 'io.airbyte.integrations.destination.snowflake.SnowflakeDestinationRunner'
// enable when profiling
applicationDefaultJvmArgs = [
'-XX:+ExitOnOutOfMemoryError',
'-XX:MaxRAMPercentage=75.0',
'-XX:NativeMemoryTracking=detail',
'-XX:+UnlockDiagnosticVMOptions',
'-XX:GCLockerRetryAllocationCount=100',
// '-XX:NativeMemoryTracking=detail',
// '-Djava.rmi.server.hostname=localhost',
// '-Dcom.sun.management.jmxremote=true',
// '-Dcom.sun.management.jmxremote.port=6000',
// '-Dcom.sun.management.jmxremote.rmi.port=6000',
// '-Dcom.sun.management.jmxremote.local.only=false'
// '-Dcom.sun.management.jmxremote.authenticate=false',
// '-Dcom.sun.management.jmxremote.ssl=false',
]
}
integrationTestJava {
// This is needed to make the destination-snowflake tests succeed - https://github.com/snowflakedb/snowflake-jdbc/issues/589#issuecomment-983944767
jvmArgs = ["--add-opens=java.base/java.nio=ALL-UNNAMED"]
}
dependencies {
implementation 'net.snowflake:snowflake-jdbc:3.14.1'
implementation 'org.apache.commons:commons-csv:1.4'
implementation 'org.apache.commons:commons-text:1.10.0'
implementation "io.aesy:datasize:1.0.0"
implementation 'com.zaxxer:HikariCP:5.0.1'
// this is a configuration to make mockito work with final classes
testImplementation 'org.mockito:mockito-inline:2.13.0'
integrationTestJavaImplementation 'org.apache.commons:commons-lang3:3.11'
}