Use buildSrc to deduplicate build logic (#262)
This commit is contained in:
3
orx-jvm/build.gradle.kts
Normal file
3
orx-jvm/build.gradle.kts
Normal file
@@ -0,0 +1,3 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.dokka
|
||||
}
|
||||
@@ -1,25 +1,16 @@
|
||||
import ScreenshotsHelper.collectScreenshots
|
||||
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val main by getting { }
|
||||
val demo by creating {
|
||||
java {
|
||||
srcDir("src/demo/kotlin")
|
||||
compileClasspath += main.getCompileClasspath()
|
||||
runtimeClasspath += main.getRuntimeClasspath()
|
||||
}
|
||||
}
|
||||
val demo by getting
|
||||
collectScreenshots(project, demo) { }
|
||||
}
|
||||
|
||||
val demoImplementation by configurations.getting {}
|
||||
val demoRuntimeOnly by configurations.getting {}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
api(libs.boofcv)
|
||||
demoImplementation(libs.openrndr.application)
|
||||
demoImplementation(libs.openrndr.extensions)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
||||
demoImplementation(sourceSets.getByName("main").output)
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
sourceSets {
|
||||
demo {
|
||||
java {
|
||||
srcDirs = ["src/demo/kotlin"]
|
||||
compileClasspath += main.getCompileClasspath()
|
||||
runtimeClasspath += main.getRuntimeClasspath()
|
||||
}
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
api project(":orx-jvm:orx-osc")
|
||||
|
||||
implementation libs.gson
|
||||
demoImplementation(libs.openrndr.application)
|
||||
|
||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
||||
demoRuntimeOnly(libs.openrndr.extensions)
|
||||
demoImplementation(libs.openrndr.ffmpeg)
|
||||
demoRuntimeOnly(libs.openrndr.ffmpeg.natives)
|
||||
|
||||
demoImplementation(project(":orx-fx"))
|
||||
// demoImplementation(project(":orx-osc"))
|
||||
|
||||
demoImplementation(sourceSets.getByName("main").output)
|
||||
}
|
||||
12
orx-jvm/orx-chataigne/build.gradle.kts
Normal file
12
orx-jvm/orx-chataigne/build.gradle.kts
Normal file
@@ -0,0 +1,12 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
api(project(":orx-jvm:orx-osc"))
|
||||
implementation(libs.gson)
|
||||
demoImplementation(libs.openrndr.ffmpeg)
|
||||
demoImplementation(project(":orx-fx"))
|
||||
}
|
||||
@@ -1,5 +1,11 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
implementation(project(":orx-fx"))
|
||||
api(project(":orx-depth-camera"))
|
||||
api(project(":orx-jvm:orx-gui"))
|
||||
implementation(project(":orx-fx"))
|
||||
}
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
sourceSets {
|
||||
demo {
|
||||
java {
|
||||
srcDirs = ["src/demo/kotlin"]
|
||||
compileClasspath += main.getCompileClasspath()
|
||||
runtimeClasspath += main.getRuntimeClasspath()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation libs.gson
|
||||
implementation(project(":orx-fx"))
|
||||
implementation(project(":orx-jvm:orx-keyframer"))
|
||||
implementation(project(":orx-easing"))
|
||||
implementation(project(":orx-shader-phrases"))
|
||||
implementation(project(":orx-mesh-generators"))
|
||||
|
||||
demoImplementation(project(":orx-camera"))
|
||||
demoImplementation(project(":orx-mesh-generators"))
|
||||
demoImplementation(project(":orx-noise"))
|
||||
|
||||
demoImplementation(libs.openrndr.application)
|
||||
demoImplementation(libs.openrndr.extensions)
|
||||
demoImplementation(libs.openrndr.ffmpeg)
|
||||
demoImplementation(libs.openrndr.filter)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
||||
demoImplementation(sourceSets.getByName("main").output)
|
||||
}
|
||||
19
orx-jvm/orx-dnk3/build.gradle.kts
Normal file
19
orx-jvm/orx-dnk3/build.gradle.kts
Normal file
@@ -0,0 +1,19 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.gson)
|
||||
implementation(project(":orx-fx"))
|
||||
implementation(project(":orx-jvm:orx-keyframer"))
|
||||
implementation(project(":orx-easing"))
|
||||
implementation(project(":orx-shader-phrases"))
|
||||
implementation(project(":orx-mesh-generators"))
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
implementation(libs.kotlin.coroutines)
|
||||
demoImplementation(project(":orx-mesh-generators"))
|
||||
demoImplementation(project(":orx-noise"))
|
||||
demoImplementation(libs.openrndr.ffmpeg)
|
||||
demoImplementation(libs.openrndr.filter)
|
||||
}
|
||||
15
orx-jvm/orx-file-watcher/build.gradle.kts
Normal file
15
orx-jvm/orx-file-watcher/build.gradle.kts
Normal file
@@ -0,0 +1,15 @@
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
tasks.withType<KotlinCompile> {
|
||||
kotlinOptions.freeCompilerArgs = listOf("-opt-in=kotlin.RequiresOptIn")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
implementation(libs.kotlin.coroutines)
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
`java-gradle-plugin`
|
||||
}
|
||||
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
sourceSets {
|
||||
demo {
|
||||
java {
|
||||
srcDirs = ["src/demo/kotlin"]
|
||||
compileClasspath += main.getCompileClasspath()
|
||||
runtimeClasspath += main.getRuntimeClasspath()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.jgit)
|
||||
|
||||
demoImplementation(project(":orx-camera"))
|
||||
demoImplementation(project(":orx-mesh-generators"))
|
||||
demoImplementation(project(":orx-noise"))
|
||||
|
||||
demoImplementation(libs.openrndr.application)
|
||||
demoImplementation(libs.openrndr.extensions)
|
||||
demoImplementation(libs.openrndr.ffmpeg)
|
||||
demoImplementation(libs.openrndr.filter)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
||||
demoImplementation(sourceSets.getByName("main").output)
|
||||
}
|
||||
13
orx-jvm/orx-git-archiver/build.gradle.kts
Normal file
13
orx-jvm/orx-git-archiver/build.gradle.kts
Normal file
@@ -0,0 +1,13 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
implementation(libs.jgit)
|
||||
demoImplementation(project(":orx-mesh-generators"))
|
||||
demoImplementation(project(":orx-noise"))
|
||||
demoImplementation(libs.openrndr.ffmpeg)
|
||||
demoImplementation(libs.openrndr.filter)
|
||||
}
|
||||
@@ -1,33 +1,23 @@
|
||||
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) { }
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
val demoImplementation by configurations.getting {}
|
||||
val demoRuntimeOnly by configurations.getting {}
|
||||
sourceSets {
|
||||
val demo by getting
|
||||
collectScreenshots(project, demo) { }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(project(":orx-parameters"))
|
||||
api(project(":orx-jvm:orx-panel"))
|
||||
api(project(":orx-noise"))
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
implementation(libs.openrndr.filter)
|
||||
implementation(libs.openrndr.dialogs)
|
||||
implementation(libs.gson)
|
||||
implementation(libs.kotlin.reflect)
|
||||
demoImplementation(libs.openrndr.application)
|
||||
demoImplementation(libs.openrndr.extensions)
|
||||
|
||||
demoRuntimeOnly(libs.slf4j.simple)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
||||
demoImplementation(sourceSets.getByName("main").output)
|
||||
}
|
||||
}
|
||||
@@ -1,59 +1,43 @@
|
||||
//plugins {
|
||||
// id 'antlr'
|
||||
//}
|
||||
|
||||
apply plugin: 'antlr'
|
||||
plugins {
|
||||
id("org.openrndr.extra.convention.kotlin-jvm")
|
||||
id("antlr")
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
demo {
|
||||
java {
|
||||
srcDirs = ["src/demo/kotlin"]
|
||||
compileClasspath += main.getCompileClasspath()
|
||||
runtimeClasspath += main.getRuntimeClasspath()
|
||||
}
|
||||
}
|
||||
main {
|
||||
java {
|
||||
srcDir("src/main/java")
|
||||
srcDir("src/main/kotlin")
|
||||
srcDir("build/generated-src/antlr")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform {
|
||||
includeEngines("spek2")
|
||||
}
|
||||
}
|
||||
|
||||
generateGrammarSource {
|
||||
maxHeapSize = "64m"
|
||||
arguments += ["-visitor", "-long-messages"]
|
||||
outputDirectory = file("${project.buildDir}/generated-src/antlr/org/openrndr/extra/keyframer/antlr".toString())
|
||||
|
||||
}
|
||||
|
||||
dependencies {
|
||||
antlr(libs.antlr)
|
||||
implementation(libs.antlrRuntime)
|
||||
antlr(libs.antlr.core)
|
||||
implementation(libs.antlr.runtime)
|
||||
implementation(project(":orx-noise"))
|
||||
implementation(project(":orx-easing"))
|
||||
implementation libs.gson
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
implementation(libs.gson)
|
||||
implementation(libs.kotlin.reflect)
|
||||
|
||||
testImplementation(libs.kotlin.test)
|
||||
|
||||
demoImplementation(project(":orx-camera"))
|
||||
testImplementation(libs.kluent)
|
||||
testImplementation(libs.spek.dsl)
|
||||
testRuntimeOnly(libs.spek.junit5)
|
||||
testRuntimeOnly(libs.kotlin.reflect)
|
||||
demoImplementation(project(":orx-jvm:orx-panel"))
|
||||
|
||||
demoImplementation(libs.openrndr.application)
|
||||
demoImplementation(libs.openrndr.extensions)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
||||
|
||||
demoImplementation(sourceSets.getByName("main").output)
|
||||
}
|
||||
|
||||
tasks.getByName("compileKotlin").dependsOn("generateGrammarSource")
|
||||
tasks.getByName("compileTestKotlin").dependsOn("generateTestGrammarSource")
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
tasks.getByName("compileTestKotlin").dependsOn("generateTestGrammarSource")
|
||||
@@ -1,3 +1,8 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
dependencies {
|
||||
api(project(":orx-depth-camera"))
|
||||
}
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
}
|
||||
@@ -1,10 +1,15 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
implementation(project(":orx-jvm:orx-kinect-v1"))
|
||||
implementation(project(":orx-jvm:orx-depth-camera-calibrator"))
|
||||
implementation(project(":orx-fx"))
|
||||
implementation(project(":orx-jvm:orx-gui"))
|
||||
runtimeOnly(project(":orx-jvm:orx-kinect-v1-${(gradle as ExtensionAware).extra["openrndrClassifier"]}"))
|
||||
runtimeOnly(libs.openrndr.gl3.core)
|
||||
runtimeOnly(libs.openrndr.gl3.natives)
|
||||
runtimeOnly(libs.logback.classic)
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
dependencies {
|
||||
runtimeOnly(variantOf(libs.libfreenect) { classifier("linux-arm64") })
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
dependencies {
|
||||
runtimeOnly(variantOf(libs.libfreenect) { classifier("linux-x86_64") })
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
dependencies {
|
||||
runtimeOnly(variantOf(libs.libfreenect) { classifier("macosx-x86_64") })
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
dependencies {
|
||||
runtimeOnly(variantOf(libs.libfreenect) { classifier("windows-x86_64") })
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,11 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
implementation(libs.kotlin.coroutines)
|
||||
api(project(":orx-jvm:orx-kinect-common"))
|
||||
api(libs.libfreenect)
|
||||
}
|
||||
}
|
||||
@@ -1,48 +1,25 @@
|
||||
//plugins {
|
||||
// id 'antlr'
|
||||
//}
|
||||
|
||||
apply plugin: 'antlr'
|
||||
plugins {
|
||||
id("org.openrndr.extra.convention.kotlin-jvm")
|
||||
id("antlr")
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
demo {
|
||||
java {
|
||||
srcDirs = ["src/demo/kotlin"]
|
||||
compileClasspath += main.getCompileClasspath()
|
||||
runtimeClasspath += main.getRuntimeClasspath()
|
||||
}
|
||||
}
|
||||
main {
|
||||
java {
|
||||
srcDir("src/main/java")
|
||||
srcDir("src/main/kotlin")
|
||||
srcDir("build/generated-src/antlr")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
generateGrammarSource {
|
||||
maxHeapSize = "64m"
|
||||
arguments += ["-visitor", "-long-messages"]
|
||||
outputDirectory = file("${project.buildDir}/generated-src/antlr/org/openrndr/extra/kotlin/antlr".toString())
|
||||
|
||||
}
|
||||
|
||||
dependencies {
|
||||
antlr(libs.antlr)
|
||||
implementation(libs.antlrRuntime)
|
||||
|
||||
demoImplementation(project(":orx-camera"))
|
||||
demoImplementation(project(":orx-jvm:orx-panel"))
|
||||
|
||||
demoImplementation(libs.openrndr.application)
|
||||
demoImplementation(libs.openrndr.extensions)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
||||
|
||||
demoImplementation(sourceSets.getByName("main").output)
|
||||
antlr(libs.antlr.core)
|
||||
implementation(libs.antlr.runtime)
|
||||
}
|
||||
|
||||
tasks.getByName("compileKotlin").dependsOn("generateGrammarSource")
|
||||
8
orx-jvm/orx-midi/build.gradle.kts
Normal file
8
orx-jvm/orx-midi/build.gradle.kts
Normal file
@@ -0,0 +1,8 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
}
|
||||
@@ -1,30 +1,15 @@
|
||||
sourceSets {
|
||||
val main by getting { }
|
||||
val demo by creating {
|
||||
java {
|
||||
srcDir("src/demo/kotlin")
|
||||
compileClasspath += main.getCompileClasspath()
|
||||
runtimeClasspath += main.getRuntimeClasspath()
|
||||
}
|
||||
}
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
val demoImplementation by configurations.getting {}
|
||||
val demoRuntimeOnly by configurations.getting {}
|
||||
|
||||
dependencies {
|
||||
api(project(":orx-parameters"))
|
||||
api(project(":orx-jvm:orx-panel"))
|
||||
|
||||
api(libs.minim) {
|
||||
exclude(group = "org.apache.maven.plugins", module = "maven-javadoc-plugin")
|
||||
}
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
implementation(libs.kotlin.reflect)
|
||||
demoImplementation(libs.openrndr.application)
|
||||
demoImplementation(libs.openrndr.extensions)
|
||||
|
||||
demoRuntimeOnly(libs.slf4j.simple)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
||||
demoImplementation(sourceSets.getByName("main").output)
|
||||
}
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
sourceSets {
|
||||
demo {
|
||||
java {
|
||||
srcDirs = ["src/demo/kotlin"]
|
||||
compileClasspath += main.getCompileClasspath()
|
||||
runtimeClasspath += main.getRuntimeClasspath()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(":orx-jvm:orx-file-watcher")
|
||||
implementation project(":orx-jvm:orx-kotlin-parser")
|
||||
|
||||
implementation libs.kotlin.scriptingJvm
|
||||
implementation libs.kotlin.scriptingJvmHost
|
||||
implementation libs.kotlin.reflect
|
||||
implementation libs.kotlin.scriptingJSR223
|
||||
|
||||
demoImplementation(project(":orx-camera"))
|
||||
|
||||
demoImplementation(libs.openrndr.application)
|
||||
demoImplementation(libs.openrndr.extensions)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
||||
|
||||
demoImplementation(sourceSets.getByName("main").output)
|
||||
}
|
||||
31
orx-jvm/orx-olive/build.gradle.kts
Normal file
31
orx-jvm/orx-olive/build.gradle.kts
Normal file
@@ -0,0 +1,31 @@
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
tasks.withType<KotlinCompile> {
|
||||
kotlinOptions.freeCompilerArgs = listOf("-opt-in=kotlin.RequiresOptIn")
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform {
|
||||
includeEngines("spek2")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":orx-jvm:orx-file-watcher"))
|
||||
implementation(project(":orx-jvm:orx-kotlin-parser"))
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
implementation(libs.kotlin.scriptingJvm)
|
||||
implementation(libs.kotlin.scriptingJvmHost)
|
||||
implementation(libs.kotlin.reflect)
|
||||
implementation(libs.kotlin.scriptingJSR223)
|
||||
implementation(libs.kotlin.coroutines)
|
||||
testImplementation(libs.kluent)
|
||||
testImplementation(libs.spek.dsl)
|
||||
testRuntimeOnly(libs.spek.junit5)
|
||||
testRuntimeOnly(libs.kotlin.reflect)
|
||||
}
|
||||
@@ -1,6 +1,10 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.javaosc.core) {
|
||||
exclude(group = "org.slf4j")
|
||||
exclude(group = "log4j")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,27 +1,33 @@
|
||||
import ScreenshotsHelper.collectScreenshots
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
tasks.withType<KotlinCompile> {
|
||||
kotlinOptions.freeCompilerArgs = listOf("-opt-in=kotlin.RequiresOptIn")
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform {
|
||||
includeEngines("spek2")
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val main by getting { }
|
||||
val demo by creating {
|
||||
java {
|
||||
srcDir("src/demo/kotlin")
|
||||
compileClasspath += main.getCompileClasspath()
|
||||
runtimeClasspath += main.getRuntimeClasspath()
|
||||
}
|
||||
}
|
||||
val demo by getting
|
||||
collectScreenshots(project, demo) { }
|
||||
}
|
||||
|
||||
val demoImplementation by configurations.getting {}
|
||||
|
||||
val demoRuntimeOnly by configurations.getting {}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
implementation(libs.kotlin.coroutines)
|
||||
implementation(libs.kotlin.reflect)
|
||||
demoImplementation(libs.openrndr.extensions)
|
||||
testImplementation(libs.spek.dsl)
|
||||
testRuntimeOnly(libs.spek.junit5)
|
||||
testRuntimeOnly(libs.kotlin.reflect)
|
||||
demoImplementation(libs.openrndr.dialogs)
|
||||
demoImplementation(libs.gson)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
||||
demoImplementation(sourceSets.getByName("main").output)
|
||||
}
|
||||
}
|
||||
@@ -1,28 +1,19 @@
|
||||
import ScreenshotsHelper.collectScreenshots
|
||||
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val main by getting { }
|
||||
val demo by creating {
|
||||
java {
|
||||
srcDir("src/demo/kotlin")
|
||||
compileClasspath += main.getCompileClasspath()
|
||||
runtimeClasspath += main.getRuntimeClasspath()
|
||||
}
|
||||
}
|
||||
val demo by getting
|
||||
collectScreenshots(project, demo) { }
|
||||
}
|
||||
|
||||
val demoImplementation by configurations.getting {}
|
||||
val demoRuntimeOnly by configurations.getting {}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
implementation(project(":orx-fx"))
|
||||
implementation(project(":orx-noise"))
|
||||
implementation(libs.openrndr.filter)
|
||||
demoImplementation(libs.openrndr.application)
|
||||
demoImplementation(libs.openrndr.extensions)
|
||||
demoRuntimeOnly(libs.slf4j.simple)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
||||
demoImplementation(sourceSets.getByName("main").output)
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
sourceSets {
|
||||
demo {
|
||||
java {
|
||||
srcDirs = ["src/demo/kotlin"]
|
||||
compileClasspath += main.getCompileClasspath()
|
||||
runtimeClasspath += main.getRuntimeClasspath()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":orx-parameters"))
|
||||
implementation(project(":orx-compositor"))
|
||||
implementation(project(":orx-image-fit"))
|
||||
implementation(project(":orx-fx"))
|
||||
|
||||
implementation(libs.rabbitcontrol.rcp)
|
||||
implementation(libs.netty.all)
|
||||
implementation(libs.zxing.core)
|
||||
implementation(libs.ktor.server.core)
|
||||
implementation(libs.ktor.server.netty)
|
||||
|
||||
demoImplementation(libs.openrndr.extensions)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
||||
demoImplementation(sourceSets.getByName("main").output)
|
||||
}
|
||||
17
orx-jvm/orx-rabbit-control/build.gradle.kts
Normal file
17
orx-jvm/orx-rabbit-control/build.gradle.kts
Normal file
@@ -0,0 +1,17 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":orx-parameters"))
|
||||
implementation(project(":orx-compositor"))
|
||||
implementation(project(":orx-image-fit"))
|
||||
implementation(project(":orx-fx"))
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
implementation(libs.rabbitcontrol.rcp)
|
||||
implementation(libs.netty.all)
|
||||
implementation(libs.zxing.core)
|
||||
implementation(libs.ktor.server.core)
|
||||
implementation(libs.ktor.server.netty)
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
dependencies {
|
||||
runtimeOnly(variantOf(libs.librealsense) { classifier("linux-x86_64") })
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
dependencies {
|
||||
runtimeOnly(variantOf(libs.librealsense) { classifier("macosx-x86_64") })
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
dependencies {
|
||||
runtimeOnly(variantOf(libs.librealsense) { classifier("windows-x86_64") })
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
sourceSets {
|
||||
demo {
|
||||
java {
|
||||
srcDirs = ["src/demo/kotlin"]
|
||||
compileClasspath += main.getCompileClasspath()
|
||||
runtimeClasspath += main.getRuntimeClasspath()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(libs.librealsense)
|
||||
demoImplementation(libs.openrndr.application)
|
||||
demoImplementation(libs.openrndr.extensions)
|
||||
demoRuntimeOnly(project(":orx-jvm:orx-realsense2-${gradle.ext.openrndrClassifier}"))
|
||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
||||
demoImplementation(sourceSets.getByName("main").output)
|
||||
}
|
||||
10
orx-jvm/orx-realsense2/build.gradle.kts
Normal file
10
orx-jvm/orx-realsense2/build.gradle.kts
Normal file
@@ -0,0 +1,10 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
api(libs.librealsense)
|
||||
demoRuntimeOnly(project(":orx-jvm:orx-realsense2-${(gradle as ExtensionAware).extra["openrndrClassifier"]}"))
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
sourceSets {
|
||||
demo {
|
||||
java {
|
||||
srcDirs = ["src/demo/kotlin"]
|
||||
compileClasspath += main.getCompileClasspath()
|
||||
runtimeClasspath += main.getRuntimeClasspath()
|
||||
}
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
implementation(libs.gson)
|
||||
demoImplementation(libs.openrndr.application)
|
||||
|
||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
||||
demoRuntimeOnly(libs.openrndr.extensions)
|
||||
demoImplementation(libs.openrndr.ffmpeg)
|
||||
demoRuntimeOnly(libs.openrndr.ffmpeg.natives)
|
||||
|
||||
demoImplementation(project(":orx-fx"))
|
||||
|
||||
demoImplementation(sourceSets.getByName("main").output)
|
||||
}
|
||||
11
orx-jvm/orx-runway/build.gradle.kts
Normal file
11
orx-jvm/orx-runway/build.gradle.kts
Normal file
@@ -0,0 +1,11 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
implementation(libs.gson)
|
||||
demoImplementation(libs.openrndr.ffmpeg)
|
||||
demoImplementation(project(":orx-fx"))
|
||||
}
|
||||
@@ -1,5 +1,8 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.gl3.core)
|
||||
implementation(libs.openrndr.gl3.natives)
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
dependencies {
|
||||
runtimeOnly(variantOf(libs.tensorflow) { classifier("linux-x86_64-gpu") })
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
dependencies {
|
||||
runtimeOnly(variantOf(libs.tensorflow) { classifier("windows-x86_64-gpu") })
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
dependencies {
|
||||
runtimeOnly(variantOf(libs.tensorflow) { classifier("linux-x86_64") })
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
dependencies {
|
||||
runtimeOnly(variantOf(libs.tensorflow) { classifier("macosx-x86_64") })
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
dependencies {
|
||||
runtimeOnly(variantOf(libs.tensorflow) { classifier("windows-x86_64") })
|
||||
}
|
||||
@@ -1,11 +1,8 @@
|
||||
plugins {
|
||||
id("org.openrndr.extra.convention.kotlin-jvm")
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
demo {
|
||||
java {
|
||||
srcDirs = ["src/demo/kotlin"]
|
||||
compileClasspath += main.getCompileClasspath()
|
||||
runtimeClasspath += main.getRuntimeClasspath()
|
||||
}
|
||||
}
|
||||
wrapgen {
|
||||
java {
|
||||
srcDirs = ["src/wrapgen/kotlin"]
|
||||
@@ -19,19 +16,13 @@ compileWrapgenKotlin {}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.gson)
|
||||
demoImplementation(libs.openrndr.application)
|
||||
|
||||
implementation(libs.openrndr.application)
|
||||
implementation(libs.openrndr.math)
|
||||
demoRuntimeOnly(project(":orx-jvm:orx-tensorflow-${gradle.ext.openrndrClassifier}"))
|
||||
|
||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
||||
demoRuntimeOnly(libs.openrndr.extensions)
|
||||
demoImplementation(libs.openrndr.ffmpeg)
|
||||
demoRuntimeOnly(libs.openrndr.ffmpeg.natives)
|
||||
demoImplementation(project(":orx-fx"))
|
||||
demoImplementation(sourceSets.getByName("main").output)
|
||||
api(libs.tensorflow)
|
||||
|
||||
// -- wrapgen
|
||||
wrapgenImplementation(libs.javaparser.core)
|
||||
}
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
sourceSets {
|
||||
demo {
|
||||
java {
|
||||
srcDirs = ["src/demo/kotlin"]
|
||||
compileClasspath += main.getCompileClasspath()
|
||||
runtimeClasspath += main.getRuntimeClasspath()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def useSnapshot = false
|
||||
def delaunatorVersion = (useSnapshot) ? "0.4.0-SNAPSHOT" : "1.0.2"
|
||||
|
||||
dependencies {
|
||||
api project(":orx-noise")
|
||||
|
||||
implementation("com.github.ricardomatias:delaunator:$delaunatorVersion")
|
||||
|
||||
demoImplementation(libs.openrndr.application)
|
||||
demoImplementation(libs.openrndr.extensions)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
||||
demoImplementation(sourceSets.getByName("main").output)
|
||||
}
|
||||
10
orx-jvm/orx-triangulation/build.gradle.kts
Normal file
10
orx-jvm/orx-triangulation/build.gradle.kts
Normal file
@@ -0,0 +1,10 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(project(":orx-noise"))
|
||||
implementation(libs.openrndr.shape)
|
||||
implementation(libs.openrndr.math)
|
||||
implementation(libs.delaunator)
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
sourceSets {
|
||||
demo {
|
||||
java {
|
||||
srcDirs = ["src/demo/kotlin"]
|
||||
compileClasspath += main.getCompileClasspath()
|
||||
runtimeClasspath += main.getRuntimeClasspath()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
demoImplementation(libs.openrndr.application)
|
||||
demoImplementation(libs.openrndr.extensions)
|
||||
demoImplementation(libs.openrndr.ffmpeg)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
||||
implementation(libs.openrndr.ffmpeg)
|
||||
demoImplementation(sourceSets.getByName("main").output)
|
||||
}
|
||||
8
orx-jvm/orx-video-profiles/build.gradle.kts
Normal file
8
orx-jvm/orx-video-profiles/build.gradle.kts
Normal file
@@ -0,0 +1,8 @@
|
||||
plugins {
|
||||
org.openrndr.extra.convention.`kotlin-jvm`
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.openrndr.ffmpeg)
|
||||
demoImplementation(libs.openrndr.ffmpeg)
|
||||
}
|
||||
Reference in New Issue
Block a user