-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
69 lines (59 loc) · 1.77 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
buildscript {
ext.kotlin_version = '1.2.30'
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
version = '0.5.2' // do not forget to change version in Yui.kt
mainClassName = "totoro.yui.YuiKt"
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileKotlin {
kotlinOptions {
jvmTarget = '1.8'
}
}
repositories {
mavenCentral()
jcenter()
maven {
url = "http://dl.bintray.com/kotlin/exposed"
}
}
configurations {
shadow
}
dependencies {
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jre8'
compile group: 'org.jetbrains.kotlin', name: 'kotlin-compiler'
compile group: 'org.jetbrains.kotlin', name: 'kotlin-script-util'
compile group: 'org.jetbrains.kotlin', name: 'kotlin-script-runtime'
compile group: 'org.kitteh.irc', name: 'client-lib', version: '4.0.1'
compile group: 'org.jsoup', name: 'jsoup', version: '1.11.3'
compile group: 'com.github.kittinunf.fuel', name: 'fuel', version: '1.12.1'
compile group: 'com.beust', name: 'klaxon', version: '3.0.1'
compile group: 'org.xerial', name: 'sqlite-jdbc', version: '3.21.0.1'
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'yui',
'Implementation-Version': version,
'Main-Class': 'totoro.yui.YuiKt'
}
baseName = project.name
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
task copyShadowedLibs(type: Copy) {
from configurations.shadow
into "$buildDir/libs"
}
tasks.fatJar.dependsOn(copyShadowedLibs)