-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
38 lines (32 loc) · 830 Bytes
/
build.gradle
File metadata and controls
38 lines (32 loc) · 830 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
37
38
plugins {
id 'java'
}
group = 'com.reider745'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
compileOnly 'com.github.Reider745:ZoteCoreLoader:beta-1.0.0'
runtimeOnly 'com.github.Reider745:ZoteCoreLoader:beta-1.0.0'
}
task copyDependency(type: Copy) {
from configurations.runtimeClasspath
include 'ZoteCoreLoader-*.jar'
into 'target'
rename { String fileName ->
'server.jar'
}
}
task buildjar(dependsOn: copyDependency, type: Jar) {
destinationDirectory = file('target/plugins')
from sourceSets.main.output
}
task runServer(dependsOn: buildjar, type: JavaExec) {
main = '-jar'
args "server.jar"
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
workingDir = "target"
}