-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
33 lines (26 loc) · 976 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
plugins {
id 'java'
}
def spigotVersion = "1.14.4-R0.1-SNAPSHOT"
def pluginName = "MessageNotifier"
group 'net.minecord'
version '0.2-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
}
dependencies {
compileOnly group: "org.spigotmc", name: "spigot-api", version: spigotVersion
compileOnly group: "org.spigotmc", name: "plugin-annotations", version: "1.2.0-SNAPSHOT"
testCompile group: 'junit', name: 'junit', version: '4.12'
}
jar {
archiveName pluginName + '-' + version + '.jar'
manifest {
attributes 'Main-Class': group + '.' + pluginName.toLowerCase() + '.' + pluginName
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}