-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
72 lines (61 loc) · 1.88 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
import com.vanniktech.maven.publish.SonatypeHost
plugins {
kotlin("jvm") version "2.0.20-Beta2"
id("com.vanniktech.maven.publish") version "0.29.0"
}
group = "io.github.leaguelugas"
version = "0.8.4"
description = "A Framework for developing Minecraft plugin"
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") {
name = "spigotmc-repo"
}
maven("https://oss.sonatype.org/content/groups/public/") {
name = "sonatype"
}
}
dependencies {
compileOnly("org.spigotmc:spigot-api:1.21-R0.1-SNAPSHOT")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation(kotlin("reflect"))
}
kotlin {
jvmToolchain(21)
}
tasks.jar {
archiveFileName = "${project.name}-${project.version}.jar"
}
mavenPublishing {
coordinates(
groupId = project.group.toString(),
artifactId = project.name,
version = project.version.toString(),
)
pom {
name.set("SpringMC-Core")
description.set(project.description)
inceptionYear.set("2024")
url.set("https://github.com/leaguelugas/SpringMC-Core")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("leaguelugas")
name.set("LeagueLugas")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/LeagueLugas/SpringMC-Core.git")
developerConnection.set("scm:git:ssh://github.com/LeagueLugas/SpringMC-Core.git")
url.set("https://github.com/LeagueLugas/SpringMC-Core")
}
}
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
}