forked from boxbeam/RedLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (59 loc) · 1.13 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
plugins {
id 'java'
}
targetCompatibility = 1.8
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
mavenLocal()
}
dependencies {
compileOnly "org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT"
}
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'res'
}
}
}
task updateJars {
doLast {
copy {
from 'build/libs'
into '/home/redempt/Desktop/Spigot/1.8/plugins'
}
copy {
from 'build/libs'
into '/home/redempt/Desktop/Spigot/1.11/plugins'
}
copy {
from 'build/libs'
into '/home/redempt/Desktop/Spigot/1.12/plugins'
}
copy {
from 'build/libs'
into '/home/redempt/Desktop/Spigot/1.13/plugins'
}
copy {
from 'build/libs'
into '/home/redempt/Desktop/Spigot/1.14/plugins'
}
copy {
from 'build/libs'
into '/home/redempt/Desktop/Spigot/1.15/plugins'
}
copy {
from 'build/libs'
into '/home/redempt/Desktop/Spigot/1.16/plugins'
}
}
}
task deploy(dependsOn: ["jar", "updateJars"]) {
updateJars.mustRunAfter jar
}