-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
43 lines (36 loc) · 1.37 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
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '2.0.2'
id 'com.github.ben-manes.versions' version '0.17.0'
}
mainClassName = 'io.github.jdaapplications.guildbot.GuildBot'
group = 'io.github.jda-applications'
version = '2.0'
sourceCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
compile group: 'net.dv8tion', name: 'JDA', version: '3.5.1_339'
// compile group: 'com.sedmelluq', name: 'lavaplayer', version: '1.2.51'
compile group: 'org.hjson', name: 'hjson', version: '3.0.0'
compile group: 'org.codehaus.groovy', name: 'groovy-jsr223', version: '2.4.13'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.7'
compile group: 'commons-io', name: 'commons-io', version: '2.6'
compile group: 'org.json', name: 'json', version: '20180130'
}
compileJava.options.encoding = 'UTF-8'
dependencyUpdates.resolutionStrategy = {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}
}