This repository was archived by the owner on Nov 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
90 lines (76 loc) · 2.27 KB
/
build.gradle
File metadata and controls
90 lines (76 loc) · 2.27 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
buildscript {
ext.kotlin_version = '1.3.21'
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.31'
}
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
version '1.0-SNAPSHOT'
mainClassName = "mexan1ck.MeXBotKt"
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation("net.dv8tion:JDA:3.8.3_462")
testCompile group: 'junit', name: 'junit', version: '4.12'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
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-jdk8'
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.2'
compile group: 'org.jsoup', name: 'jsoup', version: '1.11.3'
compile group: 'com.github.kittinunf.fuel', name: 'fuel', version: '1.15.0'
compile group: 'com.beust', name: 'klaxon', version: '3.0.5'
compile group: 'org.xerial', name: 'sqlite-jdbc', version: '3.23.1'
compile group: 'net.oneandone.reflections8', name: 'reflections8', version: '0.10.5'
compile group: 'io.magicthegathering', name: 'kotlinsdk', version: '1.0.3'
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'MeXDiscordBot',
'Implementation-Version': version,
'Main-Class': 'mexan1ck.MeXBotKt'
}
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)