-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
86 lines (67 loc) · 2.04 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
81
82
83
84
plugins {
kotlin("jvm") version "1.8.20"
kotlin("plugin.serialization") version "1.8.20"
`maven-publish`
}
group = "net.cherrycave"
version = "0.4.1"
repositories {
mavenCentral()
}
dependencies {
val ktorVersion = "2.3.0"
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-logging:$ktorVersion")
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
implementation("io.ktor:ktor-client-cio:$ktorVersion")
implementation("com.aventrix.jnanoid:jnanoid:2.0.0")
implementation("io.github.oshai:kotlin-logging-jvm:4.0.0-beta-22")
implementation("ch.qos.logback:logback-classic:1.4.7")
testImplementation(kotlin("test"))
}
tasks {
test {
useJUnitPlatform()
}
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
repositories {
maven {
setUrl("https://maven.stckoverflw.net/releases")
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_SECRET")
}
}
}
publications {
create<MavenPublication>("maven") {
from(components["java"])
pom {
name.set(project.name)
url.set("https://github.com/CherryCave/birgid")
developers {
developer {
name.set("Emma Böcker")
email.set("[email protected]")
organizationUrl.set("https://www.stckoverflw.net")
}
}
scm {
connection.set("scm:git:https://github.com/CheeryCave/birgid.git")
developerConnection.set("scm:git:https://github.com/CheeryCave/birgid.git")
url.set("https://github.com/CheeryCave/birgid.git")
}
}
}
}
}
kotlin {
explicitApi()
jvmToolchain(17)
}