-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
47 lines (37 loc) · 876 Bytes
/
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
plugins {
kotlin("jvm")
kotlin("plugin.serialization")
`maven-publish`
}
group = "dev.slne.surf"
version = "1.0.0"
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.8.0")
implementation("io.netty:netty-all:4.1.119.Final")
testImplementation(kotlin("test"))
}
tasks {
test {
useJUnitPlatform()
}
}
kotlin {
jvmToolchain(21)
}
publishing {
repositories {
maven("https://repo.slne.dev/repository/maven-releases/") {
name = "maven-releases"
credentials {
username = System.getenv("SLNE_RELEASES_REPO_USERNAME")
password = System.getenv("SLNE_RELEASES_REPO_PASSWORD")
}
}
}
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}