-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
76 lines (67 loc) · 2.67 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
plugins {
id 'java'
}
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
url = 'https://hub.spigotmc.org/nexus/content/repositories/public/'
// As of Gradle 5.1, you can limit this to only those
// dependencies you expect from it
content {
includeGroup 'org.bukkit'
includeGroup 'org.spigotmc'
}
}
/*
As Spigot-API depends on the Bungeecord ChatComponent-API,
we need to add the Sonatype OSS repository, as Gradle,
in comparison to maven, doesn't want to understand the ~/.m2
directory unless added using mavenLocal(). Maven usually just gets
it from there, as most people have run the BuildTools at least once.
This is therefore not needed if you're using the full Spigot/CraftBukkit,
or if you're using the Bukkit API.
*/
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url = 'https://oss.sonatype.org/content/repositories/central' }
// mavenLocal() // This is needed for CraftBukkit and Spigot.
mavenCentral()
}
jar {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
task copyJarToBin{
copy{
from jar
into '/Users/kuinhoe/Desktop/minecraft/plugins'
}
}
task copyJarToModServer{
copy{
from jar
into '/Users/kuinhoe/Desktop/avalon_mod_server/plugins'
}
}
task copyJarToModServerNew{
copy{
from jar
into '/Users/kuinhoe/Desktop/Avalon_mod_server_new/plugins'
}
}
dependencies {
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
compileOnly 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT' // The Spigot API with no shadowing. Requires the OSS repo.
compile group: 'org.apache.commons', name: 'commons-collections4', version: '4.1'
compileOnly 'org.projectlombok:lombok:1.18.6'
annotationProcessor 'org.projectlombok:lombok:1.18.6'
compile group: 'com.mashape.unirest', name: 'unirest-java', version: '1.4.7'
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
compile group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.0'
testCompileOnly 'org.projectlombok:lombok:1.18.6'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.6'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.mockito', name: 'mockito-core', version: '3.3.3'
testCompile 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT' // The Spigot API with no shadowing. Requires the OSS repo.
testImplementation 'com.github.seeseemelk:MockBukkit-v1.16:0.5.0'
}