This repository has been archived by the owner on Feb 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
171 lines (147 loc) · 5.09 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/*
Copyright 2018 Sam Pritchard
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
buildscript {
ext {
dokka_version = '0.9.17'
shadow_version = '2.0.4'
kotlin_version = '1.2.61'
versions_version = '0.20.0'
}
repositories {
jcenter()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.github.jengelman.gradle.plugins:shadow:$shadow_version"
classpath "com.github.ben-manes:gradle-versions-plugin:$versions_version"
}
}
apply plugin: 'kotlin'
apply plugin: 'org.jetbrains.dokka'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'maven-publish'
apply plugin: 'idea'
apply plugin: 'application'
group 'basalt'
version '3.1.1'
description = 'A high-performance, distributed audio node server based on Lavaplayer, Magma and Undertow.'
sourceCompatibility = 10
targetCompatibility = 10
mainClassName = 'basalt.MainKt'
repositories {
jcenter()
maven {url 'https://jitpack.io'}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
moduleName = 'Basalt'
outputFormat = 'html'
outputDirectory = javadoc.destinationDir
jdkVersion = 8
includeNonPublic = true
linkMapping {
dir = 'src/main/kotlin'
url = 'https://github.com/SamOphis/Basalt/blob/master/src/main/kotlin'
suffix = '#L'
}
packageOptions {
prefix = 'basalt.messages'
suppress = true
}
includes = ['basalt.md']
inputs.dir 'src/main/kotlin'
}
task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
task updateDocs(type: Copy, dependsOn: javadocJar) {
from "${buildDir}/docs/javadoc"
into "docs"
}
task wrapper(type: Wrapper) {
gradleVersion = '4.9'
}
shadowJar {
classifier = 'withDependencies'
}
build {
dependsOn clean
dependsOn jar
dependsOn sourcesJar
dependsOn javadocJar
dependsOn shadowJar
dependsOn updateDocs
dependsOn test
jar.mustRunAfter clean
javadocJar.mustRunAfter jar
sourcesJar.mustRunAfter javadocJar
shadowJar.mustRunAfter sourcesJar
}
artifacts {
archives sourcesJar
archives javadocJar
}
ext {
vertx_version = '3.5.3'
magma_version = '0.5.0'
jda_async_provider_version = '1.3'
jda_native_audio_send_version = '1.0.6'
lavaplayer_version = '1.3.7'
jsoniter_version = '0.9.23'
jackson_yaml_version = '2.9.6'
sentry_logback_version = '1.7.5'
undertow_websocket_version = '2.0.12.Final'
fastutil_version = '8.2.1'
javassist_version = '3.23.1-GA'
kotlin_coroutines_version = '0.24.0'
commons_lang3_version = '3.7' // for jda async packet provider :/
oshi_version = '3.7.2'
}
dependencies {
compile group: 'space.npstr', name: 'Magma', version: magma_version
compile group: 'io.vertx', name: 'vertx-core', version: vertx_version
compile group: 'io.vertx', name: 'vertx-lang-kotlin', version: vertx_version
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlin_version
compile group: 'com.github.shredder121', name: 'jda-async-packetprovider', version: jda_async_provider_version
compile group: 'com.sedmelluq', name: 'jda-nas', version: jda_native_audio_send_version
compile group: 'com.sedmelluq', name: 'lavaplayer', version: lavaplayer_version
compile group: 'com.jsoniter', name: 'jsoniter', version: jsoniter_version
compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: jackson_yaml_version
compile group: 'io.sentry', name: 'sentry-logback', version: sentry_logback_version
compile group: 'io.undertow', name: 'undertow-websockets-jsr', version: undertow_websocket_version
compile group: 'it.unimi.dsi', name: 'fastutil', version: fastutil_version
compile group: 'org.javassist', name: 'javassist', version: javassist_version
compile group: 'org.apache.commons', name: 'commons-lang3', version: commons_lang3_version
compile group: 'com.github.oshi', name: 'oshi-core', version: oshi_version
implementation group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: kotlin_coroutines_version
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
kotlin {
experimental {
coroutines 'enable'
}
}