|
1 | 1 | plugins { |
2 | | - id 'application' |
3 | | - id 'java' |
4 | | - id 'io.spring.dependency-management' version '1.1.7' |
5 | | - id 'org.springframework.boot' version '4.0.0' |
6 | | - id 'jacoco' |
7 | | - id 'maven-publish' |
8 | | - id "com.github.ben-manes.versions" version "0.53.0" |
9 | | - id "org.cyclonedx.bom" version "3.1.0" |
| 2 | + id 'application' |
| 3 | + id 'java' |
| 4 | + id 'org.springframework.boot' version '4.0.0' |
| 5 | + id 'io.spring.dependency-management' version '1.1.7' |
| 6 | + id 'jacoco' |
| 7 | + id 'maven-publish' |
| 8 | + id "com.github.ben-manes.versions" version "0.53.0" |
| 9 | + id "org.cyclonedx.bom" version "3.1.0" |
| 10 | + id 'com.avast.gradle.docker-compose' version '0.17.20' |
10 | 11 | } |
11 | 12 |
|
12 | 13 | group = 'uk.gov.hmcts.cp' |
13 | 14 | version = System.getProperty('ARTEFACT_VERSION') ?: '0.0.999' |
14 | 15 |
|
15 | 16 | apply { |
16 | | - from("$rootDir/gradle/dependency.gradle") |
17 | | - from("$rootDir/gradle/buildinfo.gradle") |
18 | | - from("$rootDir/gradle/integration.gradle") |
19 | | - from("$rootDir/gradle/jar.gradle") |
20 | | - from("$rootDir/gradle/java.gradle") |
21 | | - from("$rootDir/gradle/pmd.gradle") |
22 | | - from("$rootDir/gradle/repositories.gradle") |
23 | | - from("$rootDir/gradle/test.gradle") |
| 17 | + from("$rootDir/gradle/dependencies/java-core.gradle") |
| 18 | + from("$rootDir/gradle/dependencies/spring-core.gradle") |
| 19 | + |
| 20 | + from("$rootDir/gradle/github/repositories.gradle") |
| 21 | + from("$rootDir/gradle/github/java.gradle") |
| 22 | + from("$rootDir/gradle/github/dependency.gradle") |
| 23 | + from("$rootDir/gradle/github/pmd.gradle") |
| 24 | + from("$rootDir/gradle/github/test.gradle") |
| 25 | + from("$rootDir/gradle/github/jar.gradle") |
| 26 | + |
| 27 | + from("$rootDir/gradle/tasks/apitest.gradle") |
24 | 28 | } |
25 | 29 |
|
26 | 30 | ext { |
27 | | - apiCaseUrnMapperVersion = "1.0.4" |
28 | | - log4JVersion = "2.24.3" |
29 | | - logbackVersion = "1.5.18" |
30 | | - lombokVersion = "1.18.38" |
| 31 | + apiCaseUrnMapperVersion = "1.0.5" |
31 | 32 | } |
32 | | -cyclonedxBom { |
33 | | - schemaVersion = org.cyclonedx.Version.VERSION_16 |
34 | | - componentVersion = project.version.toString() |
35 | | -} |
36 | | -dependencies { |
37 | | - implementation "uk.gov.hmcts.cp:api-cp-caseadmin-case-urn-mapper:$apiCaseUrnMapperVersion" |
38 | | - implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:3.0.0' |
39 | | - implementation 'io.swagger.core.v3:swagger-core:2.2.41' |
40 | | - implementation 'javax.xml.bind:jaxb-api:2.3.1' |
41 | | - implementation 'org.springframework.boot:spring-boot-starter-cache' |
42 | 33 |
|
43 | | - implementation 'org.springframework.boot:spring-boot-starter-web' |
44 | | - implementation 'org.springframework.boot:spring-boot-starter-actuator' |
45 | | - implementation 'org.springframework.boot:spring-boot-starter-aop:3.5.8' |
46 | | - implementation 'org.springframework.boot:spring-boot-starter-json' |
47 | | - |
48 | | - // micrometer |
49 | | - implementation platform('io.micrometer:micrometer-tracing-bom:latest.release') |
50 | | - implementation 'io.micrometer:micrometer-tracing' |
51 | | - implementation 'io.micrometer:micrometer-tracing-bridge-otel' |
52 | | - // Spring Boot 4 will auto-configure OpenTelemetry when management.tracing.enabled=true |
53 | | - implementation 'com.azure:azure-monitor-opentelemetry-autoconfigure:1.4.0' |
54 | | - implementation 'net.logstash.logback:logstash-logback-encoder:9.0' |
55 | | - implementation group: 'io.rest-assured', name: 'rest-assured', version: '6.0.0' |
56 | | - implementation 'org.hibernate.validator:hibernate-validator:9.1.0.Final' |
57 | | - |
58 | | - implementation 'org.apache.commons:commons-text:1.15.0' |
59 | | - implementation 'com.fasterxml.jackson.core:jackson-databind:2.20.1' |
60 | | - implementation("org.owasp.encoder:encoder:1.4.0") |
61 | | - compileOnly group: 'org.projectlombok', name: 'lombok', version: lombokVersion |
62 | | - annotationProcessor group: 'org.projectlombok', name: 'lombok', version: lombokVersion |
63 | | - testCompileOnly group: 'org.projectlombok', name: 'lombok', version: lombokVersion |
64 | | - testAnnotationProcessor group: 'org.projectlombok', name: 'lombok', version: lombokVersion |
65 | | - integrationTestCompileOnly group: 'org.projectlombok', name: 'lombok', version: lombokVersion |
66 | | - integrationTestAnnotationProcessor group: 'org.projectlombok', name: 'lombok', version: lombokVersion |
| 34 | +dependencies { |
| 35 | + implementation "uk.gov.hmcts.cp:api-cp-caseadmin-case-urn-mapper:$apiCaseUrnMapperVersion" |
| 36 | + implementation "io.swagger.core.v3:swagger-annotations:2.2.41" |
67 | 37 |
|
68 | | - testImplementation(platform('org.junit:junit-bom:6.0.1')) |
69 | | - testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine' |
70 | | - testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: '4.0.0', { |
71 | | - exclude group: 'junit', module: 'junit' |
72 | | - exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' |
73 | | - } |
74 | | - testImplementation group: 'org.springframework.boot', name: 'spring-boot-test-autoconfigure', version: '4.0.0' |
75 | | - testRuntimeOnly 'org.junit.platform:junit-platform-launcher' |
| 38 | + implementation 'org.springframework.boot:spring-boot-starter-actuator' |
| 39 | + implementation 'org.hibernate.validator:hibernate-validator' |
| 40 | + implementation 'org.springframework.boot:spring-boot-starter-opentelemetry' |
| 41 | + implementation 'io.jsonwebtoken:jjwt:0.13.0' |
| 42 | + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' |
76 | 43 |
|
| 44 | + implementation 'org.springframework.boot:spring-boot-starter-cache' |
77 | 45 | } |
0 commit comments