forked from BeMacized/Grimoire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (56 loc) · 2.22 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
apply plugin: 'java'
apply plugin: 'application'
group 'net.bemacized'
version '2.0'
mainClassName = 'net.bemacized.grimoire.Grimoire'
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.google.code.findbugs:annotations:3.0.1'
compile 'net.dv8tion:JDA:3.3.1_290'
compile 'org.reflections:reflections:0.9.11'
compile 'org.jongo:jongo:1.3.0'
compile 'commons-io:commons-io:2.5'
compile group: 'org.mongodb', name: 'mongo-java-driver', version: '3.4.2'
compile group: 'org.jsoup', name: 'jsoup', version: '1.7.2'
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.1'
compile group: 'commons-codec', name: 'commons-codec', version: '1.10'
compile group: 'org.apache.commons', name: 'commons-text', version: '1.3'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.6'
compile 'org.reflections:reflections:0.9.11'
compile group: 'org.apache.xmlgraphics', name: 'batik-transcoder', version: '1.9.1'
compile 'org.apache.xmlgraphics:batik-codec:1.7'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.3'
compile group: 'es.moki.ratelimitj', name: 'ratelimitj-inmemory', version: '0.4.0.M2'
compile group: 'joda-time', name: 'joda-time', version: '2.9.9'
compile 'com.github.Ritaja:java-exchange-rates:1.0'
compile 'com.mashape.unirest:unirest-java:1.4.9'
compile 'com.google.maps:google-maps-services:0.2.2'
compile 'org.slf4j:slf4j-nop:1.7.25'
compile 'org.jetbrains:annotations:15.0'
compile "net.dean.jraw:JRAW:1.0.0"
}
task prepareSources(type: Copy) {
from('src/main/resources')
into('build/src/main/resources')
filter { line -> line.replaceAll('%APP_VERSION_TOKEN%', version) }
}
task uberjar(type: Jar) {
dependsOn prepareSources
from files(sourceSets.main.output.classesDir)
from { configurations.compile.collect { zipTree(it) } } {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
from('build/src/main/resources') {
include '*.*'
}
manifest {
attributes 'Main-Class': 'net.bemacized.grimoire.Grimoire'
}
}