This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
114 lines (96 loc) · 2.92 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group = 'net'
version = '4.5.1'
repositories {
mavenCentral()
maven {
name = "spigotmc-repo"
url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"
}
maven {
name 'codemc'
url 'https://repo.codemc.org/repository/maven-public/'
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/groups/public/"
}
maven {
name = "jitpack.io"
url = "https://jitpack.io"
}
maven {
name = "loohp-repo"
url = "https://repo.loohpjames.com/repository"
}
maven {
name = "m2-dv8tion"
url = "https://m2.dv8tion.net/releases"
}
maven {
name = "Scarsz-Nexus"
url = "https://nexus.scarsz.me/content/groups/public/"
}
maven {
url = 'https://maven.maxhenkel.de/repository/public'
}
maven {
name = "iridiumdevelopment"
url = "https://nexus.iridiumdevelopment.net/repository/maven-releases/"
}
maven {
url = "https://repo.plo.su"
}
}
dependencies {
implementation files("LICENSE")
implementation "com.iridium:IridiumColorAPI:1.0.6"
implementation 'org.jetbrains:annotations:24.0.0'
compileOnly "su.plo.voice.api:server:2.0.3"
compileOnly 'net.skinsrestorer:skinsrestorer-api:15.0.4'
compileOnly "com.loohp:InteractiveChat:4.2.7.2"
compileOnly "com.github.MilkBowl:VaultAPI:1.7.1"
compileOnly "me.clip:placeholderapi:2.11.3"
compileOnly "de.maxhenkel.voicechat:voicechat-api:2.4.11"
compileOnly "net.luckperms:api:5.4"
compileOnly "com.github.LeonMangler:SuperVanish:6.2.17"
compileOnly "com.discordsrv:discordsrv:1.25.1"
compileOnly "net.md-5:bungeecord-api:1.16-R0.3"
compileOnly "org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT"
compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
testCompileOnly 'org.projectlombok:lombok:1.18.30'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.30'
}
def targetJavaVersion = 16
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
options.release = targetJavaVersion
}
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
shadowJar {
archiveFileName = "FlectoneChat-" + version + ".jar"
dependencies {
exclude(dependency('org.jetbrains:annotations:24.0.0'))
}
}