Skip to content

Commit

Permalink
Update opencv-installer (#945)
Browse files Browse the repository at this point in the history
Install JNI to ui/build/opencv-jni by default. No more permissions issues during JNI install
  • Loading branch information
SamCarlberg authored May 8, 2019
1 parent 8c9afad commit a781b36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
}
}
dependencies {
classpath(group = "edu.wpi.first.wpilib.opencv", name = "opencv-installer", version = "2.0.0")
classpath(group = "edu.wpi.first.wpilib.opencv", name = "opencv-installer", version = "2.0.1")
classpath("com.netflix.nebula:gradle-aggregate-javadocs-plugin:2.2.+")

}
Expand Down
4 changes: 2 additions & 2 deletions ui/ui.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ tasks.register("testSharedLib") {
}

if (project.hasProperty("generation") || project.hasProperty("genonly")) {
val platform = Installer.getPlatform()
val jniLocation: String = project.properties.getOrDefault("jniLocation", platform.defaultJniLocation()).toString()
val defaultLocation = buildDir.resolve("opencv-jni")
val jniLocation: String = project.properties.getOrDefault("jniLocation", defaultLocation).toString()
val jniPath = File(jniLocation).absolutePath

val installOpenCV = tasks.register("installOpenCV") {
Expand Down

0 comments on commit a781b36

Please # to comment.