-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
85 lines (72 loc) · 3.95 KB
/
Copy pathbuild.gradle
File metadata and controls
85 lines (72 loc) · 3.95 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
plugins {
id 'java'
id 'eclipse-wtp'
id 'war'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
group = 'project-brief'
version = '0.0.1.SNAPSHOT'
repositories {
jcenter()
}
def libVer = [
servletApi: '3.1.0',
jackson: '2.10.1',
aspectj: '1.9.5',
mybatis:'3.5.3',
mybatisSpring: '2.0.3',
spring: '4.3.25.RELEASE',
logback: '1.2.3',
commonsCodec: '1.13',
commonsCollections: '4.4',
commonsLang: '3.9',
slf4j: '1.7.29',
junit: '5.5.2'
]
dependencies {
providedCompile group: "javax.servlet", name: "javax.servlet-api", version: "${libVer.servletApi}"
implementation group: "com.fasterxml.jackson.core", name: "jackson-annotations", version: "${libVer.jackson}"
implementation group: "com.fasterxml.jackson.core", name: "jackson-core", version: "${libVer.jackson}"
implementation group: "com.fasterxml.jackson.core", name: "jackson-databind", version: "${libVer.jackson}"
implementation group: "org.aspectj", name: "aspectjweaver", version: "${libVer.aspectj}"
implementation group: "org.mybatis", name: "mybatis", version: "${libVer.mybatis}"
implementation group: "org.mybatis", name: "mybatis-spring", version: "${libVer.mybatisSpring}"
implementation group: "org.springframework", name: "spring-aop", version: "${libVer.spring}"
implementation group: "org.springframework", name: "spring-beans", version: "${libVer.spring}"
implementation group: "org.springframework", name: "spring-context", version: "${libVer.spring}"
implementation group: "org.springframework", name: "spring-core", version: "${libVer.spring}"
implementation group: "org.springframework", name: "spring-expression", version: "${libVer.spring}"
implementation group: "org.springframework", name: "spring-jdbc", version: "${libVer.spring}"
implementation group: "org.springframework", name: "spring-tx", version: "${libVer.spring}"
implementation group: "org.springframework", name: "spring-web", version: "${libVer.spring}"
implementation group: "org.springframework", name: "spring-webmvc", version: "${libVer.spring}"
implementation group: "ch.qos.logback", name: "logback-core", version: "${libVer.logback}"
implementation group: "ch.qos.logback", name: "logback-classic", version: "${libVer.logback}"
implementation group: "commons-codec", name: "commons-codec", version: "${libVer.commonsCodec}"
implementation group: "org.apache.commons", name: "commons-collections4", version: "${libVer.commonsCollections}"
implementation group: "org.apache.commons", name: "commons-lang3", version: "${libVer.commonsLang}"
implementation group: "org.slf4j", name: "jcl-over-slf4j", version: "${libVer.slf4j}"
implementation group: "org.slf4j", name: "jul-to-slf4j", version: "${libVer.slf4j}"
implementation group: "org.slf4j", name: "log4j-over-slf4j", version: "${libVer.slf4j}"
implementation group: "org.slf4j", name: "slf4j-api", version: "${libVer.slf4j}"
implementation files('lib/wcyoung-encrypt-dbcp-0.9.0.SNAPSHOT.jar')
implementation files('lib/spring-mvc-common-0.0.1.SNAPSHOT.jar')
testImplementation group: "org.junit.jupiter", name: "junit-jupiter-api", version: "${libVer.junit}"
}
war {
manifest {
attributes "Implementation-Title": "${rootProject.name}",
"Implementation-Version": "${rootProject.version}",
"Implementation-Vendor": "${rootProject.group}"
}
doFirst {
def manifestFile = new File(projectDir, 'src/main/webapp/META-INF/MANIFEST.MF')
manifestFile.text = "Manifest-Version: 1.0\n"
manifestFile.text += "Implementation-Title: ${war.manifest.attributes['Implementation-Title']}\n"
manifestFile.text += "Implementation-Version: ${war.manifest.attributes['Implementation-Version']}\n"
manifestFile.text += "Implementation-Vendor: ${war.manifest.attributes['Implementation-Vendor']}\n"
}
}