-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
72 lines (63 loc) · 1.78 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
buildscript {
ext.kotlin_version = '1.2.21'
repositories {
jcenter()
mavenCentral()
maven { url "https://dl.bintray.com/kotlin/exposed" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
group 'pl.chopeks'
version '1.0.0'
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'kotlin-kapt'
apply plugin: 'application'
mainClassName = 'io.ktor.server.netty.DevelopmentEngine'
kotlin {
experimental {
coroutines "enable"
}
}
repositories {
jcenter()
mavenCentral()
maven { url "https://dl.bintray.com/kotlin/kotlinx" }
maven { url "https://dl.bintray.com/kotlin/ktor" }
maven { url "https://dl.bintray.com/kotlin/exposed" }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "io.ktor:ktor-server-netty:0.9.1"
compile "io.ktor:ktor-gson:0.9.1"
compile "ch.qos.logback:logback-classic:1.2.1"
compile 'org.jetbrains.exposed:exposed:0.9.1'
compile 'org.xerial:sqlite-jdbc:3.21.0.1'
compile 'org.imgscalr:imgscalr-lib:4.2'
compile 'com.squareup.okhttp3:okhttp:3.10.0'
compile 'org.apache.jdbm:jdbm:3.0-alpha5'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jar {
manifest {
attributes(
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': 'MainKt'
)
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
task copyWWW(type: Copy) {
from('front/www')
into project.projectDir.absolutePath + '/src/main/resources'
println("copied www! " + project.projectDir.absolutePath + '/src/main/resources')
}