Repository navigation
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
60 lines (50 loc) · 1.53 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
60 lines (50 loc) · 1.53 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("java")
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
val group = "dev.f2a"
val pluginVersion = "0.2.1"
val mcVersion = "1.21.4"
java.sourceCompatibility=JavaVersion.VERSION_21
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://repo.skriptlang.org/releases")
}
dependencies {
implementation("com.google.code.gson:gson:2.10.1")
implementation("com.google.http-client:google-http-client:1.43.3")
implementation("com.google.http-client:google-http-client-apache-v2:1.43.3")
compileOnly("com.github.SkriptLang:Skript:2.11.0")
compileOnly("io.papermc.paper:paper-api:${mcVersion}-R0.1-SNAPSHOT")
}
bukkit {
main = "dev.f2a.addon.skriptwebapi.SkriptWebAPI"
apiVersion = "1.21"
name = "Skweapi"
authors = listOf("ft")
description = "Web request and HTTP Server addon for Skript"
version = pluginVersion
depend = listOf("Skript")
prefix = "Skweapi"
/*
permissions {
register("per.*") {
children = listOf("per.m")
}
register("per.m") {
description = "Permission description"
default = BukkitPluginDescription.Permission.Default.OP
}
}
*/
}
tasks {
"shadowJar"(ShadowJar::class) {
archiveBaseName.set("SkriptWebAPI")
archiveClassifier.set("")
archiveVersion.set(pluginVersion)
}
}