-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (45 loc) · 1.32 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
ext {
javaVersion = '1.8'
vertxVersion = '3.4.2'
}
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'eclipse'
def mainVerticle = "service:${group}.${project.name}"
mainClassName = 'io.vertx.core.Launcher'
applicationName = project.name
def watchForChange = 'src/**/*'
def doOnChange = './gradlew clean classes'
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
compile "io.vertx:vertx-core:${vertxVersion}"
compile "io.vertx:vertx-web:${vertxVersion}"
compile "io.vertx:vertx-web-client:${vertxVersion}"
compile "io.vertx:vertx-auth-oauth2:${vertxVersion}"
compile "io.vertx:vertx-service-factory:${vertxVersion}"
compile "io.vertx:vertx-web-templ-handlebars:${vertxVersion}"
compile 'oauth.signpost:signpost-core:1.2.1.2'
compile 'oauth.signpost:signpost-commonshttp4:1.2.1.2'
testCompile 'junit:junit:4.12'
testCompile "io.vertx:vertx-unit:${vertxVersion}"
}
compileJava {
targetCompatibility = javaVersion
sourceCompatibility = javaVersion
}
eclipse {
classpath {
downloadSources = true
downloadJavadoc = true
}
}
run {
args = [ 'run', mainVerticle, "--redeploy=${watchForChange}", "--on-redeploy=${doOnChange}", "--launcher-class=${mainClassName}", "--conf=${projectDir}/etc/config.json" ]
}
task wrapper( type: Wrapper ) {
gradleVersion = '4.2'
}