-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
43 lines (38 loc) · 1.24 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
/*
build.gradle for DefaultDance Minecraft plugin.
*/
plugins {
id 'java'
}
group 'me.diademiemi.defaultdance'
version '1.0.0'
repositories {
/*
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.
*/
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
}
test {
useJUnitPlatform()
}
/* Assume you have built a jar from earlier production.
This will ensure removal of any resources that was cached in any earlier build,
so that the new jar you produce will generate the newest version of your resources. */
processResources {
doFirst {
file("$buildDir/resources/main").listFiles().each {
it.delete()
}
}
}