-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
66 lines (56 loc) · 1.68 KB
/
build.gradle.kts
File metadata and controls
66 lines (56 loc) · 1.68 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
61
62
63
64
65
66
plugins {
`java-library`
`maven-publish`
id("com.gradleup.shadow") version("9.3.1")
}
allprojects {
apply(plugin = "java-library")
apply(plugin = "maven-publish")
group = "org.lushplugins"
version = "8.1.0"
repositories {
mavenLocal()
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") // Spigot
maven("https://repo.papermc.io/repository/maven-public/") // Paper
maven("https://repo.helpch.at/releases") // PlaceholderAPI
}
dependencies {
// Libraries
compileOnly("org.jetbrains:annotations:26.1.0")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
registerFeature("optional") {
usingSourceSet(sourceSets["main"])
}
withSourcesJar()
}
tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
}
}
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")
}
}
}
}
}