-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
47 lines (35 loc) · 1.08 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
apply plugin: 'java'
apply plugin: 'war'
sourceCompatibility = '1.8'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories {
mavenCentral()
}
configurations {
capsule
capsuleMaven
}
dependencies {
providedCompile 'javax.servlet:javax.servlet-api:3.1.0'
capsule 'co.paralleluniverse:capsule:1.0'
capsuleMaven 'co.paralleluniverse:capsule-maven:1.0'
}
war {
from(configurations.capsule.collect { zipTree(it) })
from configurations.capsuleMaven
duplicatesStrategy 'exclude'
manifest {
attributes(
'Main-Class' : 'Capsule',
'Premain-Class' : 'Capsule',
'Caplets' : 'co.paralleluniverse:capsule-maven:1.0',
'Application' : 'org.eclipse.jetty:jetty-runner:9.3.3.v20150827',
'Allow-Snapshots' : 'true',
'Min-Java-Version' : '1.7.0',
'Args' : '$CAPSULE_JAR'
)
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}