-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
executable file
·58 lines (49 loc) · 1.34 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
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '2.0.2'
id "com.moowork.node" version "1.2.0" //https://github.com/srs/gradle-node-plugin
}
repositories {
jcenter()
}
version = '0.1.0'
sourceCompatibility = '1.8'
mainClassName = 'io.vertx.core.Launcher'
def vertxVersion = '3.5.1'
def mainVerticleName = 'entryPointVerticle.js'
def watchForChange = 'app/**'
def doOnChange = './gradlew classes'
def vertxConfigFile = 'vertx-config.json'
dependencies {
compile "io.vertx:vertx-core:$vertxVersion"
compile "io.vertx:vertx-lang-js:$vertxVersion" // JS Lang
compile "io.vertx:vertx-hazelcast:$vertxVersion"
compile "io.vertx:vertx-config:$vertxVersion"
compile "io.vertx:vertx-config-yaml:$vertxVersion"
testCompile "junit:junit:4.12"
testCompile "io.vertx:vertx-unit:$vertxVersion"
}
processResources {
from 'app'
from ('node_modules') {into 'node_modules'}
}
shadowJar {
classifier = 'fat'
manifest {
attributes "Main-Verticle": mainVerticleName
}
mergeServiceFiles {
include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}
}
run {
args = ['run', mainVerticleName,
"--redeploy=$watchForChange",
"--launcher-class=$mainClassName",
"--on-redeploy=$doOnChange",
]
}
task wrapper(type: Wrapper) {
gradleVersion = '4.6.0'
}