-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
86 lines (69 loc) · 2.81 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.3'
id 'io.spring.dependency-management' version '1.1.0'
id "maven-publish"
id 'jacoco'
id "com.github.spotbugs" version "5.0.14"
id "io.freefair.lombok" version "8.0.1"
id "checkstyle"
id "pmd"
}
group = 'com.audition'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
targetCompatibility = '17'
apply from: 'config/code-analysis.gradle'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "2022.0.1")
set('logbackVersion', "1.4.5")
set('slf4jVersion', "2.0.5")
set('springdocVersion', "2.0.2")
}
dependencies {
// TODO Clean up unused dependencies. Add comments on consideration on any improvements you made.
implementation "org.springframework.boot:spring-boot-starter-actuator"
// implementation "org.springframework.boot:spring-boot-starter-data-jpa"
implementation "org.springframework.boot:spring-boot-starter-web"
// implementation "org.springframework.cloud:spring-cloud-starter-config"
// implementation "org.springframework.boot:spring-boot-starter-webflux"
// implementation "org.springframework.boot:spring-boot-starter-aop"
// implementation "io.micrometer:micrometer-tracing-bridge-brave"
// implementation "io.micrometer:micrometer-tracing"
// implementation "io.micrometer:micrometer-registry-prometheus"
// implementation "io.micrometer:context-propagation"
// implementation "org.springframework.cloud:spring-cloud-starter-circuitbreaker-reactor-resilience4j"
implementation "org.springframework.cloud:spring-cloud-starter-config"
// implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:${springdocVersion}"
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
implementation group: 'io.opentelemetry', name: 'opentelemetry-api-trace', version: '0.13.0'
developmentOnly "org.springframework.boot:spring-boot-devtools"
// runtimeOnly "io.micrometer:micrometer-registry-prometheus"
implementation "org.slf4j:slf4j-api:${slf4jVersion}"
// implementation "ch.qos.logback:logback-core:${logbackVersion}"
// implementation "ch.qos.logback:logback-classic:${logbackVersion}"
testImplementation "org.springframework.boot:spring-boot-starter-test"
// testImplementation "io.projectreactor:reactor-test"
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
task prepareGitHooks(type: Copy) {
from "$projectDir/git-hooks"
into "$projectDir/.git/hooks"
include "*"
}
tasks.matching { it.name != 'prepareGitHooks' }.all { Task task -> task.dependsOn prepareGitHooks }
tasks.named('test') {
useJUnitPlatform()
}