Skip to content

Commit

Permalink
1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kimcore committed Dec 16, 2023
1 parent 17ea668 commit e1e9a09
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ repositories {
}
dependencies {
implementation("com.github.kimcore", "neis.kt", "1.5")
implementation("com.github.kimcore", "neis.kt", "1.6")
implementation("io.ktor", "ktor-client-cio", ktorVersion) // ktor.io 에서 최신 버전을 확인해주세요
}
```

Expand Down
22 changes: 12 additions & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
plugins {
`maven-publish`
kotlin("jvm") version "1.7.21"
kotlin("plugin.serialization") version "1.7.21"
kotlin("jvm") version "1.9.21"
kotlin("plugin.serialization") version "1.9.21"
}

group = "com.github.kimcore"
version = "1.5"
version = "1.6"

repositories {
mavenCentral()
Expand All @@ -14,13 +14,15 @@ repositories {
dependencies {
implementation(kotlin("stdlib-jdk8"))

implementation("io.ktor", "ktor-client", "2.1.3")
implementation("io.ktor", "ktor-client-cio", "2.1.3")
implementation("io.ktor", "ktor-client-serialization", "2.1.3")
implementation("io.ktor", "ktor-client-content-negotiation", "2.1.3")
implementation("io.ktor", "ktor-serialization", "2.1.3")
implementation("io.ktor", "ktor-serialization-kotlinx-json", "2.1.3")
implementation("org.jetbrains.kotlinx", "kotlinx-serialization-json", "1.4.1")
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 {
Expand Down
5 changes: 2 additions & 3 deletions src/main/kotlin/com/github/kimcore/neis/NeisAPI.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.github.kimcore.neis
import com.github.kimcore.neis.entities.*
import io.ktor.client.*
import io.ktor.client.call.*
import io.ktor.client.engine.cio.*
import io.ktor.client.plugins.*
import io.ktor.client.plugins.contentnegotiation.*
import io.ktor.client.request.*
Expand All @@ -17,7 +16,7 @@ import java.time.temporal.TemporalAccessor

@Suppress("unused")
class NeisAPI(
val key: String? = null,
val key: String? = null
) {
companion object {
internal val dateFormat = DateTimeFormatter.ofPattern("yyyyMMdd").withZone(ZoneId.of("Asia/Seoul"))
Expand All @@ -27,7 +26,7 @@ class NeisAPI(
ignoreUnknownKeys = true
coerceInputValues = true
}
private val client = HttpClient(CIO) {
private val client = HttpClient {
defaultRequest {
url("https://open.neis.go.kr/hub/")
}
Expand Down

0 comments on commit e1e9a09

Please sign in to comment.