[orx-boofcv] convert to Kotlin DSL

This commit is contained in:
Edwin Jakobs
2021-09-01 09:23:14 +02:00
parent 8c5ccd691b
commit 0aff3f6bbf
5 changed files with 13 additions and 32 deletions

View File

@@ -0,0 +1,29 @@
import ScreenshotsHelper.collectScreenshots
sourceSets {
val main by getting { }
val demo by creating {
java {
srcDir("src/demo/kotlin")
compileClasspath += main.getCompileClasspath()
runtimeClasspath += main.getRuntimeClasspath()
}
}
collectScreenshots(project, demo) { }
}
val openrndrVersion: String by rootProject.extra
val openrndrOS: String by rootProject.extra
val boofcvVersion = "0.37"
val demoImplementation by configurations.getting {}
val demoRuntimeOnly by configurations.getting {}
dependencies {
api("org.boofcv:boofcv-core:$boofcvVersion")
demoImplementation("org.openrndr:openrndr-application:$openrndrVersion")
demoImplementation("org.openrndr:openrndr-extensions:$openrndrVersion")
demoRuntimeOnly("org.openrndr:openrndr-gl3:$openrndrVersion")
demoRuntimeOnly("org.openrndr:openrndr-gl3-natives-$openrndrOS:$openrndrVersion")
demoImplementation(sourceSets.getByName("main").output)
}