-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
67 lines (48 loc) · 1.02 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
group 'org.sdd'
version '2.0.0'
apply plugin: 'java'
apply plugin: 'application'
sourceCompatibility = 1.8
targetCompatibility = 1.8
mainClassName = 'org.sdd.shenron.Main'
repositories {
mavenCentral()
jcenter()
maven {
url 'http://litarvan.github.io/maven'
}
}
jar {
from "LICENSE"
manifest {
attributes 'Main-Class': mainClassName
}
}
task dist(type: Jar) {
from "LICENSE"
baseName = archivesBaseName + '-all'
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
}
with jar
manifest {
attributes 'Main-Class': mainClassName
}
}
dependencies {
compile('fr.litarvan.krobot:krobot:1.6.0') {
exclude group: 'net.dv8tion'
}
compile 'net.dv8tion:JDA:3.0.BETA_96'
}
// Heroku start
task stage(dependsOn: ['build', 'clean'])
build.mustRunAfter clean
task copyToLib(type: Copy) {
into "$buildDir/lib"
from(configurations.compile)
}
stage.dependsOn copyToLib
// Heroku end