-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
54 lines (49 loc) · 1.32 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
plugins {
`maven-publish`
kotlin("jvm") version "1.9.23"
}
group = "io.github.dockyardmc.nbs"
version = "1.0"
repositories {
mavenCentral()
maven("https://mvn.devos.one/releases")
maven("https://mvn.devos.one/snapshots")
maven("https://jitpack.io")
}
dependencies {
compileOnly("io.github.dockyardmc:dockyard:0.5.3-SNAPSHOT")
compileOnly("io.github.dockyardmc:scroll:1.8")
compileOnly("cz.lukynka:kotlin-bindables:1.1")
compileOnly("cz.lukynka:pretty-log:1.4")
compileOnly("io.ktor:ktor-server-netty:2.3.10")
compileOnly("io.ktor:ktor-network:2.3.10")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}
publishing {
repositories {
maven {
url = if(version.toString().endsWith("-SNAPSHOT")) {
uri("https://mvn.devos.one/snapshots")
} else {
uri("https://mvn.devos.one/releases")
}
credentials {
username = System.getenv()["MAVEN_USER"]
password = System.getenv()["MAVEN_PASS"]
}
}
}
publications {
register<MavenPublication>("maven") {
groupId = "io.github.dockyardmc"
artifactId = "dockyard-nbs"
version = version.toString()
from(components["java"])
}
}
}