-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
46 lines (40 loc) · 1.25 KB
/
build.gradle
File metadata and controls
46 lines (40 loc) · 1.25 KB
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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '1.2.0'
}
sourceCompatibility = 1.8
version = '1.0-SNAPSHOT'
if (!JavaVersion.current().java8Compatible) {
throw new IllegalStateException('''A Haiku:
| This needs Java 8,
| You are using something else,
| Refresh. Try again.'''.stripMargin())
}
repositories {
mavenCentral()
maven {
url = 'http://oss.sonatype.org/content/repositories/snapshots/'
}
}
dependencies {
compile("io.vertx:vertx-core:$vertxVersion")
compile("io.vertx:vertx-mongo-service:$vertxVersion")
compile("io.vertx:vertx-metrics:$vertxVersion")
}
shadowJar {
classifier = 'fat'
manifest {
attributes 'Main-Class': 'io.vertx.core.Starter'
attributes 'Main-Verticle': 'java:com.xonnec.webserver.App'
}
mergeServiceFiles {
include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}
dependencies {
exclude(dependency('io.vertx:codegen'))
exclude(dependency('junit:junit'))
exclude(dependency('org.mvel:mvel2'))
exclude(dependency('log4j:log4j'))
exclude(dependency('org.slf4j:slf4j-api'))
}
}