-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
51 lines (42 loc) · 1.28 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
plugins {
`maven-publish`
kotlin("jvm") version "1.9.21"
kotlin("plugin.serialization") version "1.9.21"
}
group = "com.github.kimcore"
version = "1.7"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
val ktorVersion = "2.3.7"
implementation("io.ktor", "ktor-client", ktorVersion)
implementation("io.ktor", "ktor-client-serialization", ktorVersion)
implementation("io.ktor", "ktor-client-content-negotiation", ktorVersion)
implementation("io.ktor", "ktor-serialization", ktorVersion)
implementation("io.ktor", "ktor-serialization-kotlinx-json", ktorVersion)
val serializationVersion = "1.6.2"
implementation("org.jetbrains.kotlinx", "kotlinx-serialization-json", serializationVersion)
}
tasks {
compileJava {
sourceCompatibility = "11"
targetCompatibility = "11"
}
}
val sourcesJar by tasks.registering(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
}
publishing {
publications {
create<MavenPublication>("neis.kt") {
from(components["java"])
group = project.group as String
version = project.version as String
artifactId = project.name
artifact(sourcesJar)
}
}
}