Skip to content

Commit e1e9a09

Browse files
committed
1.6
1 parent 17ea668 commit e1e9a09

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ repositories {
1212
}
1313
1414
dependencies {
15-
implementation("com.github.kimcore", "neis.kt", "1.5")
15+
implementation("com.github.kimcore", "neis.kt", "1.6")
16+
implementation("io.ktor", "ktor-client-cio", ktorVersion) // ktor.io 에서 최신 버전을 확인해주세요
1617
}
1718
```
1819

build.gradle.kts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
plugins {
22
`maven-publish`
3-
kotlin("jvm") version "1.7.21"
4-
kotlin("plugin.serialization") version "1.7.21"
3+
kotlin("jvm") version "1.9.21"
4+
kotlin("plugin.serialization") version "1.9.21"
55
}
66

77
group = "com.github.kimcore"
8-
version = "1.5"
8+
version = "1.6"
99

1010
repositories {
1111
mavenCentral()
@@ -14,13 +14,15 @@ repositories {
1414
dependencies {
1515
implementation(kotlin("stdlib-jdk8"))
1616

17-
implementation("io.ktor", "ktor-client", "2.1.3")
18-
implementation("io.ktor", "ktor-client-cio", "2.1.3")
19-
implementation("io.ktor", "ktor-client-serialization", "2.1.3")
20-
implementation("io.ktor", "ktor-client-content-negotiation", "2.1.3")
21-
implementation("io.ktor", "ktor-serialization", "2.1.3")
22-
implementation("io.ktor", "ktor-serialization-kotlinx-json", "2.1.3")
23-
implementation("org.jetbrains.kotlinx", "kotlinx-serialization-json", "1.4.1")
17+
val ktorVersion = "2.3.7"
18+
implementation("io.ktor", "ktor-client", ktorVersion)
19+
implementation("io.ktor", "ktor-client-serialization", ktorVersion)
20+
implementation("io.ktor", "ktor-client-content-negotiation", ktorVersion)
21+
implementation("io.ktor", "ktor-serialization", ktorVersion)
22+
implementation("io.ktor", "ktor-serialization-kotlinx-json", ktorVersion)
23+
24+
val serializationVersion = "1.6.2"
25+
implementation("org.jetbrains.kotlinx", "kotlinx-serialization-json", serializationVersion)
2426
}
2527

2628
tasks {

src/main/kotlin/com/github/kimcore/neis/NeisAPI.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package com.github.kimcore.neis
33
import com.github.kimcore.neis.entities.*
44
import io.ktor.client.*
55
import io.ktor.client.call.*
6-
import io.ktor.client.engine.cio.*
76
import io.ktor.client.plugins.*
87
import io.ktor.client.plugins.contentnegotiation.*
98
import io.ktor.client.request.*
@@ -17,7 +16,7 @@ import java.time.temporal.TemporalAccessor
1716

1817
@Suppress("unused")
1918
class NeisAPI(
20-
val key: String? = null,
19+
val key: String? = null
2120
) {
2221
companion object {
2322
internal val dateFormat = DateTimeFormatter.ofPattern("yyyyMMdd").withZone(ZoneId.of("Asia/Seoul"))
@@ -27,7 +26,7 @@ class NeisAPI(
2726
ignoreUnknownKeys = true
2827
coerceInputValues = true
2928
}
30-
private val client = HttpClient(CIO) {
29+
private val client = HttpClient {
3130
defaultRequest {
3231
url("https://open.neis.go.kr/hub/")
3332
}

0 commit comments

Comments
 (0)