-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
62 lines (49 loc) · 1.38 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
plugins {
id 'java'
}
group 'com.cerrealic'
version '1.0.1'
sourceCompatibility = 1.8
project.configurations.implementation.setCanBeResolved(true)
jar {
manifest {
attributes('Main-Class': 'com.cerrealic.neuteredcreepers.NeuteredCreepersPlugin')
}
from {
configurations.implementation.collect { it.isDirectory() ? it : zipTree(it) }
}
}
repositories {
flatDir {
dirs 'C:/Users/Stan/Spigot/BuildTools/'
}
jcenter()
mavenCentral()
// Spigot-API
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
/*
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://jitpack.io'
}
mavenLocal()
}
dependencies {
compileOnly 'org.spigotmc:spigot:1.16.4' // The full Spigot server with no shadowing. Requires mavenLocal.
implementation 'com.github.squiig:cerspi-lib:3.3.9'
}
//configurations.implementation {
// resolutionStrategy.cacheChangingModulesFor 30, 'seconds'
//}