cuba-platform / cuba-gradle-plugin

Gradle plugin for building CUBA platform and applications
https://www.cuba-platform.com
Apache License 2.0
15 stars 18 forks source link

Unable to use JavaCV added as a dependency #151

Closed natfirst closed 3 years ago

natfirst commented 3 years ago

Environment

Description of the bug or enhancement

  1. Add only two dependencies
    compile 'org.bytedeco:javacv:1.5.4'
    compile 'org.bytedeco:javacpp:1.5.4'

    both jars will be copied to shared/lib in tomcat after deployment from Studio. image.png

  2. Add other dependencies
    compile 'org.bytedeco:javacv:1.5.4'
    compile 'org.bytedeco:javacpp:1.5.4'
    compile 'org.bytedeco:ffmpeg-platform:4.3.1-1.5.4'
    compile 'org.bytedeco:opencv-platform:4.4.0-1.5.4'

    image.png A.R. javacpp-1.5.4.jar will be deleted, which will cause runtime issue working with API in javacpp. There is no problem in other non-CUBA projects, with Maven or Gradle is used

BryanYin commented 3 years ago

Hi, just got feedback from customer, javacv issue is fixed, but have new issue, org.bytedeco:opencv:4.5.1-1.5.5 is not deployed now. Adding below to build.gradle:

  compile 'org.bytedeco:javacpp:1.5.5'
  compile 'org.bytedeco:ffmpeg-platform:4.3.2-1.5.5'
  compile 'org.bytedeco:opencv:4.5.1-1.5.5'
  compile 'org.bytedeco:opencv-platform:4.5.1-1.5.5'
  compile 'org.bytedeco:cuda-platform:11.2-8.1-1.5.5'
  compile 'org.bytedeco:opencv-platform-gpu:4.5.1-1.5.5'

missing jar is: opencv-4.5.1-1.5.5.jar