Use buildSrc to deduplicate build logic (#262)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user