-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
57 lines (47 loc) · 1.15 KB
/
build.gradle
File metadata and controls
57 lines (47 loc) · 1.15 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
47
48
49
50
51
52
53
54
55
56
57
buildscript {
repositories {
jcenter()
maven { url 'https://plugins.gradle.org/m2/' }
mavenCentral()
}
apply from: 'versions.gradle'
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.platform.kotlin}"
}
}
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.50'
id 'org.liquibase.gradle' version '2.0.1'
}
apply plugin: 'application'
group 'exposed-enum'
version '0.0.1-SNAPSHOT'
mainClassName = 'io.ktor.server.jetty.EngineMain'
sourceSets {
main.resources.srcDirs = ['src/main/res']
}
repositories {
mavenLocal()
jcenter()
maven { url 'https://kotlin.bintray.com/ktor' }
}
def env(varName, fallback = null) {
System.env[varName] ?: project.findProperty(varName) ?: fallback
}
apply from: 'dependencies.gradle'
def db = [
url: "jdbc:postgresql://${env('DB_HOST', 'localhost:5432')}/${env('POSTGRES_DB', 'exposed-enum-db')}",
user: env('DB_USERNAME', 'postgres'),
pass: env('DB_PASSWORD', 'password'),
]
liquibase {
activities {
main {
changeLogFile "$projectDir/migration/main.xml"
url db.url
username db.user
password db.pass
logLevel 'debug'
}
}
}