-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
56 lines (47 loc) · 1.33 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
52
53
54
55
plugins {
id 'java'
id 'distribution'
}
configurations {
mysql
oracle
sqlserver
postgresql
}
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.code.gson:gson:2.8.5'
mysql 'mysql:mysql-connector-java:8.0.20'
oracle 'com.oracle.database.jdbc:ojdbc8:19.6.0.0'
sqlserver 'com.microsoft.sqlserver:mssql-jdbc:8.4.1.jre8'
postgresql 'org.postgresql:postgresql:42.2.18'
testImplementation 'junit:junit:4.13'
testImplementation 'mysql:mysql-connector-java:8.0.20'
testImplementation 'com.oracle.database.jdbc:ojdbc8:19.6.0.0'
testImplementation 'com.microsoft.sqlserver:mssql-jdbc:8.4.1.jre8'
testImplementation 'org.postgresql:postgresql:42.2.18'
}
distributions {
doFirst {
if (project.hasProperty("databaseType")) {
println("Build jar with databaseType: " + project.property("databaseType"))
}
}
main {
contents {
from jar
if (project.hasProperty("databaseType")) {
from {
configurations.findByName(project.databaseType).collect { it }
}
}
into '/'
}
}
}
test {
systemProperty 'oracle.jdbc.timezoneAsRegion', 'false'
systemProperty 'io-sdk-java.docker.ip', System.getProperty('io-sdk-java.docker.ip')
}