-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
47 lines (38 loc) · 1.41 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
plugins {
java
idea
id("sf.shadow-conventions")
}
allprojects {
group = "com.soulfiremc"
version = "1.0.0-SNAPSHOT"
description = "Example of how to make a plugin for SoulFire."
}
// libs are declared in gradle/libs.versions.toml
dependencies {
// To use the SoulFire API
compileOnly(libs.soulfire.api)
// IMPORTANT: So that your plugin can be loaded by SoulFire
annotationProcessor(libs.pf4j)
// For code generation
compileOnly(libs.lombok)
annotationProcessor(libs.lombok)
}
tasks.named<Jar>("jar") {
manifest {
attributes["Plugin-Dependencies"] = ""
attributes["Plugin-Id"] = "soulfire-example-plugin"
attributes["Plugin-Provider"] = "Pistonmaster"
attributes["Plugin-Version"] = version
// Change this to the description of your plugin
attributes["Plugin-Description"] = "Example of how to make a plugin for SoulFire."
// This is the version of SoulFire that this plugin requires
// Update this when you update the version of SoulFire that this plugin requires
attributes["Plugin-Requires"] = "1.16.0"
// If you change the license of this example
// Update this to the new license
attributes["Plugin-License"] = "MIT"
// Change this to the website of your plugin
attributes["Plugin-Website"] = "https://github.com/AlexProgrammerDE/SoulFirePluginExample"
}
}