-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
62 lines (52 loc) · 2.08 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
plugins {
id 'org.springframework.boot' version '2.4.5'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'com.palantir.docker' version '0.26.0'
id 'com.palantir.docker-compose' version '0.26.0'
id 'java'
}
repositories {
mavenCentral()
}
dependencies {
// spring dependencies
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:2.4.5'
implementation 'org.springframework.boot:spring-boot-starter-data-redis:2.4.5'
implementation 'org.springframework.boot:spring-boot-starter-data-elasticsearch'
implementation 'org.springframework.boot:spring-boot-starter-security:2.4.5'
implementation 'org.springframework.boot:spring-boot-starter-validation:2.4.5'
implementation 'org.springframework.boot:spring-boot-starter-web:2.4.5'
implementation 'org.springframework.boot:spring-boot-starter-websocket:2.4.5'
runtimeOnly 'org.springframework.boot:spring-boot-devtools:2.4.5'
// test dependencies
testImplementation 'org.assertj:assertj-core:3.19.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.4.5'
testImplementation 'org.springframework.security:spring-security-test:5.4.6'
// db drivers
runtimeOnly 'org.postgresql:postgresql:42.2.19'
testImplementation 'com.h2database:h2:1.4.200'
// annotation processors
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
implementation 'org.mapstruct:mapstruct:1.4.1.Final'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.4.1.Final'
}
group = 'com.connect'
version = '0.0.1-SNAPSHOT'
description = 'Connect is a backend for a social network made with spring boot'
java.sourceCompatibility = JavaVersion.VERSION_16
java.targetCompatibility = JavaVersion.VERSION_16
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
test {
useJUnitPlatform()
}
tasks.dockerPrepare.dependsOn('bootJar')
docker {
name 'connect-gradle'
tag 'name', 'latest'
copySpec.from('build/libs/').into('jars')
dockerfile file('Gradle.Dockerfile')
pull true
}