-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.gradle
More file actions
91 lines (69 loc) · 3.11 KB
/
build.gradle
File metadata and controls
91 lines (69 loc) · 3.11 KB
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
buildscript {
ext {
springBootVersion = '1.5.7.RELEASE'
}
repositories {
maven { url 'http://123.207.42.166:8089/nexus/content/groups/public/' }
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
allprojects {
repositories {
maven { url 'http://123.207.42.166:8089/nexus/content/groups/public/' }
jcenter()
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'war'
version = '0.1.0'+ "." + new Date().format("yyMMdd")
sourceCompatibility = 1.8
webAppDirName = "src/main/webapp"
repositories {
mavenCentral()
}
// 移除 内置的 tomcat 启动方式 , 其他web服务器才可以启动
// 如果是希望通过 -jar 直接启动的话,就不需要移除这几项引用,负责不能启动
configurations {
compile.exclude module: 'spring-boot-starter-tomcat'
compile.exclude group: 'org.apache.tomcat'
compile.exclude module: 'tomcat-embed-jasper'
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-jdbc')
// 支持weblogic 需要移除冲突包 添加 javax.servlet:javax.servlet-api:3.0.1 依赖包
// 1: spring-boot-starter-web 中的 tomcat依赖 exclude group:'org.springframework.boot', module:'spring-boot-starter-tomcat'
// 2: org.springframework.boot:spring-boot-starter-tomcat 不要引用
// 3: org.apache.tomcat.embed:tomcat-embed-jasper 不要引用
compile("org.springframework.boot:spring-boot-starter-web")
////////////////////////////////////////////////// weblogic 需要引用的依赖 ////////////////////////////////////////////////////
//compile("org.springframework.boot:spring-boot-starter-web"){
// exclude group:'org.springframework.boot', module:'spring-boot-starter-tomcat'
//}
//// 手动依赖 javax.servlet:javax.servlet-api:3.0.1
compile('javax.servlet:javax.servlet-api:3.0.1')
////////////////////////////////////////////////// weblogic 需要引用的依赖 ////////////////////////////////////////////////////
////////////////////////////////////////////////// Tomcat 需要引用的依赖 ////////////////////////////////////////////////////
//compile("org.springframework.boot:spring-boot-starter-web")
//compile('org.apache.tomcat.embed:tomcat-embed-jasper')
//compile('org.springframework.boot:spring-boot-starter-tomcat')
////////////////////////////////////////////////// Tomcat 需要引用的依赖 ////////////////////////////////////////////////////
compile('org.springframework.boot:spring-boot-starter')
testCompile('org.springframework.boot:spring-boot-starter-test')
compile('org.springframework.boot:spring-boot-legacy:1.1.0.RELEASE')
compile('fr:chart:8.0')
compile('fr:code:8.0')
compile('fr:performance:8.0')
compile('fr:platform:8.0')
compile('fr:report:8.0')
compile('fr:third:8.0')
compile('fr:plugin-com.fr.plugin.reportfit:0')
compile('fr:plugin-com.fr.plugin.chart.vancharts-0:0')
compile('fr:plugin-com.fr.plugin.chart.vancharts:1')
compile('com.oracle:ojdbc6:11.2.0.3')
}