forked from VolmitSoftware/React
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
102 lines (92 loc) · 3.24 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
plugins {
id 'java'
id 'java-library'
id "com.github.johnrengelman.shadow" version "6.1.0"
}
group 'com.volmit.react'
version '6.646'
repositories {
mavenCentral()
maven {
url = "http://repo.volmit.com/repository/volmit/"
}
}
String releasePath = project.rootDir.absolutePath + "\\release\\" + project.version + "\\React-" + project.version + ".jar"
String devPath = "C:\\Users\\cyberpwn\\Documents\\development\\server\\plugins\\React.jar"
shadowJar {
project.configurations.implementation.canBeResolved = true
project.configurations.runtime.canBeResolved = true
project.configurations.api.canBeResolved = false
project.configurations.compile.canBeResolved = true
}
task release {
group 'react'
dependsOn 'configureRelease'
dependsOn 'shadowJar'
file(jar.archiveFile.get().getAsFile().getParentFile().getParentFile().getParentFile().getParentFile().getAbsolutePath() + '/build/resources/main/plugin.yml').delete()
}
task development {
group 'react'
dependsOn 'configureDev'
dependsOn 'shadowJar'
file(jar.archiveFile.get().getAsFile().getParentFile().getParentFile().getParentFile().getAbsolutePath() + '/build/resources/main/plugin.yml').delete()
}
task configureDev {
group 'react-utils'
doFirst {
shadowJar {
zip64 true
archiveFileName = devPath
}
}
}
task configureRelease {
group 'react-utils'
doFirst {
shadowJar {
dependencies {
include dependency('org.bstats:bstats-bukkit')
include dependency('org.zeroturnaround:zt-zip')
}
dependencies {
relocate('org.bstats.bukkit', project.group + '.libraries.bstats')
relocate('org.zeroturnaround.zip', project.group + '.libraries.zip')
}
zip64 true
minimize()
archiveFileName = releasePath
}
}
}
processResources {
filesMatching(["**/plugin.yml"]) {
expand(
version: version,
name: project.name,
)
}
}
dependencies {
implementation 'org.zeroturnaround:zt-zip:1.13'
implementation 'org.bstats:bstats-bukkit:1.8'
annotationProcessor 'org.projectlombok:lombok:1.18.16'
compileOnly 'org.projectlombok:lombok:1.18.16'
compileOnly 'org.spigotmc.full:1.12.2:1.12.2'
//compileOnly 'org.bukkit.craftbukkit:1.16.5:1.16.5'
compileOnly 'org.bukkit.craftbukkit:1.16.4:1.16.4'
compileOnly 'org.bukkit.craftbukkit:1.16.3:1.16.3'
compileOnly 'org.bukkit.craftbukkit:1.16.2:1.16.2'
compileOnly 'org.bukkit.craftbukkit:1.16.1:1.16.1'
compileOnly 'org.bukkit.craftbukkit:1.15.1:1.15.1'
compileOnly 'org.bukkit.craftbukkit:1.14.4:1.14.4'
compileOnly 'org.bukkit.craftbukkit:1.13.2:1.13.2'
compileOnly 'org.bukkit.craftbukkit:1.12.2:1.12.2'
compileOnly 'org.bukkit.craftbukkit:1.11.2:1.11.2'
compileOnly 'org.bukkit.craftbukkit:1.10.2:1.10.2'
compileOnly 'org.bukkit.craftbukkit:1.9.4:1.9.4'
compileOnly 'org.bukkit.craftbukkit:1.8.8:1.8.8'
compileOnly 'com.comphenix.protocol:ProtocolLib:4.5.1'
compileOnly 'io.lumine.xikage:MythicMobs:4.9.1'
compileOnly 'me.clip:placeholderapi:2.9.2'
compileOnly 'com.boydti:fawe-api:latest'
}