-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
87 lines (69 loc) · 2.43 KB
/
build.gradle
File metadata and controls
87 lines (69 loc) · 2.43 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
75
76
77
78
79
80
81
82
83
84
85
86
87
// Root build.gradle - AI-HR Recruitment System
plugins {
id 'java'
id 'org.springframework.boot' version '3.4.0' apply false
id 'io.spring.dependency-management' version '1.1.7' apply false
id 'com.google.protobuf' version '0.9.5' apply false
}
subprojects {
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
if (name in ['service-application']) {
apply plugin: 'com.google.protobuf'
}
group = 'de.tum.devops'
version = '1.0.0'
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'io.micrometer:micrometer-registry-prometheus:1.15.1'
implementation("net.logstash.logback:logstash-logback-encoder:8.1")
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.testcontainers:junit-jupiter'
// PostgreSQL driver
runtimeOnly 'org.postgresql:postgresql'
}
tasks.named('test') {
useJUnitPlatform()
}
jar {
enabled = false
}
bootJar {
enabled = true
archiveFileName = "${project.name}.jar"
}
}
// Root tasks
tasks.register('buildAll') {
description = 'Build all microservices'
group = 'build'
dependsOn subprojects.collect { it.tasks.named('build') }
}
tasks.register('cleanAll') {
description = 'Clean all microservices'
group = 'build'
dependsOn subprojects.collect { it.tasks.named('clean') }
}
// Docker tasks
tasks.register('dockerComposeUp', Exec) {
description = 'Start all services with Docker Compose'
group = 'docker'
commandLine 'docker', 'compose', 'up', '-d'
}
tasks.register('dockerComposeDown', Exec) {
description = 'Stop all services with Docker Compose'
group = 'docker'
commandLine 'docker', 'compose', 'down'
}