-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
68 lines (55 loc) · 1.76 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
buildscript {
repositories {
mavenCentral()
maven { url "http://repo.spring.io/libs-release" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.2.0.RELEASE")
}
}
apply plugin: 'java'
apply plugin: 'spring-boot'
apply plugin: 'eclipse-wtp'
apply plugin: 'war'
project.webAppDirName = 'WebContent'
repositories {
mavenCentral()
maven { url "http://repo.spring.io/libs-release" }
maven { url System.getenv()['LOCAL_MAVEN_REPO'] }
}
configurations {
provided
providedRuntime
}
war {
baseName = 'simplemq'
rootSpec.exclude 'application-**.properties'
}
eclipse.classpath.file {
// Classpath entry for Eclipse which changes the order of classpathentries; otherwise no sources for 3rd party jars are shown
withXml { xml ->
def node = xml.asNode()
node.remove( node.find { it.@path == 'org.eclipse.jst.j2ee.internal.web.container' } )
node.appendNode( 'classpathentry', [ kind: 'con', path: 'org.eclipse.jst.j2ee.internal.web.container', exported: 'true'])
}
}
eclipse {
classpath {
downloadSources = true
}
wtp {
component {
contextPath = "/simplemq"
deployName = "simplemq"
resource sourcePath: 'WebContent', deployPath: '/'
}
}
}
dependencies {
providedCompile 'org.springframework.boot:spring-boot-starter-tomcat'
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'org.springframework.boot:spring-boot-starter-actuator'
compile 'org.springframework.boot:spring-boot-starter-data-mongodb'
compile 'org.apache.commons:commons-lang3:3.3.2'
compile 'org.ocpsoft.prettytime:prettytime:3.2.7.Final'
}