-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
42 lines (41 loc) · 1.13 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
buildscript{
repositories{
maven{
url'https://plugins.gradle.org/m2/'
}
}
dependencies{
classpath'gradle.plugin.org.gretty:gretty:2.1.0'
}
}
apply plugin:'org.gretty'
apply plugin:'war'
apply plugin:'eclipse'
repositories{
jcenter()
}
dependencies {
compile group: 'commons-io', name: 'commons-io', version: '1.4'
compile group: 'log4j', name: 'log4j', version: '1.2.15', ext: 'jar'
compile group: 'org.mybatis', name: 'mybatis', version: '3.4.6'
// https://mvnrepository.com/artifact/mysql/mysql-connector-java
compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.46'
testCompile 'junit:junit:4.12'
// https://mvnrepository.com/artifact/org.springframework/spring-context
//compile group: 'org.springframework', name: 'spring-context', version: '5.0.7.RELEASE'
}
gretty{
httpPort = 8080
}
task createDirs <<{
sourceSets*.java.srcDirs*.each{
it.mkdirs()
}
sourceSets*.resources.srcDirs*.each{
it.mkdirs()
}
println "´´½¨webApp(false¿ÉÄÜÊÇÎļþÒÑ´æÔÚ):"+new WarPluginConvention(project).getWebAppDir().mkdirs()
}
task itest <<{
println project.version
}