forked from denisftw/modern-web-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
76 lines (65 loc) · 2.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
68
69
70
71
72
73
74
75
76
buildscript {
ext.kotlin_version = '1.0.3'
ext.shadow_version = '1.2.3'
ext.functionale_version = '0.8'
ext.kovenant_version = '3.3.0'
ext.vertx_version = '3.3.2'
ext.fuel_version = '1.3.1'
ext.kotson_version = '2.3.0'
ext.joda_version = '2.9.4'
ext.jackson_version = '2.7.5'
ext.hikari_version = '2.4.7'
ext.flyway_version = '4.0.3'
ext.pgjdbc_version = '9.4.1208.jre7'
ext.jbcrypt_version = '0.4.1'
ext.kotliquery_version = '1.1.0'
ext.kotlintest_version = '1.3.3'
ext.logback_version = '1.1.7'
ext.slf4j_version = '1.7.21'
ext.klutter_version = '1.20.0'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version",
"com.github.jengelman.gradle.plugins:shadow:$shadow_version"
}
}
apply plugin: 'kotlin'
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'
repositories {
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "org.funktionale:funktionale:$functionale_version"
compile "nl.komponents.kovenant:kovenant:$kovenant_version"
compile "io.vertx:vertx-core:$vertx_version"
compile "io.vertx:vertx-web:$vertx_version"
compile "io.vertx:vertx-web-templ-thymeleaf:$vertx_version"
compile "com.github.kittinunf.fuel:fuel:$fuel_version"
compile "com.github.salomonbrys.kotson:kotson:$kotson_version"
compile "joda-time:joda-time:$joda_version"
compile "com.fasterxml.jackson.module:jackson-module-kotlin:$jackson_version"
compile "org.flywaydb:flyway-core:$flyway_version"
compile "com.zaxxer:HikariCP:$hikari_version"
compile "org.postgresql:postgresql:$pgjdbc_version"
compile "de.svenkubiak:jBCrypt:$jbcrypt_version"
compile "com.github.seratch:kotliquery:$kotliquery_version"
testCompile "io.kotlintest:kotlintest:$kotlintest_version"
compile "ch.qos.logback:logback-classic:$logback_version"
compile "org.slf4j:slf4j-api:$slf4j_version"
compile "uy.klutter:klutter-vertx3-jdk8:$klutter_version"
}
mainClassName = 'io.vertx.core.Launcher'
def mainVerticleName = 'verticles.MainVerticle'
def watchForChange = 'src/**/*.kt'
def doOnChange = 'gradle classes'
def configurationFile = 'conf/development.json'
run {
args = ['run', mainVerticleName, "--redeploy=$watchForChange",
"--launcher-class=$mainClassName", "--on-redeploy=$doOnChange",
"-conf $configurationFile"]
}