diff --git a/orx-jvm/orx-gui/build.gradle b/orx-jvm/orx-gui/build.gradle deleted file mode 100644 index f2381a53..00000000 --- a/orx-jvm/orx-gui/build.gradle +++ /dev/null @@ -1,22 +0,0 @@ -sourceSets { - demo { - java { - srcDirs = ["src/demo/kotlin"] - compileClasspath += main.getCompileClasspath() - runtimeClasspath += main.getRuntimeClasspath() - } - } -} - -dependencies { - api project(":orx-parameters") - api project(":orx-jvm:orx-panel") - implementation "org.openrndr:openrndr-dialogs:$openrndrVersion" - implementation "com.google.code.gson:gson:$gsonVersion" - implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion" - 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) -} \ No newline at end of file diff --git a/orx-jvm/orx-gui/build.gradle.kts b/orx-jvm/orx-gui/build.gradle.kts new file mode 100644 index 00000000..93ede19e --- /dev/null +++ b/orx-jvm/orx-gui/build.gradle.kts @@ -0,0 +1,37 @@ +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 slf4jVersion: String by rootProject.extra +val gsonVersion: String by rootProject.extra +val kotlinVersion: String by rootProject.extra +val demoImplementation by configurations.getting {} +val demoRuntimeOnly by configurations.getting {} + +dependencies { + api(project(":orx-parameters")) + api(project(":orx-jvm:orx-panel")) + implementation("org.openrndr:openrndr-filter:$openrndrVersion") + implementation("org.openrndr:openrndr-dialogs:$openrndrVersion") + implementation("com.google.code.gson:gson:$gsonVersion") + implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion") + demoImplementation("org.openrndr:openrndr-application:$openrndrVersion") + demoImplementation("org.openrndr:openrndr-extensions:$openrndrVersion") + + demoRuntimeOnly("org.slf4j:slf4j-simple:$slf4jVersion") + demoRuntimeOnly("org.openrndr:openrndr-gl3:$openrndrVersion") + demoRuntimeOnly("org.openrndr:openrndr-gl3-natives-$openrndrOS:$openrndrVersion") + demoImplementation(sourceSets.getByName("main").output) +}