[orx-panel] Convert build to Kotlin DSL
This commit is contained in:
@@ -1,15 +1,28 @@
|
|||||||
|
import ScreenshotsHelper.collectScreenshots
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
demo {
|
val main by getting { }
|
||||||
|
val demo by creating {
|
||||||
java {
|
java {
|
||||||
srcDirs = ["src/demo/kotlin"]
|
srcDir("src/demo/kotlin")
|
||||||
compileClasspath += main.getCompileClasspath()
|
compileClasspath += main.getCompileClasspath()
|
||||||
runtimeClasspath += main.getRuntimeClasspath()
|
runtimeClasspath += main.getRuntimeClasspath()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
collectScreenshots(project, demo) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val openrndrVersion: String by rootProject.extra
|
||||||
|
val openrndrOS: String by rootProject.extra
|
||||||
|
val slf4jVersion:String by rootProject.extra
|
||||||
|
val kotlinVersion:String by rootProject.extra
|
||||||
|
val gsonVersion:String by rootProject.extra
|
||||||
|
val demoImplementation by configurations.getting {}
|
||||||
|
|
||||||
|
val demoRuntimeOnly by configurations.getting {}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
|
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
|
||||||
demoImplementation("org.openrndr:openrndr-extensions:$openrndrVersion")
|
demoImplementation("org.openrndr:openrndr-extensions:$openrndrVersion")
|
||||||
demoImplementation("org.openrndr:openrndr-dialogs:$openrndrVersion")
|
demoImplementation("org.openrndr:openrndr-dialogs:$openrndrVersion")
|
||||||
demoImplementation("com.google.code.gson:gson:$gsonVersion")
|
demoImplementation("com.google.code.gson:gson:$gsonVersion")
|
||||||
Reference in New Issue
Block a user