mirror of
https://github.com/tiennm99/store-scraper-bot.git
synced 2026-10-20 00:15:43 +00:00
Replaces Couchbase with Redis for data persistence, updating environment variables, Docker Compose files, and repository logic. Removes Couchbase and Jackson dependencies, introduces Gson for JSON serialization, and refactors models and repositories to support Redis. Adds utility classes for Redis and Gson, and updates tests and scrapers to use Gson.
54 lines
1.4 KiB
Kotlin
54 lines
1.4 KiB
Kotlin
plugins {
|
|
application
|
|
java
|
|
id("com.gradleup.shadow") version "8.3.5"
|
|
}
|
|
|
|
group = "com.miti99"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
application {
|
|
mainClass = "com.miti99.storescraperbot.Main"
|
|
}
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom(configurations.annotationProcessor.get())
|
|
}
|
|
testCompileOnly {
|
|
extendsFrom(configurations.testAnnotationProcessor.get())
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
annotationProcessor("org.projectlombok:lombok:1.18.36")
|
|
implementation("com.google.code.gson:gson:2.11.0")
|
|
implementation("com.google.guava:guava:33.4.0-jre")
|
|
implementation("org.apache.commons:commons-text:1.13.0")
|
|
implementation("org.apache.logging.log4j:log4j-core:2.24.3")
|
|
implementation("org.apache.logging.log4j:log4j-slf4j2-impl:2.24.3")
|
|
implementation("org.telegram:telegrambots-client:8.0.0")
|
|
implementation("org.telegram:telegrambots-extensions:8.0.0")
|
|
implementation("org.telegram:telegrambots-longpolling:8.0.0")
|
|
implementation("redis.clients:jedis:5.2.0")
|
|
|
|
testAnnotationProcessor("org.projectlombok:lombok:1.18.36")
|
|
testImplementation(platform("org.junit:junit-bom:5.11.4"))
|
|
testImplementation("org.junit.jupiter:junit-jupiter")
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|