This repository was archived by the owner on Dec 12, 2025. It is now read-only.
generated from hmcts/api-hmcts-crime-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
51 lines (44 loc) · 1.91 KB
/
build.gradle
File metadata and controls
51 lines (44 loc) · 1.91 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
plugins {
id 'java'
id 'org.openapi.generator' version '7.17.0'
id 'com.diffplug.spotless' version '8.1.0'
id 'jacoco'
id 'maven-publish'
id "com.github.ben-manes.versions" version "0.53.0"
id "org.cyclonedx.bom" version "3.1.0"
id 'pmd'
}
group = 'uk.gov.hmcts.cp'
version = System.getProperty('API_SPEC_VERSION') ?: '0.0.999'
apply {
from("$rootDir/gradle/repositories.gradle")
from("$rootDir/gradle/java.gradle")
from("$rootDir/gradle/dependency.gradle")
from("$rootDir/gradle/pmd.gradle")
from("$rootDir/gradle/test.gradle")
from("$rootDir/gradle/openapi.gradle")
from("$rootDir/gradle/jar.gradle")
}
ext {
springBootVersion = "4.0.0"
lombokVersion = "1.18.38"
}
dependencies {
// OpenAPI Generator runtime support
implementation 'org.openapitools:openapi-generator-core:7.17.0'
implementation 'io.swagger.parser.v3:swagger-parser:2.1.36'
implementation 'io.swagger.core.v3:swagger-annotations:2.2.41'
implementation 'net.logstash.logback:logstash-logback-encoder:9.0'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.20'
implementation "org.springframework.boot:spring-boot-starter-web:$springBootVersion"
implementation "org.springframework.boot:spring-boot-starter-validation:$springBootVersion"
testImplementation "org.springframework.boot:spring-boot-starter-test:$springBootVersion"
compileOnly group: 'org.projectlombok', name: 'lombok', version: lombokVersion
testCompileOnly group: 'org.projectlombok', name: 'lombok', version: lombokVersion
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: lombokVersion
testAnnotationProcessor group: 'org.projectlombok', name: 'lombok', version: lombokVersion
testImplementation(platform('org.junit:junit-bom:6.0.1'))
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}