-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
36 lines (30 loc) · 988 Bytes
/
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
group = "com.example" // TODO: Change this to your group
version = "1.0-SNAPSHOT" // TODO: Change this to your addon version
plugins {
alias(libs.plugins.kotlin)
alias(libs.plugins.paperweight)
alias(libs.plugins.nova)
}
repositories {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://repo.xenondevs.xyz/releases")
}
dependencies {
paperweight.paperDevBundle(libs.versions.paper)
implementation(libs.nova)
}
addon {
name = project.name.replaceFirstChar(Char::uppercase)
version = project.version.toString()
main = "com.example.ExampleAddon" // TODO: Change this to your main class
// output directory for the generated addon jar is read from the "outDir" project property (-PoutDir="...")
val outDir = project.findProperty("outDir")
if (outDir is String)
destination.set(File(outDir))
}
afterEvaluate {
tasks.getByName<Jar>("jar") {
archiveClassifier = ""
}
}