-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
59 lines (51 loc) · 1.53 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
import kotlin.system.exitProcess
plugins {
java
alias(libs.plugins.publishdata)
id("com.github.johnrengelman.shadow") version "8.1.1"
}
if (!File("$rootDir/.git").exists()) {
logger.lifecycle("""
**************************************************************************************
You need to fork and clone this repository! Don't download a .zip file.
If you need assistance, consult the GitHub docs: https://docs.github.com/get-started/quickstart/fork-a-repo
**************************************************************************************
""".trimIndent()
).also { exitProcess(1) }
}
group = "net.onelitefeather"
version = "0.1.0"
description = "Provides block protection for your server."
dependencies {
implementation(platform(libs.intellectual.sites.bom))
compileOnly(libs.fawe.core)
compileOnly(libs.fawe.bukkit)
compileOnly(libs.papermc.api)
implementation(libs.bstats)
implementation(libs.hikaricp)
implementation(libs.oshi.core)
}
java {
withSourcesJar()
withJavadocJar()
toolchain.languageVersion = JavaLanguageVersion.of(21)
}
publishData {
addBuildData()
useEldoNexusRepos(false)
publishTask("shadowJar")
}
tasks {
jar {
archiveClassifier.set("original")
manifest {
attributes["paperweight-mappings-namespace"] = "mojang"
}
}
shadowJar {
dependencies {
relocate("org.bstats", project.group.toString())
relocate("com.zaxxer", project.group.toString())
}
}
}