-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
36 lines (30 loc) · 812 Bytes
/
build.gradle
File metadata and controls
36 lines (30 loc) · 812 Bytes
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
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
/*tasks.withType(JavaExec) {
if (System.getProperty('DEBUG', 'false') == 'true') {
jvmArgs '-Xdebug', '-Xrunjdwp:transport=debug_socket,server=y,suspend=y,address=8000'
}
}*/
task copyJarToBin(type: Copy) {
from ".\\build\\libs\\CMDHelper.jar"
into "E:\\TestServers\\Minecraft\\Spigot 1.11.2\\plugins"
}
build.finalizedBy(copyJarToBin)
repositories {
mavenCentral()
maven {
name 'Spigot'
url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"
}
maven {
name 'BungeeCord'
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:' + project.property("apiversion")
}