-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
86 lines (71 loc) · 2.04 KB
/
build.gradle.kts
File metadata and controls
86 lines (71 loc) · 2.04 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
alias(libs.plugins.shadow)
alias(libs.plugins.kotlin)
alias(libs.plugins.sonatype.central.portal.publisher)
`maven-publish`
}
group = "io.github.solidpack"
version = "1.1.6"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}
dependencies {
testImplementation(rootProject.libs.kotlin.test)
implementation(rootProject.libs.kotlin.jvm)
implementation(rootProject.libs.bundles.configurate)
api(rootProject.libs.adventure)
}
kotlin {
jvmToolchain(21)
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "21"
}
tasks.named("shadowJar", ShadowJar::class) {
mergeServiceFiles()
archiveFileName.set("${project.name}.jar")
}
tasks.test {
useJUnitPlatform()
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
}
}
}
centralPortal {
name = project.name
username = project.findProperty("sonatypeUsername") as? String
password = project.findProperty("sonatypePassword") as? String
pom {
name.set("Solid API")
description.set("A read only API to make working with custom minecraft items/blocks with java edition resource packs easy for developers")
url.set("https://github.com/solidpack/solid-api")
developers {
developer {
id.set("dayyeeet")
email.set("david@cappell.net")
}
}
licenses {
license {
name.set("Apache-2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
scm {
url.set("https://github.com/solidpack/solid-api")
connection.set("git:git@github.com:solidpack/solid-api.git")
}
}
}
signing {
useGpgCmd()
sign(publishing.publications)
}