-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
177 lines (142 loc) · 5.29 KB
/
build.gradle
File metadata and controls
177 lines (142 loc) · 5.29 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'signing'
sourceCompatibility = 1.6
archivesBaseName='mozu-api-toolkit'
group='com.mozu'
// Dynamically insert TeamCity build number if available
if (hasProperty("teamcity")) {
version = teamcity["build.number"]
println "TeamCity build number passed into gradle is " + version
}
else {
// Manually insert the version numbers here when building outside of TeamCity
version = '1.1.11'
}
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
jar {
manifest {
attributes 'Implementation-Title': 'Mozu SDK Base Add-on', 'Implementation-Version': version
}
}
processResources{
exclude 'mozu_config.properties'
exclude 'log4j.xml'
exclude 'servlet-context.xml'
}
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}
repositories {
mavenCentral()
mavenLocal()
maven {
url "https://oss.sonatype.org/content/groups/staging/"
}
}
configurations.all {
// check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
dependencies {
ext {
springVersion='3.2.4.RELEASE'
}
compile("javax.servlet:servlet-api:2.5")
compile("javax.servlet:jstl:1.2")
compile group: 'org.springframework', name: 'spring-aop', version: springVersion
compile group: 'org.springframework', name: 'spring-beans', version: springVersion
compile group: 'org.springframework', name: 'spring-context', version: springVersion
compile group: 'org.springframework', name: 'spring-core', version: springVersion
compile group: 'org.springframework', name: 'spring-expression', version: springVersion
compile group: 'org.springframework', name: 'spring-web', version: springVersion
compile group: 'org.springframework', name: 'spring-webmvc', version: springVersion
compile group: 'org.springframework', name: 'spring-test', version: springVersion
compile group: 'org.springframework', name: 'spring-oxm', version: springVersion
compile group: 'org.springframework', name: 'spring-jdbc', version: springVersion
compile ("org.springframework.batch:spring-batch-core:2.2.3.RELEASE");
compile ("org.springframework.integration:spring-integration-core:3.0.2.RELEASE");
compile ('com.mozu:mozu-java-security:1.0.2')
compile ("com.mozu:mozu-api-java:[1.24.8,)") {
exclude group: 'mysql'
exclude group: 'xerces'
exclude group: 'berkeleydb'
exclude group: 'hsqldb'
exclude group: 'tomcat'
changing = true
}
compile "org.apache.commons:commons-lang3:3.2.1"
compile ("org.slf4j:slf4j-api:1.7.5")
compile ('org.quartz-scheduler:quartz:2.2.1')
compile ('org.jasypt:jasypt:1.9.2')
testCompile 'com.googlecode.jmockit:jmockit:1.7'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
test {
systemProperties 'property': 'value'
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc.destinationDir
}
signing {
required { isReleaseVersion && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}
if (hasProperty("sonatypeUsername")) {
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
snapshotRepository (url: "https://oss.sonatype.org/content/repositories/snapshots") {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
pom.project {
name 'mozu-java-toolkit'
packaging 'jar'
description 'Mozu Java Toolkit is an add=on library to simplify development of your Java applications that integrate with the Mozu platform'
url 'https://github.com/Mozu/mozu-java.git'
scm {
url 'scm:git@github.com:Mozu/mozu-java.git'
connection 'scm:git@github.com:Mozu/mozu-java.git'
developerConnection 'scm:git@github.com:Mozu/mozu-java.git'
}
licenses {
license {
name 'The MIT License (MIT)'
url 'http://http://opensource.org/licenses/MIT'
distribution 'repo'
}
}
developers {
developer {
id 'bob_hewett'
name 'Bob Hewett'
}
developer {
id 'john_gatti'
name 'John Gatti'
}
developer {
id 'sanjay_mandadi'
name 'Sanjay Mandadi'
}
}
}
}
}
}
}