From 5e470a12b08a4e5942a3fd5c488643e2d9f178dd Mon Sep 17 00:00:00 2001 From: Shiina Kin Date: Sun, 20 Oct 2024 20:55:14 +0800 Subject: [PATCH] chore: use self-build ktor-simple-cache-jvm dependency --- app/build.gradle.kts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index a061e5ce..cb8fb728 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -10,8 +10,8 @@ val version: String by project plugins { kotlin("jvm") version "2.0.21" + kotlin("plugin.serialization") version "2.0.21" id("io.ktor.plugin") version "2.3.12" - id("org.jetbrains.kotlin.plugin.serialization") version "2.0.21" } group = "io.sakurasou" @@ -28,6 +28,13 @@ ktor { repositories { mavenCentral() + maven { + url = uri("https://maven.pkg.github.com/ShiinaKin/ktor-simple-cache") + credentials { + username = "ShiinaKin" + password = env.GITHUB_PAT.orNull() ?: System.getenv("GITHUB_TOKEN") + } + } } dependencies { @@ -48,7 +55,8 @@ dependencies { implementation("io.swagger.parser.v3:swagger-parser:2.1.21") implementation("io.github.smiley4:ktor-swagger-ui:3.5.0") - implementation("com.ucasoft.ktor:ktor-simple-cache-jvm:$ktorSimpleCacheVersion") + // implementation("com.ucasoft.ktor:ktor-simple-cache-jvm:$ktorSimpleCacheVersion") + implementation("io.sakurasou.simple-cache:ktor-simple-cache-jvm:0.4.5") implementation("com.ucasoft.ktor:ktor-simple-memory-cache-jvm:$ktorSimpleCacheVersion") implementation("com.ucasoft.ktor:ktor-simple-redis-cache-jvm:$ktorSimpleCacheVersion")