-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
91 lines (69 loc) · 2.69 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
plugins {
id 'org.springframework.boot' version '2.7.5'
id 'io.spring.dependency-management' version '1.1.0'
id 'java'
}
group = 'org.philmaster'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '8'
repositories {
mavenCentral()
}
configurations {
compile.exclude module: 'spring-boot-starter-tomcat'
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
}
dependencies {
developmentOnly 'org.springframework.boot:spring-boot-devtools'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
//implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
//implementation 'org.springframework.boot:spring-boot-starter-web'
//implementation 'org.springframework.session:spring-session-jdbc'
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-reactor-netty'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
runtimeOnly 'com.h2database:h2'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
// https://mvnrepository.com/artifact/nz.net.ultraq.thymeleaf/thymeleaf-layout-dialect
implementation group: 'nz.net.ultraq.thymeleaf', name: 'thymeleaf-layout-dialect', version: '3.1.0'
compile group: 'org.hibernate', name: 'hibernate-validator', version: '8.0.0.Final'
implementation group: 'org.webjars', name: 'webjars-locator', version: '0.46'
implementation group: 'org.webjars', name: 'AdminLTE', version: '3.2.0'
implementation group: 'org.webjars', name: 'ionicons', version: '2.0.1'
}
test {
//useJUnitPlatform()
}
task reload(type: Copy) {
from 'src/main/resources'
into 'build/resources/main'
include 'static/**'
include 'templates/**'
include 'custom/**'
dependsOn('reloadModule')
}
task reloadModule(type: Copy){
from '../module/src/main/resources'
into 'build/resources/main'
include 'static/**'
include 'templates/**'
include 'custom/**'
}
task restart {
dependsOn(classes)
dependsOn('restartModule')
}
task restartModule(type: Copy){
from '../module/build/classes/'
into 'build/classes'
dependsOn(':module:classes')
}