[orx-panel] Convert build to Kotlin DSL

This commit is contained in:
Edwin Jakobs
2022-01-25 21:30:42 +01:00
parent 80498ba0a9
commit c78c7825f8

View File

@@ -1,15 +1,28 @@
import ScreenshotsHelper.collectScreenshots
sourceSets {
demo {
val main by getting { }
val demo by creating {
java {
srcDirs = ["src/demo/kotlin"]
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 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 {
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
demoImplementation("org.openrndr:openrndr-extensions:$openrndrVersion")
demoImplementation("org.openrndr:openrndr-dialogs:$openrndrVersion")
demoImplementation("com.google.code.gson:gson:$gsonVersion")