-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
70 lines (56 loc) · 1.52 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
plugins {
id 'java'
id 'idea'
id 'eclipse'
id 'application'
id 'com.github.johnrengelman.shadow' version '5.2.0'
}
group 'codedcosmos'
version '2.1'
mainClassName = 'codedcosmos.enderbot.core.EnderBot'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
// As of Gradle 5.1, you can limit this to only those
// dependencies you expect from it
content {
includeGroup 'org.bukkit'
includeGroup 'org.spigotmc'
}
}
}
sourceSets {
main.resources.srcDirs = ['res']
main.java.srcDirs = ['src']
}
dependencies {
compile 'net.dv8tion:JDA:4.2.0_192'
compile 'com.google.api-client:google-api-client:1.23.0'
compile 'com.google.oauth-client:google-oauth-client-jetty:1.23.0'
compile 'com.google.apis:google-api-services-drive:v3-rev110-1.23.0'
compileOnly 'org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT'
}
jar {
manifest {
attributes 'Main-Class': mainClassName
}
from {
configurations.runtime.collect {
it.isDirectory() ? it : zipTree(it)
}
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
}
}
task runDir(dependsOn: classes, type: JavaExec) {
main = mainClassName
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
workingDir = new File('../run')
}