-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
45 lines (35 loc) · 1.1 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
plugins {
id 'org.springframework.boot' version '2.1.3.RELEASE'
id 'java'
}
apply plugin: 'io.spring.dependency-management'
group = 'com.seagle.performance'
//version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
apply plugin: 'war'
war {
baseName = 'myapp'
// version = '0.1.0'
}
jar {
enabled = true
}
repositories {
maven {url "http://maven.aliyun.com/nexus/content/groups/public/"}
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.0.0'
//生成tomcat war包
// providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.squareup.okhttp3:okhttp:3.9.0'
// implementation 'org.apache.shiro:shiro-core:+'
// implementation 'org.apache.shiro:shiro-spring-boot-web-starter:1.4.0'
runtime('mysql:mysql-connector-java')
runtimeOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}