forked from DTeam-Top/dgate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
52 lines (44 loc) · 1.3 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
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.0'
}
}
apply plugin: 'groovy'
apply plugin: 'com.github.johnrengelman.shadow'
if (!JavaVersion.current().java8Compatible) {
throw new IllegalStateException('''Please install Java 8!'''.stripMargin())
}
sourceSets.main.java.srcDirs = []
sourceSets.main.groovy.srcDirs += ["src/main/java"]
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
compile "org.codehaus.groovy:groovy-all:${GROOVY_VER}"
compile "io.vertx:vertx-core:${VERTX_VER}"
compile "io.vertx:vertx-web:${VERTX_VER}"
compile "io.vertx:vertx-auth-jwt:${VERTX_VER}"
compile "io.vertx:vertx-circuit-breaker:${VERTX_VER}"
compile "io.vertx:vertx-ignite:${VERTX_VER}"
compile "ch.qos.logback:logback-classic:${LOGBACK_VER}"
testCompile "org.spockframework:spock-core:${SPOCK_VER}"
}
version = '0.1.5'
shadowJar {
classifier = 'fat'
baseName = 'dgate'
manifest {
attributes 'Main-Class': 'top.dteam.dgate.Launcher'
attributes 'Main-Verticle': 'top.dteam.dgate.MainVerticle'
}
mergeServiceFiles {
include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}
}