This repository was archived by the owner on Feb 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
68 lines (58 loc) · 1.73 KB
/
build.gradle
File metadata and controls
68 lines (58 loc) · 1.73 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
58
59
60
61
62
63
64
65
66
67
68
group 'com.nearsoft'
version '1.0.3'
buildscript {
ext.kotlin_version = '1.2.51'
ext.ktor_version = '0.9.3'
repositories {
mavenCentral()
maven { url 'https://dl.bintray.com/kotlin/kotlin-dev/' }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
apply plugin: 'application'
mainClassName = 'org.jetbrains.ktor.netty.DevelopmentHost'
kotlin {
experimental {
coroutines "enable"
}
}
repositories {
mavenCentral()
maven { url "https://dl.bintray.com/kotlin/ktor" }
maven { url "https://dl.bintray.com/kotlin/kotlinx" }
maven { url 'https://dl.bintray.com/kotlin/kotlin-dev/' }
maven { url 'https://jitpack.io' }
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "io.ktor:ktor-server-netty:$ktor_version"
implementation "ch.qos.logback:logback-classic:1.2.3"
implementation "com.github.epool:pikmail:1.0.2"
implementation "com.github.epool:ip-api-klient:1.0.1"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-rx2:0.23.4"
implementation "com.mixpanel:mixpanel-java:1.4.4"
}
jar {
manifest {
attributes(
'Main-Class': 'com.nearsoft.pikmail.api.Main'
)
}
// from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
// or
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
}
task stage(type: Copy, dependsOn: [clean, build]) {
from jar.archivePath
into project.rootDir
rename {
'pikmail-api.jar'
}
}
stage.mustRunAfter(clean)
clean.doLast {
project.file('pikmail-api.jar').delete()
}