-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
90 lines (72 loc) · 2.62 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
buildscript {
ext {
springBootVersion = '2.3.9.RELEASE'
mybatisVersion = '2.1.4'
ehcacheVersion = '3.7.0'
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
repositories {
mavenCentral()
}
}
apply plugin: 'war'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
[compileJava, compileTestJava]*.options*.encoding('UTF-8')
group = 'com.pilsa'
version = '1.0'
sourceCompatibility = '1.8'
war {
archiveName(rootProject.name)
from 'src/main/webapps' // adds a file-set to the root of the archive
webInf { from 'src/main/webapps/WEB-INF' } // adds a file-set to the WEB-INF dir.
}
bootWar{
//enabled(false)
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-aop'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-cache'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation "org.mybatis.spring.boot:mybatis-spring-boot-starter:${mybatisVersion}"
/* WebClient */
implementation 'org.springframework.boot:spring-boot-starter-webflux'
/* cache */
implementation "org.ehcache:ehcache:${ehcacheVersion}"
implementation 'javax.cache:cache-api:1.0.0'
/* swagger */
implementation 'io.springfox:springfox-boot-starter:3.0.0'
/* h2Database */
implementation 'com.h2database:h2'
/* util */
//implementation 'org.apache.commons:commons-lang3:3.4'
implementation 'org.apache.commons:commons-lang3:3.12.0'
// https://mvnrepository.com/artifact/org.springframework.data/spring-data-couchbase
//implementation group: 'org.springframework.data', name: 'spring-data-couchbase', version: '4.0.3.RELEASE'
implementation 'org.springframework.data:spring-data-couchbase:4.3.2'
/* lombok */
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
//runtimeOnly 'org.apache.tomcat:tomcat-dbcp:8.5.29'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
//providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
//implementation 'ch.qos.logback.contrib:logback-jackson:0.1.5'
//implementation 'ch.qos.logback.contrib:logback-json-classic:0.1.5'
}
test {
useJUnitPlatform()
}