This repository has been archived by the owner on Apr 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
120 lines (98 loc) · 4.32 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
plugins {
id 'java'
id 'org.springframework.boot' version '2.4.3'
id 'com.revolut.jooq-docker' version '0.3.6'
id 'groovy'
id 'uk.gov.hmcts.java' version '0.12.4'
}
group = 'uk.gov.hmcts.ccf'
version = '0.0.1-SNAPSHOT'
def springBootVersion = '2.4.2'
repositories {
jcenter()
mavenCentral()
}
sourceSets {
integrationTest {
compileClasspath += sourceSets.main.output
runtimeClasspath += sourceSets.main.output
}
}
dependencies {
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
compileOnly 'org.projectlombok:lombok:1.18.18'
annotationProcessor 'org.projectlombok:lombok:1.18.16'
testCompileOnly 'org.projectlombok:lombok:1.18.18'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.12'
implementation 'org.jooq:jooq:3.14.7'
// For jooq
jdbc 'org.postgresql:postgresql:42.2.18'
compile("org.springframework.boot:spring-boot-starter-jdbc")
compile("org.springframework.boot:spring-boot-starter-jooq")
compile("org.springframework.session:spring-session-jdbc")
implementation 'org.springdoc:springdoc-openapi-ui:1.5.4'
implementation group: 'com.google.guava', name: 'guava', version: '30.1-jre'
implementation group: 'org.springframework.security', name: 'spring-security-config'
implementation "org.springframework.security:spring-security-web"
implementation 'org.springframework.boot:spring-boot-starter-web'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-oauth2-client', version: springBootVersion
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
implementation group: 'org.springframework.cloud', name:'spring-cloud-starter-openfeign', version: '3.0.1'
implementation "io.github.openfeign:feign-httpclient:11.0"
implementation "io.github.openfeign:feign-jackson:11.0"
implementation('org.springframework.boot:spring-boot-starter-hateoas')
implementation 'org.flywaydb:flyway-core'
implementation 'net.jodah:typetools:0.6.2'
implementation 'de.cronn:reflection-util:2.8.0'
implementation group: 'org.apache.commons', name: 'commons-csv', version: '1.8'
implementation group: 'org.springframework.retry', name: 'spring-retry', version: '1.3.1'
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: '2.12.1'
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation 'io.pebbletemplates:pebble:3.1.5'
// developmentOnly "org.springframework.boot:spring-boot-devtools:${springBootVersion}"
runtimeOnly 'org.postgresql:postgresql'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation 'org.springframework.security:spring-security-test'
integrationTestCompile "org.testcontainers:postgresql:1.15.2"
testCompile group: 'org.assertj', name: 'assertj-core', version: '3.19.0'
testCompile group: 'org.spockframework', name: 'spock-core', version: '1.3-groovy-2.5'
testCompile group: 'org.spockframework', name: 'spock-spring', version: '1.3-groovy-2.5'
testImplementation 'org.codehaus.groovy:groovy-all:2.5.8'
}
compileJava {
options.compilerArgs << "-Werror"
}
configurations.integrationTestImplementation.extendsFrom(configurations.testImplementation)
configurations.integrationTestRuntimeOnly.extendsFrom(configurations.runtimeOnly)
task integrationTest(type: Test) {
outputs.file('build/open-api.yaml')
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
}
integrationTest.mustRunAfter test
check {
dependsOn(tasks.integrationTest)
}
bootJar {
archiveFileName = 'backend.jar'
}
bootRun {
args '--generate-data=true', '--big-ids=true', '--database-host=localhost', '--database-port=55432', '--server.port=9998'
jvmArgs "-noverify" // Improves dev startup time
if (project.hasProperty('args')) {
args project.args.split(',')
}
}
tasks.withType(Checkstyle) {
exclude '**/org/jooq/**'
}
tasks {
generateJooqClasses {
customizeGenerator {
generate = new org.jooq.meta.jaxb.Generate()
.withImmutablePojos(true)
}
}
}