1
+ buildscript {
2
+ repositories {
3
+ jcenter()
4
+ }
5
+
6
+ dependencies {
7
+ classpath ' com.bmuschko:gradle-cargo-plugin:2.2.3'
8
+ }
9
+ }
10
+
11
+ // apply plugin: 'java'
12
+ apply plugin : ' maven'
13
+ apply plugin : ' war'
14
+ apply plugin : ' com.bmuschko.cargo'
15
+
16
+ group = ' com.baicai'
17
+ version = ' 0.0.2-SNAPSHOT'
18
+
19
+ description = " p2p Maven Webapp"
20
+
21
+ sourceCompatibility = 1.7
22
+ targetCompatibility = 1.7
23
+
24
+ repositories {
25
+
26
+ mavenLocal()
27
+ maven{ url ' http://maven.aliyun.com/nexus/content/groups/public/' }
28
+ mavenCentral()
29
+ jcenter()
30
+ }
31
+ dependencies {
32
+ tasks. withType(JavaCompile ) {
33
+ options. encoding = " UTF-8"
34
+ }
35
+ compile(group : ' org.springframework' , name : ' spring-context' , version :' 4.3.2.RELEASE' ) {
36
+ exclude(module : ' commons-logging' )
37
+ }
38
+ compile group : ' org.springframework' , name : ' spring-aop' , version :' 4.3.2.RELEASE'
39
+ compile group : ' org.springframework' , name : ' spring-aspects' , version :' 4.3.2.RELEASE'
40
+ compile group : ' org.springframework' , name : ' spring-beans' , version :' 4.3.2.RELEASE'
41
+ compile group : ' org.springframework' , name : ' spring-context-support' , version :' 4.3.2.RELEASE'
42
+ compile(group : ' org.springframework' , name : ' spring-core' , version :' 4.3.2.RELEASE' ) {
43
+ exclude(module : ' commons-logging' )
44
+ }
45
+ compile group : ' org.springframework' , name : ' spring-expression' , version :' 4.3.2.RELEASE'
46
+ compile group : ' org.springframework' , name : ' spring-jdbc' , version :' 4.3.2.RELEASE'
47
+ compile group : ' org.springframework' , name : ' spring-orm' , version :' 4.3.2.RELEASE'
48
+ compile group : ' org.springframework' , name : ' spring-tx' , version :' 4.3.2.RELEASE'
49
+ compile group : ' org.springframework' , name : ' spring-web' , version :' 4.3.2.RELEASE'
50
+ compile group : ' org.springframework' , name : ' spring-webmvc' , version :' 4.3.2.RELEASE'
51
+ compile group : ' ch.qos.logback' , name : ' logback-classic' , version :' 1.1.3'
52
+ compile group : ' com.alibaba' , name : ' fastjson' , version :' 1.2.15'
53
+ compile group : ' com.ibeetl' , name : ' beetl' , version :' 2.5.0'
54
+ compile group : ' redis.clients' , name : ' jedis' , version :' 2.7.2'
55
+ compile group : ' commons-logging' , name : ' commons-logging' , version :' 1.2'
56
+ compile group : ' commons-fileupload' , name : ' commons-fileupload' , version :' 1.3.1'
57
+ compile group : ' aopalliance' , name : ' aopalliance' , version :' 1.0'
58
+ compile group : ' com.baicai' , name : ' corewith' , version :' 0.0.1-SNAPSHOT'
59
+ testCompile " junit:junit:4.12"
60
+ compile group : ' javax.servlet' , name : ' javax.servlet-api' ,version :' 3.0.1'
61
+
62
+ def cargoVersion = ' 1.4.5'
63
+ cargo " org.codehaus.cargo:cargo-core-uberjar:$cargoVersion " ,
64
+ " org.codehaus.cargo:cargo-ant:$cargoVersion "
65
+ }
66
+
67
+ cargo {
68
+ containerId = ' tomcat7x'
69
+ port = 8080
70
+
71
+ deployable {
72
+ context = ' p2p'
73
+ }
74
+
75
+ local {
76
+ homeDir = file(' F:/dev/tomcat7' )
77
+ // outputFile = file('build/output.log')
78
+ timeout = 60000
79
+
80
+ containerProperties {
81
+ property ' cargo.tomcat.ajp.port' , 9099
82
+ }
83
+ }
84
+ }
0 commit comments