-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
44 lines (39 loc) · 1.36 KB
/
build.gradle.kts
File metadata and controls
44 lines (39 loc) · 1.36 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
plugins {
id("java")
}
// Group name for your project
group = "com.github.skriptdev"
// Addon version (Which will be applied to the manifest).
version = "1.0.0"
// Version of HyTale you'll build against
val hytaleVersion = "2026.01.29-301e13929"
// You can find Hytale versions on their maven repo:
// https://maven.hytale.com/release/com/hypixel/hytale/Server/maven-metadata.xml
repositories {
mavenCentral()
mavenLocal()
maven("https://jitpack.io")
maven("https://maven.hytale.com/release")
maven("https://maven.hytale.com/pre-release")
}
dependencies {
compileOnly("com.github.SkriptDev:HySkript:1.0.0-beta5") // TODO change before release
compileOnly("com.hypixel.hytale:Server:${hytaleVersion}")
}
tasks {
// Not required, but this is a simple task to quickly build your addon into the HySkript addons folder.
register("server", Copy::class) {
dependsOn("jar")
from("build/libs") {
include("SampleAddon-*.jar")
// Change this to wherever your server is located
destinationDir = file("/Users/ShaneBee/Desktop/Server/Hytale/Creative/mods/skript_HySkript/addons")
}
}
processResources {
// This is used to replace the version in your addon's manifest.json file
filesNotMatching("assets/**") {
expand("addonVersion" to project.version)
}
}
}