sourceSets { demo { java { srcDirs = ["src/demo/kotlin"] compileClasspath += main.getCompileClasspath() runtimeClasspath += main.getRuntimeClasspath() } } } dependencies { 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") demoRuntimeOnly("org.openrndr:openrndr-gl3:$openrndrVersion") demoRuntimeOnly("org.openrndr:openrndr-gl3-natives-$openrndrOS:$openrndrVersion") demoImplementation(sourceSets.getByName("main").output) }