-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
86 lines (71 loc) · 2.37 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
86
plugins {
`java-library`
`maven-publish`
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "net.okocraft"
version = "1.0.0"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven("https://oss.sonatype.org/content/repositories/snapshots")
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
compileOnly("me.clip:placeholderapi:2.11.5")
compileOnly("net.luckperms:api:5.4")
implementation("com.github.siroshun09.configapi:configapi-yaml:4.6.3")
implementation("com.github.siroshun09.translationloader:translationloader:2.0.2")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
vendor.set(JvmVendorSpec.ADOPTIUM)
}
}
tasks {
compileJava {
options.release.set(17)
}
processResources {
filesMatching(listOf("plugin.yml", "en.yml", "ja_JP.yml")) {
expand("projectVersion" to version)
}
}
shadowJar {
relocate("com.github.siroshun09", "${project.group}.${project.name.lowercase()}.lib")
manifest {
attributes("paperweight-mappings-namespace" to "mojang")
}
}
build {
dependsOn(shadowJar)
}
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
from(components["java"])
pom {
name.set(project.name)
description.set("TimedPerms, plugin to implements in-game time temporary permission using LuckPerms.")
url.set("https://github.com/okocraft/timedperms")
licenses {
license {
name.set("GNU General Public License, Version 3.0")
url.set("https://www.gnu.org/licenses/gpl-3.0.txt")
}
}
scm {
connection.set("scm:git:https://github.com/okocraft/timedperms.git")
developerConnection.set("scm:git:git@github.com:okocraft/timedperms.git")
url.set("https://github.com/okocraft/timedperms")
}
}
}
}
}