-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
56 lines (47 loc) · 1.52 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
apply plugin: 'java'
repositories {
mavenCentral()
mavenLocal()
}
configurations {
capsule
capsuleMaven
}
dependencies {
capsule 'co.paralleluniverse:capsule:1.0'
capsuleMaven 'co.paralleluniverse:capsule-maven:1.0'
}
ext.avatarVer = '0.10.32-SNAPSHOT'
task capsule(type: Jar) {
archiveName = 'hello-nodejs.jar'
from(configurations.capsule.collect { zipTree(it) })
from configurations.capsuleMaven
duplicatesStrategy 'exclude'
from 'app.js'
manifest {
attributes(
'Main-Class' : 'Capsule',
'Caplets' : 'co.paralleluniverse:capsule-maven:1.0', // 'MavenCapsule'
'Application' : "com.oracle:avatar-js:$avatarVer",
'Repositories' : 'https://maven.java.net/content/groups/public/',
'Allow-Snapshots' : 'true',
'Min-Java-Version' : '1.8.0',
'Args' : '$CAPSULE_DIR/app.js'
)
attributes(
'Native-Dependencies' : "com.oracle:libavatar-js-linux-x64:$avatarVer=libavatar-js.so",
'Linux'
)
attributes(
'Native-Dependencies' : "com.oracle:libavatar-js-win-x64:$avatarVer=libavatar-js.dll",
'Windows'
)
attributes(
'Native-Dependencies' : "com.oracle:libavatar-js-macosx-x64:$avatarVer=libavatar-js.dylib",
'MacOS'
)
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}