-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
75 lines (64 loc) · 1.95 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
plugins {
java
`maven-publish`
id("io.github.goooler.shadow") version("8.1.7")
}
group = "org.lushplugins"
version = "5.1.0"
repositories {
mavenCentral() // Adventure, MiniPlaceholders
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") // Spigot
maven("https://repo.helpch.at/releases") // PlaceholderAPI
}
dependencies {
compileOnly("org.spigotmc:spigot-api:1.20.1-R0.1-SNAPSHOT")
compileOnly("net.kyori:adventure-text-serializer-legacy:4.15.0")
compileOnly("net.kyori:adventure-text-minimessage:4.15.0")
compileOnly("io.github.miniplaceholders:miniplaceholders-api:2.2.3")
compileOnly("me.clip:placeholderapi:2.11.6")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
registerFeature("optional") {
usingSourceSet(sourceSets["main"])
}
withSourcesJar()
}
tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
}
shadowJar {
archiveFileName.set("${project.name}-${project.version}.jar")
}
}
publishing {
repositories {
maven {
name = "lushReleases"
url = uri("https://repo.lushplugins.org/releases")
credentials(PasswordCredentials::class)
authentication {
isAllowInsecureProtocol = true
create<BasicAuthentication>("basic")
}
}
maven {
name = "lushSnapshots"
url = uri("https://repo.lushplugins.org/snapshots")
credentials(PasswordCredentials::class)
authentication {
isAllowInsecureProtocol = true
create<BasicAuthentication>("basic")
}
}
}
publications {
create<MavenPublication>("maven") {
groupId = rootProject.group.toString()
artifactId = rootProject.name
version = rootProject.version.toString()
from(project.components["java"])
}
}
}