-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
96 lines (77 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
87
88
89
90
91
92
93
94
95
96
plugins {
`java-library`
`maven-publish`
jacoco
}
group = "dev.emortal.minestom"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://repo.emortal.dev/snapshots")
maven("https://repo.emortal.dev/releases")
maven("https://jitpack.io")
maven("https://packages.confluent.io/maven/")
}
dependencies {
// Minestom
api("net.minestom:minestom-snapshots:ccea53ac44")
api("net.kyori:adventure-text-minimessage:4.15.0")
compileOnly("com.github.TogAr2:MinestomPvP:04180ddf9a") // MinestomPvP - Used for PvP Player impl
implementation("io.pyroscope:agent:0.14.0")
// Logger
implementation("ch.qos.logback:logback-classic:1.5.11")
implementation("net.logstash.logback:logstash-logback-encoder:8.0")
// APIs
api("dev.emortal.api:module-system:1.0.0")
api("dev.emortal.api:agones-sdk:1.1.0")
api("dev.emortal.api:common-proto-sdk:2584fd2")
api("dev.emortal.api:live-config-parser:d79a69a")
api("io.kubernetes:client-java:18.0.1")
api("io.micrometer:micrometer-registry-prometheus:1.13.6")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.0")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
withSourcesJar()
}
tasks {
test {
useJUnitPlatform()
}
jacocoTestReport {
dependsOn(test)
}
}
publishing {
repositories {
maven {
name = "development"
url = uri("https://repo.emortal.dev/snapshots")
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_SECRET")
}
}
maven {
name = "release"
url = uri("https://repo.emortal.dev/releases")
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_SECRET")
}
}
}
publications {
create<MavenPublication>("maven") {
groupId = "dev.emortal.minestom"
artifactId = "core"
val commitHash = System.getenv("COMMIT_HASH_SHORT")
val releaseVersion = System.getenv("RELEASE_VERSION")
version = commitHash ?: releaseVersion ?: "local"
from(components["java"])
}
}
}