-
Notifications
You must be signed in to change notification settings - Fork 30
/
build.gradle.kts
81 lines (62 loc) · 1.52 KB
/
build.gradle.kts
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
val vertxVersion = "3.6.2"
val mainVerticle = "io.vertx.examples.feeds.verticles.MainVerticle"
buildscript {
// Gradle plugins
dependencies {
classpath("com.github.jengelman.gradle.plugins:shadow:4.0.2") // FatJar packaging
}
}
plugins {
java
application
id("com.github.johnrengelman.shadow") version "4.0.2"
}
repositories {
mavenCentral()
}
group = "com.github.aesteve"
version = ""
tasks.withType<JavaCompile> {
sourceCompatibility = "1.8"
}
dependencies {
// Vert.x standard
compile("io.vertx:vertx-core:$vertxVersion")
compile("io.vertx:vertx-web:$vertxVersion")
// MongoDB
compile("io.vertx:vertx-mongo-client:$vertxVersion")
compile("de.flapdoodle.embed:de.flapdoodle.embed.mongo:2.2.0")
// Redis
compile("io.vertx:vertx-redis-client:$vertxVersion")
compile("it.ozimov:embedded-redis:0.7.2")
// Handlebars
compile("io.vertx:vertx-web-templ-handlebars:$vertxVersion")
compile("com.github.jknack:handlebars:2.1.0")
// RSS
compile("com.rometools:rome:1.5.0")
}
application {
mainClassName = "io.vertx.core.Launcher"
}
tasks.shadowJar {
classifier = ""
manifest {
attributes["Main-Verticle"] = "io.vertx.examples.feeds.verticles.MainVerticle"
}
mergeServiceFiles {
include("META-INF/services/io.vertx.core.spi.VerticleFactory")
}
into("webroot") {
from("webroot")
}
into("templates") {
from("templates")
}
}
tasks.withType<JavaExec> {
args = listOf("run", mainVerticle)
}
tasks.withType<Wrapper> {
gradleVersion = "5.1.1"
}