-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
73 lines (60 loc) · 2.22 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
plugins {
id 'org.springframework.boot' version '2.3.4.RELEASE'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'java'
id "com.github.node-gradle.node" version "2.2.4"
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'ch.qos.logback', name: 'logback-core', version: '1.2.3'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.30'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.flywaydb:flyway-core'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
compile group: 'org.keycloak', name: 'keycloak-spring-boot-starter', version: '11.0.2'
compile group: 'org.keycloak.bom', name: 'keycloak-adapter-bom', version: '11.0.2', ext: 'pom'
implementation 'org.keycloak:keycloak-spring-boot-starter'
testImplementation 'org.springframework.security:spring-security-test'
testCompile "org.testcontainers:postgresql:1.15.0-rc2"
testImplementation "org.testcontainers:junit-jupiter:1.15.0-rc2"
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testCompile group: 'org.mockito', name: 'mockito-core', version: '3.6.0'
testCompile group: 'org.mockito', name: 'mockito-junit-jupiter', version: '3.6.0'
}
bootBuildImage {
imageName = "<YOUR_IMAGE_NAME>"
}
node {
download = false
nodeModulesDir = file("${project.projectDir}/src/main/webapp")
}
task buildFrontend(type: NpxTask) {
dependsOn(npmInstall)
command = 'npm'
args = ['run', 'build']
}
processResources {
from('src/main/webapp/dist') {
into('static/.')
}
}
test {
useJUnitPlatform()
}