From 166da83561a3472f5dd92354344e1b13c325bdd5 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Sun, 4 Feb 2024 15:07:32 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=E3=81=A8=E3=82=8A=E3=81=82=E3=81=88?= =?UTF-8?q?=E3=81=9Awindows=E3=81=A8linux=E3=81=AEx86=5F64=E3=81=A7?= =?UTF-8?q?=E3=81=AE=E3=81=BF=E5=8B=95=E3=81=8F=E7=94=A8=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle.kts | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 14213211..ca1ad77c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -169,6 +169,9 @@ sourceSets.main { ) } +val os = org.gradle.nativeplatform.platform.internal + .DefaultNativePlatform.getCurrentOperatingSystem() + dependencies { implementation("io.ktor:ktor-serialization-jackson:$ktor_version") implementation("org.jetbrains.exposed:exposed-core:$exposed_version") @@ -211,7 +214,22 @@ dependencies { implementation("org.apache.tika:tika-core:2.9.1") implementation("org.apache.tika:tika-parsers:2.9.1") implementation("net.coobird:thumbnailator:0.4.20") - implementation("org.bytedeco:javacv-platform:1.5.9") + implementation("org.bytedeco:javacv:1.5.10"){ + exclude(module = "opencv") + exclude(module = "flycapture") + exclude(module = "artoolkitplus") + exclude(module = "libdc1394") + exclude(module = "librealsense") + exclude(module = "librealsense2") + exclude(module = "tesseract") + exclude(module = "libfreenect") + exclude(module = "libfreenect2") + } + if (os.isWindows) { + implementation("org.bytedeco","ffmpeg","6.1.1-1.5.10", classifier = "windows-x86_64") + }else{ + implementation("org.bytedeco","ffmpeg","6.1.1-1.5.10", classifier = "linux-x86_64") + } implementation("org.flywaydb:flyway-core") implementation("dev.usbharu:emoji-kt:2.0.0")