-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
85 lines (77 loc) · 2.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
plugins {
`java-library`
`maven-publish`
id("io.github.0ffz.github-packages") version "1.2.1"
id("io.papermc.hangar-publish-plugin") version "0.1.2"
}
repositories {
gradlePluginPortal()
mavenLocal()
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven { githubPackage("apdevteam/movecraft")(this) }
maven("https://maven.playpro.com")
}
dependencies {
api("org.jetbrains:annotations-java5:24.1.0")
compileOnly("io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT")
compileOnly("net.countercraft:movecraft:+")
compileOnly("net.coreprotect:coreprotect:22.4")
}
group = "net.countercraft.movecraft.coreprotect"
version = "1.0.0_beta-1_gradle"
description = "Movecraft-CoreProtect"
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
tasks.jar {
archiveBaseName.set("Movecraft-CoreProtect")
archiveClassifier.set("")
archiveVersion.set("")
}
tasks.processResources {
from(rootProject.file("LICENSE.md"))
filesMatching("*.yml") {
expand(mapOf("projectVersion" to project.version))
}
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "net.countercraft.movecraft.coreprotect"
artifactId = "movecraft-coreprotect"
version = "${project.version}"
artifact(tasks.jar)
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/apdevteam/movecraft-coreprotect")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
hangarPublish {
publications.register("plugin") {
version.set(project.version as String)
channel.set("Release")
id.set("Airship-Pirates/Movecraft-CoreProtect")
apiKey.set(System.getenv("HANGAR_API_TOKEN"))
platforms {
register(io.papermc.hangarpublishplugin.model.Platforms.PAPER) {
jar.set(tasks.jar.flatMap { it.archiveFile })
platformVersions.set(listOf("1.18.2-1.21"))
dependencies {
hangar("Movecraft") {
required.set(true)
}
hangar("CoreProtect") {
required.set(true)
}
}
}
}
}
}