forked from CorporationX/post_service
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
74 lines (63 loc) · 2.27 KB
/
build.gradle.kts
File metadata and controls
74 lines (63 loc) · 2.27 KB
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
plugins {
java
id("org.springframework.boot") version "3.0.6"
id("io.spring.dependency-management") version "1.1.0"
id("jacoco")
}
group = "faang.school"
version = "1.0"
java.sourceCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral()
}
dependencies {
/**
* Spring boot starters
*/
implementation("org.springframework.boot:spring-boot-starter-data-jdbc")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-data-redis")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.springframework.cloud:spring-cloud-starter-openfeign:4.0.2")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
/**
* Database
*/
implementation("org.liquibase:liquibase-core")
implementation("redis.clients:jedis:4.3.2")
runtimeOnly("org.postgresql:postgresql")
/**
* Utils & Logging
*/
implementation("com.fasterxml.jackson.core:jackson-databind:2.14.2")
implementation("org.slf4j:slf4j-api:2.0.5")
implementation("ch.qos.logback:logback-classic:1.4.6")
implementation("org.projectlombok:lombok:1.18.26")
annotationProcessor("org.projectlombok:lombok:1.18.26")
implementation("org.mapstruct:mapstruct:1.5.3.Final")
annotationProcessor("org.mapstruct:mapstruct-processor:1.5.3.Final")
/**
* Test containers
*/
implementation(platform("org.testcontainers:testcontainers-bom:1.17.6"))
testImplementation("org.testcontainers:junit-jupiter")
testImplementation("org.testcontainers:postgresql")
testImplementation("com.redis.testcontainers:testcontainers-redis-junit-jupiter:1.4.6")
/**
* Tests
*/
testImplementation("org.junit.jupiter:junit-jupiter-params:5.9.2")
testImplementation("org.assertj:assertj-core:3.24.2")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<Test> {
useJUnitPlatform()
}
val test by tasks.getting(Test::class) { testLogging.showStandardStreams = true }
tasks.bootJar {
archiveFileName.set("service.jar")
}