-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
100 lines (89 loc) · 2.57 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10'
classpath 'org.jetbrains.kotlin:kotlin-serialization:1.4.10'
classpath 'org.jlleitschuh.gradle:ktlint-gradle:9.4.0'
}
}
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '6.0.0'
id 'io.freefair.lombok' version '5.2.1'
}
group = 'com.sharif'
mainClassName = 'com.sharif.thunder.Main'
version = '1.0.0'
sourceCompatibility = targetCompatibility = 1.8
apply plugin: 'application'
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'kotlinx-serialization'
apply plugin: 'org.jlleitschuh.gradle.ktlint'
repositories {
mavenCentral()
jcenter()
maven {
url 'https://dl.bintray.com/kotlin/exposed'
maven { url 'https://kotlin.bintray.com/kotlinx' }
}
maven {
url 'https://dl.bintray.com/sedmelluq/com.sedmelluq'
}
}
dependencies {
implementation ('net.dv8tion:JDA:4.2.0_207') {
exclude module: 'opus-java'
}
implementation 'com.jagrosh:jda-utilities:3.0.4'
implementation 'ch.qos.logback:logback-classic:1.2.3'
implementation 'com.sedmelluq:lavaplayer:1.3.50'
//for aarch64
//implementation 'com.sedmelluq:lavaplayer-natives-extra:1.3.13'
implementation 'com.jagrosh:JLyrics:0.4'
implementation 'com.github.natanbc:lavadsp:0.5.2'
implementation 'com.typesafe:config:1.4.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'io.undertow:undertow-core:2.2.0.Final'
implementation 'com.google.guava:guava:23.0'
implementation 'com.sparkjava:spark-core:2.9.2'
implementation 'com.h2database:h2:1.4.200'
compileOnly 'org.projectlombok:lombok:1.18.12'
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.4.10'
}
shadowJar {
archiveBaseName = 'thunder'
archiveVersion = ''
doLast {
//copies the jar into a place where the Dockerfile can find it easily (and users maybe too)
copy {
from 'build/libs/thunder-all.jar'
into '.'
}
}
}
compileJava.options.encoding = 'UTF-8'
compileJava.options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
tasks.withType(JavaCompile) {
generateLombokConfig.enabled = false
options.encoding = 'UTF-8'
}
compileKotlin {
kotlinOptions {
jvmTarget = '1.8'
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = '1.8'
}
}
ktlint {
disabledRules = ["no-wildcard-imports"]
}