-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
38 lines (33 loc) · 871 Bytes
/
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
plugins {
id 'com.sedmelluq.jdaction' version '1.0.2'
}
subprojects {
apply plugin: 'java'
repositories {
mavenCentral()
jcenter()
}
sourceCompatibility = 1.9
dependencies {
compile 'net.dv8tion:JDA:3.5.0_327'
compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.8.1'
compile group: 'org.pf4j', name: 'pf4j', version: '2.1.0'
}
configurations {
provided
compile.extendsFrom provided
}
jar {
dependsOn configurations.runtime
}
}
task copyJars(type: Copy, dependsOn: subprojects.jar) {
from(subprojects.jar)
into project.file('dist/plugins')
include 'plugin-*.jar'
}
task copyServer(type: Copy) {
from (project.file("server/build/install/server"))
into project.file('dist/')
}
task copyFiles(dependsOn: [copyJars,copyServer])