-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
52 lines (41 loc) · 1.04 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
plugins {
kotlin("jvm") version "1.9.20"
`maven-publish`
}
val githubActor = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR")
val githubToken = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
group = "me.tech"
version = "1.5.6"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
implementation(kotlin("stdlib"))
compileOnly("io.papermc.paper:paper-api:1.19.4-R0.1-SNAPSHOT")
}
kotlin {
jvmToolchain(17)
}
java {
withJavadocJar()
withSourcesJar()
}
// Allow for publishing to Maven local.
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/DebitCardz/mc-chestui-plus")
credentials {
username = githubActor
password = githubToken
}
}
}
publications {
register<MavenPublication>("gpr") {
from(components["java"])
}
}
}