-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
111 lines (90 loc) · 3.84 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
buildscript {
ext {
springBootVersion = '2.1.7.RELEASE'
}
repositories {
mavenCentral()
}
}
plugins {
id 'java'
id 'org.springframework.boot' version "${springBootVersion}"
}
///// Build ///////////////////////////////////////////////////////////////////////
version = '1.17.3'
group 'org.bricolages.streaming'
sourceCompatibility = '11'
targetCompatibility = '11'
compileJava {
options.deprecation = true
options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation'
}
repositories {
jcenter()
}
dependencies {
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.data:spring-data-jpa'
implementation 'org.springframework.data:spring-data-commons'
implementation 'com.fasterxml.jackson.core:jackson-core'
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'com.fasterxml.jackson.core:jackson-annotations'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-cbor'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-csv'
implementation 'org.yaml:snakeyaml'
implementation 'org.postgresql:postgresql'
implementation 'org.slf4j:slf4j-api'
implementation 'ch.qos.logback:logback-classic'
implementation 'org.projectlombok:lombok'
implementation 'org.apache.derby:derby'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.boot:spring-boot-test-autoconfigure'
testImplementation 'junit:junit'
testImplementation 'org.apache.derby:derby'
testImplementation 'org.projectlombok:lombok'
annotationProcessor platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
annotationProcessor 'org.projectlombok:lombok'
testAnnotationProcessor platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
testAnnotationProcessor 'org.projectlombok:lombok'
implementation platform('com.amazonaws:aws-java-sdk-bom:1.11.618')
implementation 'com.amazonaws:aws-java-sdk-core'
implementation 'com.amazonaws:aws-java-sdk-s3'
implementation 'com.amazonaws:aws-java-sdk-sqs'
// no BOM
implementation group: 'commons-io', name: 'commons-io', version: '2.6'
implementation group: 'io.sentry', name: 'sentry-logback', version: '1.7.30'
// To fix log4j zero day attack
implementation group: 'org.apache.logging.log4j', name: 'log4j-to-slf4j', version: '2.15.0'
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.15.0'
}
///// Test ///////////////////////////////////////////////////////////////////////////////
test {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
exceptionFormat "full"
}
}
///// Executable Jar ////////////////////////////////////////////////////////////////////
task showVersion() {
println version
}
bootJar {
baseName = 'bricolage-streaming-preprocessor'
classifier = 'boot'
version = 'LATEST'
mainClassName = 'org.bricolages.streaming.Application'
}
///// Docker ////////////////////////////////////////////////////////////////////////////
if (!project.hasProperty("DOCKER_REPOSITORY")) {
ext.DOCKER_REPOSITORY = "bricolage"
}
task dockerBuild(dependsOn: build, type: Exec) {
description 'Build the Docker image.'
commandLine "docker", "build", "--tag=${DOCKER_REPOSITORY}/${project.name}:${project.version}", "."
}
task dockerPush(dependsOn: dockerBuild, type: Exec) {
description 'Push the Docker image.'
commandLine "docker", "push", "${DOCKER_REPOSITORY}/${project.name}:${project.version}"
}