-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (70 loc) · 1.89 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
81
82
83
group 'me.telegram.getplaybot'
version '1.0'
buildscript {
ext.kotlin_version = '1.1.4'
repositories {
mavenLocal()
mavenCentral()
maven { url "http://dl.bintray.com/kotlin/kotlinx" }
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
repositories {
mavenLocal()
mavenCentral()
maven { url "http://dl.bintray.com/kotlin/kotlinx" }
jcenter()
}
apply plugin: "application"
apply plugin: "java"
apply plugin: "kotlin"
sourceSets {
main.kotlin.srcDirs += 'src/main/kotlin'
main.java.srcDirs += 'src/main/java'
main.resources.srcDirs += 'src/main/resources'
test.kotlin.srcDirs += 'src/test/kotlin'
test.java.srcDirs += 'src/test/java'
}
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
options.encoding = 'UTF-8'
}
compileTestJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
options.encoding = 'UTF-8'
options.compilerArgs += "-parameters"
}
kotlin {
experimental {
coroutines 'enable'
}
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jar {
manifest {
attributes 'Main-Class': 'me.telegram.getplaybot.MainKt'
}
baseName = project.name + '-dist'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:0.17"
compile "org.telegram:telegrambots:3.2"
compile "org.slf4j:slf4j-log4j12:1.7.25"
compile "org.jsoup:jsoup:1.10.3"
compile "khttp:khttp:0.1.0"
compile "org.apache.xmlgraphics:batik-transcoder:1.9"
compile "org.apache.xmlgraphics:batik-codec:1.9"
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
}