-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
38 lines (32 loc) · 866 Bytes
/
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
apply plugin: 'java'
apply plugin: 'war'
def springVersion = '3.2.3.RELEASE'
def jettyVersion = '9.0.4.v20130625'
repositories {
mavenCentral()
}
configurations {
executableWar
}
dependencies {
compile "org.springframework:spring-core:$springVersion"
compile "org.springframework:spring-web:$springVersion"
compile "org.springframework:spring-webmvc:$springVersion"
executableWar "org.eclipse.jetty.aggregate:jetty-all:$jettyVersion"
executableWar "org.eclipse.jetty:jetty-jsp:$jettyVersion"
}
sourceSets.all {
compileClasspath += configurations.executableWar
}
war {
from {
configurations.executableWar.collect {
return it.isDirectory() ? it : zipTree(it)
}
}
from "$buildDir/classes/main"
exclude('**/META-INF/*.SF', '**/META-INF/*.RSA', '**/META-INF/*.DSA')
manifest {
attributes 'Main-Class': 'at.dinauer.deployer.EmbeddedServer'
}
}