-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
89 lines (73 loc) · 2.54 KB
/
build.gradle.kts
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
project.version = "1.6.2.1"
plugins {
kotlin("jvm") version "2.0.21"
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
id("io.github.goooler.shadow") version "8.1.8"
id("maven-publish")
}
publishing {
publications {
register<MavenPublication>("maven") {
from(components["java"])
}
}
}
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://repo.codemc.io/repository/maven-releases/")
maven("https://repo.codemc.io/repository/maven-snapshots/")
maven("https://maven.evokegames.gg/snapshots")
maven("https://jitpack.io")
}
dependencies {
compileOnly("org.projectlombok:lombok:1.18.36")
annotationProcessor("org.projectlombok:lombok:1.18.36")
compileOnly("org.spigotmc:spigot-api:1.19.4-R0.1-SNAPSHOT")
compileOnly("com.github.retrooper:packetevents-spigot:2.7.0")
compileOnly("com.github.LoneDev6:API-ItemsAdder:3.6.1")
implementation("me.tofaa.entitylib:spigot:2.4.11-SNAPSHOT")
implementation("net.kyori:adventure-text-minimessage:4.17.0")
implementation("com.github.technicallycoded:FoliaLib:main-SNAPSHOT")
library(kotlin("stdlib"))
library(kotlin("reflect"))
}
kotlin {
jvmToolchain(17)
}
tasks.compileKotlin {
compilerOptions.javaParameters = true
}
tasks.build {
dependsOn(tasks.shadowJar)
}
val pluginPackage = "com.maximde.hologramlib"
tasks.shadowJar {
archiveFileName.set("HologramLib-$version.jar")
exclude(
"DebugProbesKt.bin",
"*.SF", "*.DSA", "*.RSA", "META-INF/**", "OSGI-INF/**",
"deprecated.properties", "driver.properties", "mariadb.properties", "mozilla/public-suffix-list.txt",
"org/slf4j/**", "org/apache/logging/slf4j/**", "org/apache/logging/log4j/**", "Log4j-*"
)
dependencies {
exclude(dependency("org.jetbrains.kotlin:.*"))
exclude(dependency("org.jetbrains.kotlinx:.*"))
exclude(dependency("org.checkerframework:.*"))
exclude(dependency("org.jetbrains:annotations"))
exclude(dependency("org.slf4j:.*"))
}
rootDir.resolve("gradle").resolve("relocations.txt").readLines().forEach {
if (it.isNotBlank()) relocate(it, "$pluginPackage.__relocated__.$it")
}
}
bukkit {
version = project.version.toString()
main = "com.maximde.hologramlib.HologramLib"
apiVersion = "1.19"
author = "MaximDe"
foliaSupported = true
depend = listOf("packetevents")
softDepend = listOf("ItemsAdder")
}