This repository has been archived by the owner on Sep 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
79 lines (66 loc) · 2.16 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
77
78
79
buildscript {
ext {
kotlin_version = "1.3.61"
kotlin_couroutines_version = "1.3.3"
http4k_version = "3.206.0"
ktorm_version = "2.6"
logback_version = "1.2.3"
slf4j_version = "1.7.30"
kotlin_logging_version = "1.7.7"
konfig_version = "1.6.10.0"
}
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
}
}
plugins {
id "org.flywaydb.flyway" version "6.1.3"
}
apply plugin: 'kotlin'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'application'
group 'io.taggit'
version '0.0.1'
repositories {
mavenLocal()
jcenter()
}
dependencies {
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version")
compile("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_couroutines_version")
compile("org.http4k:http4k-core:$http4k_version")
compile("org.http4k:http4k-server-jetty:$http4k_version")
compile("org.http4k:http4k-format-jackson:$http4k_version")
compile("org.http4k:http4k-client-apache:$http4k_version")
compile("org.http4k:http4k-security-oauth:$http4k_version")
compile("org.http4k:http4k-client-websocket:$http4k_version")
// utils
compile("com.natpryce:konfig:${konfig_version}")
compile("me.liuwj.ktorm:ktorm-core:${ktorm_version}")
compile("me.liuwj.ktorm:ktorm-support-postgresql:${ktorm_version}")
compile("me.liuwj.ktorm:ktorm-jackson:${ktorm_version}")
compile("org.flywaydb:flyway-core:6.1.3")
compile("org.postgresql:postgresql:42.2.0")
// logging
compile("ch.qos.logback:logback-core:${logback_version}")
compile("ch.qos.logback:logback-classic:${logback_version}")
compile("org.slf4j:slf4j-api:${slf4j_version}")
compile("io.github.microutils:kotlin-logging:${kotlin_logging_version}")
}
flyway {
url = 'jdbc:postgresql://localhost:5432/taggit'
user = 'gitstars_admin'
password = 'testing'
}
mainClassName = 'io.taggit.AppKt'
shadowJar {
baseName = 'taggit-api'
zip64 = true
}
task stage {
dependsOn installDist
}