forked from Darkside138/DiscordSoundboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
90 lines (76 loc) · 2.39 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
buildscript {
ext {
springBootVersion = '2.2.0.RELEASE'
}
repositories {
jcenter()
mavenCentral()
maven {
url 'https://dl.bintray.com/sedmelluq/com.sedmelluq'
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("org.springframework.boot:spring-boot-starter-web:${springBootVersion}")
classpath("org.springframework.boot:spring-boot-starter-jersey:${springBootVersion}")
}
}
plugins {
id 'java'
id 'idea'
id 'distribution'
id 'org.springframework.boot' version '2.2.0.RELEASE'
id 'application'
}
mainClassName = 'net.dirtydeeds.discordsoundboard.MainController'
project.version = '3.0.4'
sourceCompatibility = 1.8
targetCompatibility = 1.8
bootJar {
manifest {
attributes 'Implementation-Title': rootProject.name,
'Implementation-Version': project.version
}
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile 'net.dv8tion:JDA:4.0.0_54'
compile 'com.sedmelluq:lavaplayer:1.3.23'
//compile 'lavaplayer-natives-extra:1.3.13'
compile 'commons-io:commons-io:2.4'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.2.0.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-jersey', version: '2.2.0.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-jdbc', version: '2.2.0.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version: '2.2.0.RELEASE'
compile group: 'com.h2database', name: 'h2', version: '1.4.200'
compile "io.springfox:springfox-swagger2:2.4.0"
compile 'io.springfox:springfox-swagger-ui:2.4.0'
}
processResources {
exclude 'app.properties'
}
distributions {
main {
baseName = 'DiscordSoundboard'
}
}
bootJar {
exclude ("application.properties")
}
bootDistZip {
archiveName = 'DiscordSoundboard.zip'
into ("DiscordSoundboard/bin") {
from ('/src/main/resources/application.properties.example')
}
into("DiscordSoundboard/bin/static") {
from('src/main/webapp')
}
into("DiscordSoundboard/bin/sounds") {
from('sounds')
}
rename { String fileName ->
fileName.replace('application.properties.example', 'application.properties') }
}