-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle
86 lines (74 loc) · 2.46 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
apply plugin: "war"
apply plugin: "eclipse"
apply plugin: "maven"
group ="com.tdu"
version = "1.0.0"
sourceCompatibility = 1.7
targetCompatibility = 1.7
[compileJava,compileTestJava,javadoc]*.options*.encoding = 'UTF-8'
repositories {
mavenLocal()
mavenCentral()
}
configurations {
compile.exclude group: "org.springframework.boot", module: "spring-boot-starter-tomcat"
compile.exclude group: "org.springframework.boot", module: "spring-boot-starter-data-jpa"
compile.exclude group: "log4j"
}
dependencies {
providedRuntime(
"org.springframework.boot:spring-boot-starter-jetty:${spring_boot_version}",
)
compile(
"org.springframework.boot:spring-boot-starter:${spring_boot_version}",
"org.springframework.boot:spring-boot-starter-web:${spring_boot_version}",
"org.springframework.boot:spring-boot-autoconfigure:${spring_boot_version}",
"org.springframework.boot:spring-boot-starter-security:${spring_boot_version}",
"org.springframework.boot:spring-boot-starter-thymeleaf:${spring_boot_version}",
"org.springframework.boot:spring-boot-starter-jdbc:${spring_boot_version}",
"org.springframework:spring-context-support:${spring_framework_version}",
"org.springframework:spring-tx:${spring_framework_version}",
"com.fasterxml.jackson.dataformat:jackson-dataformat-xml:${jackson_version}",
"javax.servlet:javax.servlet-api:${servlet_api_version}",
"org.glassfish.web:javax.el:${javax_el_version}",
"mysql:mysql-connector-java:${mysql_version}",
"org.flywaydb:flyway-core:${flyway_version}",
"org.mybatis:mybatis:${mybatis_version}",
"org.mybatis:mybatis-spring:${mybatis_spring_version}",
"org.mybatis.generator:mybatis-generator-core:${mybatis_generator_version}",
"tk.mybatis:mapper:${mybatis_mapper_version}",
"net.sf.ehcache:ehcache:${ehcache_version}",
"junit:junit:${junit_version}",
project(":springboot-ssm-dao")
)
//ext.jarTree = fileTree(dir: 'libs', include: '**/*.jar')
testCompile ()
}
task sourceJar (type : Jar) {
classifier = "sources"
from sourceSets.main.allSource
}
task javadocJar (type: Jar, dependsOn: javadoc) {
classifier = "javadoc"
from javadoc.destinationDir
}
eclipse{
jdt{
sourceCompatibility = 1.7
targetCompatibility = 1.7
}
}
task writeNewPom << {
pom {
project {
inceptionYear '2008'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
}.writeTo("$buildDir/pom.xml")
}