-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
102 lines (84 loc) · 2.94 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
102 lines (84 loc) · 2.94 KB
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
project.version = "1.8.2"
group = "com.github.max1mde"
version = "1.8.5"
plugins {
kotlin("jvm") version "2.1.10"
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
id("com.gradleup.shadow") version "9.4.1"
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://jitpack.io")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven {
name = "tcoded-releases"
url = uri("https://repo.tcoded.com/releases")
}
maven("https://maven.pvphub.me/tofaa")
}
dependencies {
compileOnly("org.projectlombok:lombok:1.18.44")
annotationProcessor("org.projectlombok:lombok:1.18.44")
compileOnly("studio.o7:megalodon-api:0.0.16")
compileOnly("org.spigotmc:spigot-api:1.19.4-R0.1-SNAPSHOT")
compileOnly("com.github.retrooper:packetevents-spigot:2.10.0")
compileOnly("com.github.LoneDev6:API-ItemsAdder:3.6.1")
compileOnly("me.clip:placeholderapi:2.11.6")
compileOnly("com.arcaniax:HeadDatabase-API:1.3.2")
implementation("io.github.tofaa2:spigot:3.0.3-SNAPSHOT")
implementation("net.kyori:adventure-text-minimessage:4.17.0")
implementation("com.tcoded:FoliaLib:0.5.1")
implementation("com.github.HologramLib:AddonLib:1.1.0")
library(kotlin("stdlib"))
library(kotlin("reflect"))
}
kotlin {
jvmToolchain(25)
}
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.Main"
apiVersion = "1.19"
author = "MaximDe"
foliaSupported = true
depend = listOf("packetevents")
softDepend = listOf("ItemsAdder", "PlaceholderAPI", "HeadDatabase", "megalodon")
name = "HologramLib"
}