forked from R3fleXi0n/BungeeOnlineTime
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
81 lines (67 loc) · 2.27 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id "org.jetbrains.kotlin.jvm" version "2.0.21"
id "org.jetbrains.kotlin.kapt" version "2.0.21"
id "com.gradleup.shadow" version "8.3.3"
}
repositories {
mavenCentral()
maven {
name "Sonatype"
url uri("https://oss.sonatype.org/content/repositories/snapshots")
}
maven {
name "PaperMC"
url uri("https://repo.papermc.io/repository/maven-public/")
}
maven { url uri("https://jitpack.io") }
}
dependencies {
implementation "org.xerial:sqlite-jdbc:3.46.1.3"
implementation "com.mysql:mysql-connector-j:9.1.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib:2.0.21"
implementation "org.yaml:snakeyaml:2.2"
implementation "org.slf4j:slf4j-api:2.0.12"
implementation "org.slf4j:slf4j-simple:2.0.12"
compileOnly "net.md-5:bungeecord-api:1.21-R0.1-SNAPSHOT"
compileOnly "com.velocitypowered:velocity-api:3.3.0-SNAPSHOT"
compileOnly "de.itsTyrion:PluginAnnotationProcessor:1.4"
kapt "de.itsTyrion:PluginAnnotationProcessor:1.4"
}
group = "lu.r3flexi0n"
version = "8.5.0"
description = "BungeeOnlineTime"
kotlin {
jvmToolchain 17
}
kapt.arguments {
arg "mcPluginVersion", version
}
shadowJar {
archiveClassifier = ""
minimize() {
exclude(dependency("org.xerial:sqlite-jdbc"))
exclude(dependency("com.mysql:mysql-connector-j"))
}
mergeServiceFiles()
relocate "kotlin", "de.itsTyrion.shaded.kotlin"
relocate "org.yaml", "de.itsTyrion.shaded.snakeyaml"
def base = "org/sqlite/native"
exclude "$base/*/ppc64/**", "$base/*/riscv64/**", "$base/*/arm*/**", "$base/*/x86/**" // uncommon architectures for MC servers
exclude "$base/Linux-*/**", "$base/Mac/**", "$base/FreeBSD/**" // and uncommon OS' for MC servers
}
tasks.register("fat", ShadowJar) {
from sourceSets.main.output
configurations = [project.configurations.runtimeClasspath]
archiveClassifier = "fat"
minimize() {
exclude(dependency("org.xerial:sqlite-jdbc"))
exclude(dependency("com.mysql:mysql-connector-j"))
}
mergeServiceFiles()
relocate "kotlin", "de.itsTyrion.shaded.kotlin"
relocate "org.yaml", "de.itsTyrion.shaded.snakeyaml"
}
build {
dependsOn([shadowJar, fat])
}