-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
build.gradle.kts
55 lines (51 loc) · 1.49 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
plugins {
id("carbon.build-logic")
alias(libs.plugins.hangar.publish)
alias(libs.plugins.indra.publishing.sonatype)
}
val projectVersion: String by project // get from gradle.properties
version = projectVersion
fun Project.platformJar(): Provider<RegularFile> =
extensions.getByType<CarbonPlatformExtension>().productionJar
hangarPublish.publications.register("plugin") {
version = projectVersion
id = "Carbon"
channel = if (projectVersion.contains("-beta.")) "Beta" else "Release"
changelog = releaseNotes
apiKey = providers.environmentVariable("HANGAR_UPLOAD_KEY")
platforms.paper {
jar = project(":carbonchat-paper").platformJar()
platformVersions.add("1.20.6-1.21.1")
dependencies {
url("LuckPerms", "https://luckperms.net/")
hangar("Essentials") {
required = false
}
url("DiscordSRV", "https://www.spigotmc.org/resources/discordsrv.18494/") {
required = false
}
url("PlaceholderAPI", "https://www.spigotmc.org/resources/placeholderapi.6245/") {
required = false
}
hangar("MiniPlaceholders") {
required = false
}
}
}
platforms.velocity {
jar = project(":carbonchat-velocity").platformJar()
platformVersions.add("3.3")
dependencies {
url("LuckPerms", "https://luckperms.net/")
hangar("MiniPlaceholders") {
required = false
}
hangar("SignedVelocity") {
required = false
}
}
}
}
indraSonatype {
useAlternateSonatypeOSSHost("s01")
}