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