-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
80 lines (72 loc) · 2.17 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
plugins {
id("maven-publish")
kotlin("multiplatform") version "1.7.10"
kotlin("plugin.serialization") version "1.7.10"
}
group = "tech.thatgravyboat"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
kotlin {
targets {
jvm {
withJava()
val test by testRuns.getting
test.executionTask.configure {
useJUnitPlatform()
}
}
}
sourceSets {
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("io.ktor:ktor-client-core:2.1.0")
implementation("io.ktor:ktor-network:2.1.0")
implementation("io.ktor:ktor-network-tls:2.1.0")
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}
}
val jvmMain by getting {
dependencies {
implementation("io.ktor:ktor-client-cio:2.1.0")
}
}
}
}
publishing {
publications {
withType<MavenPublication> {
pom {
name.set("Jukebox")
description.set("Music service library for multiple services.")
url.set("https://github.com/ThatGravyBoat/Jukebox")
licenses {
license {
name.set("MIT")
}
}
scm {
connection.set("git:https://github.com/ThatGravyBoat/Jukebox.git")
developerConnection.set("git:https://github.com/ThatGravyBoat/Jukebox.git")
url.set("https://github.com/ThatGravyBoat/Jukebox")
}
}
}
}
repositories {
maven {
setUrl("https://maven.resourcefulbees.com/repository/thatgravyboat/")
credentials {
username = System.getenv("MAVEN_USER")
password = System.getenv("MAVEN_PASS")
}
}
}
}