Skip to content

Commit a781b36

Browse files
authored
Update opencv-installer (#945)
Install JNI to ui/build/opencv-jni by default. No more permissions issues during JNI install
1 parent 8c9afad commit a781b36

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
}
99
}
1010
dependencies {
11-
classpath(group = "edu.wpi.first.wpilib.opencv", name = "opencv-installer", version = "2.0.0")
11+
classpath(group = "edu.wpi.first.wpilib.opencv", name = "opencv-installer", version = "2.0.1")
1212
classpath("com.netflix.nebula:gradle-aggregate-javadocs-plugin:2.2.+")
1313

1414
}

ui/ui.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ tasks.register("testSharedLib") {
164164
}
165165

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

171171
val installOpenCV = tasks.register("installOpenCV") {

0 commit comments

Comments
 (0)