-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
45 lines (39 loc) · 1 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 {
kotlin("jvm") version "1.8.20"
id("org.jetbrains.dokka") version "1.8.10"
`maven-publish`
}
group = "io.layercraft.connector"
version = properties["version"] as String
repositories {
mavenCentral()
}
dependencies {
testImplementation(kotlin("reflect"))
testImplementation(kotlin("test"))
testImplementation(kotlin("test-junit5"))
testImplementation("org.junit.jupiter:junit-jupiter:5.9.0")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}
publishing {
repositories {
maven {
name = "repo"
url = uri("https://maven.pkg.github.com/Layercraft/PacketLib")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
}
publications {
register<MavenPublication>("gpr") {
from(components["java"])
}
}
}