-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
104 lines (85 loc) · 2.92 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
plugins {
id 'java-library'
id 'io.spring.dependency-management' version '1.1.7'
id "org.springframework.boot" version "3.4.3"
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id "io.freefair.lombok" version "8.4"
id "com.gorylenko.gradle-git-properties" version "2.4.1"
}
group = 'uk.gov.hmcts.reform'
version = '2.4.2'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://jitpack.io' }
jcenter()
}
bootRun {
systemProperties = System.properties
}
gitProperties {
// Change date format in git.properties file.
dateFormat = "yyyy-MM-dd HH:mm:ssZ"
}
ext {
springCloudVersion = "2024.0.0"
log4JVersion = "2.23.1"
reformLoggingVersion = "6.1.6"
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
implementation 'io.github.openfeign:feign-httpclient:13.5'
implementation 'com.microsoft.azure:azure-keyvault:1.2.6'
implementation 'com.microsoft.azure:adal4j:1.6.7'
implementation 'org.springframework.ldap:spring-ldap-core:3.2.11'
implementation group: 'com.github.hmcts.java-logging', name: 'logging', version: reformLoggingVersion
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: log4JVersion
implementation group: 'org.apache.logging.log4j', name: 'log4j-to-slf4j', version: log4JVersion
implementation group: 'io.opentelemetry', name: 'opentelemetry-api', version: '1.41.0'
implementation 'org.apache.commons:commons-collections4:4.4'
compileOnly group: 'org.projectlombok', name: 'lombok'
annotationProcessor group: 'org.projectlombok', name: 'lombok'
implementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.hamcrest:hamcrest-core'
implementation 'org.hamcrest:hamcrest-library'
implementation 'org.springframework:spring-test'
implementation 'org.powermock:powermock-module-junit4:2.0.9'
implementation 'org.mockito:mockito-core:5.15.2'
testImplementation "jakarta.servlet:jakarta.servlet-api:4.0.4"
testImplementation "org.wiremock:wiremock-standalone:3.3.1"
}
publishing {
publications {
Main(MavenPublication) {
from components.java
artifact bootJar
groupId project.group
artifactId rootProject.name
version project.version
}
}
}
bootJar {
manifest {
attributes( 'Implementation-Version': archiveVersion )
}
}
test {
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
}
}