-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
40 lines (34 loc) · 1.01 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
plugins {
kotlin("jvm") version "1.6.21"
kotlin("plugin.serialization") version "1.6.21"
`maven-publish`
}
group = "net.perfectdreams.minecraftmojangapi"
version = "0.0.4"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib"))
api("org.jetbrains.kotlinx:kotlinx-serialization-core:1.3.2")
api("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2")
api("io.ktor:ktor-client-core:2.0.0")
implementation("com.github.ben-manes.caffeine:caffeine:3.0.6")
}
publishing {
repositories {
maven {
name = "PerfectDreams"
url = uri("https://repo.perfectdreams.net/")
credentials {
username = System.getProperty("USERNAME") ?: System.getenv("USERNAME")
password = System.getProperty("PASSWORD") ?: System.getenv("PASSWORD")
}
}
}
publications {
register("PerfectDreams", MavenPublication::class.java) {
from(components["java"])
}
}
}