-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
123 lines (111 loc) · 3.36 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
plugins {
id 'com.google.protobuf' version '0.8.19' apply false
id 'com.google.cloud.tools.jib' version '3.1.4' apply false
id 'org.ysb33r.terraform' version '0.12.2'
id "com.avast.gradle.docker-compose" version "0.14.9"
}
allprojects {
group = 'org.sweetlies'
version = gitVersion()
}
subprojects {
repositories {
mavenCentral()
maven {
url 'https://s3-us-west-2.amazonaws.com/dynamodb-local/release'
content {
includeModule 'com.amazonaws', 'DynamoDBLocal'
}
}
}
ext {
awsSdkVersion = '1.11.939'
awsSdk2version = '2.16.66'
dynamoDbLocalVersion = '1.16.0'
commonsCodecVersion = '1.15'
commonsCsvVersion = '1.8'
dropwizardVersion = '2.0.22'
dropwizardMetricsDatadogVersion = '1.1.13'
dynamoDbLockClient = '1.1.0'
guavaVersion = '30.1.1-jre'
jaxbVersion = '2.3.1'
jedisVersion = '2.9.0'
lettuceVersion = '6.0.4.RELEASE'
libphonenumberVersion = '8.12.33'
logstashLogbackVersion = '6.6'
micrometerVersion = '1.5.3'
mockitoVersion = '3.11.1'
assertjVersion = '3.21.0'
boringSslVersion = '2.0.41.Final'
opentest4jVersion = '1.2.0'
postgresqlVersion = '42.2.24'
protobufVersion = '3.21.7'
pushyVersion = '0.15.0'
resilience4jVersion = '1.5.0'
slf4jVersion = '1.7.30'
stripeVersion = '20.79.0'
junitVersion = '4.13.2'
junitJupiterVersion = '5.8.1'
jacksonVersion = '2.12.5'
wiremockVersion = '2.31.0'
jettyWebsocketVersion = '9.4.41.v20210516'
junitParamsVersion = '1.1.1'
uuidGenerator = '3.2.0'
embeddedRedis = '0.8.1'
sqliteVersion = '1.0.392'
pgEmbeddedVersion = '0.13.3'
jerseyVersion = '2.33'
recaptchaVersion = '1.2.2'
semver4jVersion = '3.1.0'
liquibaseVersion = '3.10.3'
curve25519Vesrion = '0.5.0'
zkgroupVersion = '0.8.2'
syslog4jVersion = '0.9.30'
bitableVersion = '1.27.3'
bigtableEmulatorVersion = '0.138.4'
}
tasks.withType(JavaCompile) {
sourceCompatibility = '11'
targetCompatibility = '11'
}
// No need to scan dependencies for proto files
tasks.whenTaskAdded { task ->
if (task.name ==~ /extractInclude\w*Proto/) {
task.enabled = false
}
}
tasks.withType(AbstractArchiveTask) {
preserveFileTimestamps = false
reproducibleFileOrder = true
}
}
def devProvisioningEnvironment() {
return [
GOOGLE_APPLICATION_CREDENTIALS: "${projectDir}/localstack/gcp/service-account.json",
BIGTABLE_EMULATOR_HOST : "localhost:8086"
]
}
dockerCompose {
localStack {
useComposeFiles = [ 'localstack/docker-compose.yml' ]
projectName = null
removeVolumes = project.properties['removeVolumes']?.toBoolean() ?: false
}
}
tasks.matching { it.name.startsWith('tfDev') }.all {
dependsOn localStackComposeUp
}
terraform {
environment devProvisioningEnvironment()
}
terraformSourceSets {
dev {
srcDir = 'terraform'
variables {
file 'env/dev.tfvars'
}
}
}
static def gitVersion() {
return 'git describe --tags --always --first-parent'.execute().text.trim()
}