-
Notifications
You must be signed in to change notification settings - Fork 36
/
build.gradle
67 lines (50 loc) · 1.43 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
59
60
61
62
63
64
65
66
67
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'application'
repositories {
jcenter()
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.ben-manes:gradle-versions-plugin:0.11.3'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.2'
}
}
if (!JavaVersion.current().java8Compatible) {
throw new IllegalStateException('''A Haiku:
| This needs Java 8,
| You are using something else,
| Refresh. Try again.'''.stripMargin())
}
ext {
vertxVersion = '3.0.0'
}
dependencies {
compile 'io.vertx:vertx-core:' + vertxVersion
compile 'io.vertx:vertx-codegen:' + vertxVersion
compile 'io.vertx:vertx-web:' + vertxVersion
}
shadowJar {
classifier = 'fatty'
manifest {
attributes 'Main-Class': 'com.developerb.dd.DropwizardDashboardStarter'
}
mergeServiceFiles {
include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}
}
// Configure application plugin
mainClassName = 'com.developerb.dd.DropwizardDashboardStarter'
applicationDefaultJvmArgs = ["-Dhostname=localhost"]
applicationDefaultJvmArgs = ["-Dport=8081"]
run {
// args 'config'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.6'
}