-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
80 lines (67 loc) · 2.13 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
80
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.moowork.gradle:gradle-node-plugin:1.3.1"
}
}
apply plugin: 'kotlin'
apply plugin: 'kotlin-kapt'
apply plugin: 'application'
apply plugin: 'com.moowork.node'
group 'smarthome'
version '0.0.5'
mainClassName = "io.ktor.server.netty.EngineMain"
sourceSets {
main.kotlin.srcDirs = main.java.srcDirs = ['src']
test.kotlin.srcDirs = test.java.srcDirs = ['test']
main.resources.srcDirs = ['resources']
test.resources.srcDirs = ['testresources']
}
distZip {
into("$project.name-$project.version/bin") {
from '.'
include 'smarthome.service', 'config.json'
}
}
repositories {
mavenLocal()
jcenter()
maven { url 'https://kotlin.bintray.com/ktor' }
maven { url 'https://jitpack.io' }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "io.ktor:ktor-server-netty:$ktor_version"
compile "ch.qos.logback:logback-classic:$logback_version"
compile "io.ktor:ktor-server-core:$ktor_version"
compile "io.ktor:ktor-gson:$ktor_version"
compile "io.ktor:ktor-websockets:$ktor_version"
compile "org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.0"
compile 'com.jayway.jsonpath:json-path:2.4.0'
compile 'io.github.microutils:kotlin-logging:1.6.24'
compile 'org.postgresql:postgresql:42.2.5'
compile 'com.zaxxer:HikariCP:3.3.1'
compile 'com.github.mjdbc:mjdbc:1.3.1'
compile "org.koin:koin-core:1.0.2"
compile "org.koin:koin-core-ext:1.0.2"
compile 'org.koin:koin-ktor:2.0.1'
compile 'com.uchuhimo:konf:0.13.2'
testCompile "io.ktor:ktor-server-tests:$ktor_version"
}
node {
nodeModulesDir = file("${project.projectDir}/frontend")
}
task installFrontentDeps(type: YarnTask){
args = ['install', '--production']
}
task compileFrontEnd(type : YarnTask) {
args = ['build']
}
compileFrontEnd.dependsOn(installFrontentDeps)
processResources.dependsOn(compileFrontEnd)