-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
96 lines (86 loc) · 3.91 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
plugins {
id 'java'
id 'java-library'
id "io.freefair.lombok" version "6.3.0"
id "com.github.johnrengelman.shadow" version "7.1.2"
}
group = 'com.volmit'
version = '1.0.0'
def pname = "Retina"
def main = 'com.volmit.adapt.Adapt'
def apiVersion = '1.19'
shadowJar {
append("plugin.yml")
relocate 'manifold', 'com.volmit.retina.util.manifold'
relocate 'art.arcane', 'com.volmit.retina.util.arcane'
relocate 'io.papermc.lib', 'com.volmit.retina.util.paper'
relocate 'net.kyori', 'com.volmit.retina.util.kyori'
relocate 'ChumBukkit.extensions', 'com.volmit.retina.util.extensions'
relocate 'IrisBukkit.extensions', 'com.volmit.retina.util.extensions'
relocate 'Fukkit.extensions', 'com.volmit.retina.util.extensions'
relocate 'Amulet.extensions', 'com.volmit.retina.util.extensions'
dependencies {
include(dependency('io.papermc:paperlib'))
include(dependency('net.kyori:'))
include(dependency('systems.manifold:'))
include(dependency('xyz.xenondevs:'))
include(dependency('art.arcane:'))
}
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 60, 'minutes'
resolutionStrategy.cacheDynamicVersionsFor 60, 'minutes'
}
if (JavaVersion.current().toString() != "17") {
System.err.println()
System.err.println("=========================================================================================================")
System.err.println("You must run gradle on Java 17. You are using " + JavaVersion.current())
System.err.println()
System.err.println("=== For IDEs ===")
System.err.println("1. Configure the project for Java 17")
System.err.println("2. Configure the bundled gradle to use Java 17 in settings")
System.err.println()
System.err.println("=== For Command Line (gradlew) ===")
System.err.println("1. Install JDK 17 from https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html")
System.err.println("2. Set JAVA_HOME environment variable to the new jdk installation folder such as C:\\Program Files\\Java\\jdk-17.0.1")
System.err.println("3. Open a new command prompt window to get the new environment variables if need be.")
System.err.println("=========================================================================================================")
System.err.println()
System.exit(69)
}
file(jar.archiveFile.get().getAsFile().getParentFile().getParentFile().getParentFile().getAbsolutePath() + '/build/resources/main/plugin.yml').delete()
processResources {
filesMatching('**/plugin.yml') {
expand(
'name': pname.toString(),
'version': version.toString(),
'main': main.toString(),
'apiversion': apiVersion.toString()
)
}
}
repositories {
maven { url "https://arcanearts.jfrog.io/artifactory/archives" }
mavenCentral()
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
implementation "org.spigotmc:spigot-api:1.19.4-R0.1-SNAPSHOT"
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'com.google.code.gson:gson:2.9.0'
implementation 'org.zeroturnaround:zt-zip:1.15'
implementation 'org.bitbucket.mstrobel:procyon-core:0.6.0'
implementation 'org.bitbucket.mstrobel:procyon-compilertools:0.6.0'
implementation 'org.bitbucket.mstrobel:procyon-reflection:0.6.0'
implementation 'com.google.guava:guava:31.1-jre'
implementation 'com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4.2'
implementation 'org.apache-extras.beanshell:bsh:2.0b6'
// Shaded
implementation 'art.arcane:Curse:23.4.3'
implementation 'art.arcane:Source:23.4.3'
implementation 'art.arcane:Spatial:22.11.1'
implementation 'art.arcane:BitPack:22.11.1'
implementation 'art.arcane:MultiBurst:22.9.2'
implementation 'com.dfsek:Paralithic:0.4.0'
}