-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
45 lines (39 loc) · 1.22 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
plugins {
id("java")
id("maven-publish")
}
java {
withSourcesJar()
withJavadocJar()
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
group = "net.thenextlvl.core"
version = "1.0.9"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
dependencies {
compileOnly("org.projectlombok:lombok:1.18.32")
compileOnly("org.jetbrains:annotations:24.1.0")
compileOnly("io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT")
compileOnly(project(":annotations"))
annotationProcessor("org.projectlombok:lombok:1.18.32")
}
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
repositories.maven {
val branch = if (version.toString().contains("-pre")) "snapshots" else "releases"
url = uri("https://repo.thenextlvl.net/$branch")
credentials {
if (extra.has("RELEASES_USER"))
username = extra["RELEASES_USER"].toString()
if (extra.has("RELEASES_PASSWORD"))
password = extra["RELEASES_PASSWORD"].toString()
}
}
}