-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
85 lines (73 loc) · 1.93 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.9.0"
kotlin("plugin.serialization") version "1.9.0"
`java-library`
`maven-publish`
signing
id("net.thebugmc.gradle.sonatype-central-portal-publisher") version "1.1.1"
}
group = "io.github.magonxesp"
version = "1.0.0"
publishing {
publications {
register<MavenPublication>("booru-client") {
artifactId = "booru-client"
from(components["java"])
}
}
}
signing {
sign(publishing.publications["booru-client"])
}
tasks.javadoc {
if (JavaVersion.current().isJava9Compatible) {
(options as StandardJavadocDocletOptions).addBooleanOption("html5", true)
}
}
centralPortal {
pom {
name = "Booru client"
description = "Danbooru, yande.re and konachan client for kotlin"
url = "https://github.com/magonxesp/booru-client"
licenses {
license {
name = "The MIT License (MIT)"
url = "https://mit-license.org/"
}
}
developers {
developer {
id = "magonxesp"
name = "MagonxESP"
email = "magonxesp@gmail.com"
url = "https://github.com/magonxesp"
}
}
scm {
connection = "scm:git:git://github.com/magonxesp/booru-client.git"
developerConnection = "scm:git:ssh://github.com/magonxesp/booru-client.git"
url = "https://github.com/magonxesp/booru-client"
}
}
}
repositories {
mavenCentral()
}
dependencies {
val ktor_version: String by project
val kotlin_serialization_version: String by project
val kotlin_corroutines_version: String by project
val kotest_version: String by project
implementation("io.ktor:ktor-client-core:$ktor_version")
implementation("io.ktor:ktor-client-cio:$ktor_version")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlin_serialization_version")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_corroutines_version")
testImplementation(kotlin("test"))
testImplementation("io.kotest:kotest-runner-junit5:$kotest_version")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(8)
}