-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
127 lines (96 loc) · 3.56 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'com.github.gmazzo.buildconfig' version '5.3.5'
}
jar.enabled = false
subprojects {
apply plugin: 'java'
apply plugin: 'com.github.gmazzo.buildconfig'
if (!project.name.is("fabric")) {
apply plugin: 'com.github.johnrengelman.shadow'
java {
sourceCompatibility = java_version
targetCompatibility = java_version
}
shadowJar {
archiveFileName = "FlectonePulse-" + project.name + "-" + project_version + ".jar"
if (!project.name.is("velocity") && !project.name.is("bungeecord")) {
relocate("com.alessiodp.libby", "net.flectone.pulse.library.libby")
relocate("com.google.inject", "net.flectone.pulse.library.guice")
relocate("com.google.common", "net.flectone.pulse.library.guava")
relocate("net.elytrium.serializer", "net.flectone.pulse.library.elytrium")
relocate("com.github.retrooper.packetevents", "net.flectone.pulse.library.packetevents")
relocate("io.github.retrooper.packetevents", "net.flectone.pulse.library.packetevents.impl")
relocate("net.kyori.adventure", "net.flectone.pulse.library.adventure")
// relocate("me.imdanix.text", "net.flectone.pulse.library.minitranslator")
}
minimize()
}
}
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
group = "net.flectone.pulse." + project.name
project.buildDir(new File(rootProject.projectDir, "build/" + project.name))
repositories {
mavenCentral()
maven {
url = 'https://jitpack.io'
}
maven {
name = "spigotmc-repo"
url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/groups/public/"
}
maven {
name = "aikar"
url = "https://repo.aikar.co/content/groups/aikar/"
}
maven {
url = "https://repo.codemc.io/repository/maven-releases/"
}
maven {
url = 'https://repo.minebench.de'
}
maven {
url = "https://s01.oss.sonatype.org/content/repositories/snapshots"
}
maven {
url = "https://libraries.minecraft.net"
}
maven {
url = "https://maven.evokegames.gg/snapshots"
}
maven {
url = "https://maven.maxhenkel.de/repository/public"
}
maven {
url = "https://repo.extendedclip.com/content/repositories/placeholderapi/"
}
maven {
url = "https://repo.plasmoverse.com/releases"
}
maven {
url = "https://repo.plasmoverse.com/snapshots"
}
maven {
url = "https://repo.loohpjames.com/repository"
}
maven {
url = "https://repo.diogotc.com/releases"
}
}
dependencies {
compileOnly "org.jetbrains:annotations:$jetbrains_annotations_version"
compileOnly "org.projectlombok:lombok:$lombok_version"
annotationProcessor "org.projectlombok:lombok:$lombok_version"
compileOnly "com.google.inject:guice:$guice_version"
compileOnly "net.kyori:adventure-api:$adventure_api"
compileOnly "org.apache.logging.log4j:log4j-core:$log4j_core_version"
}
}