Use buildSrc to deduplicate build logic (#262)
This commit is contained in:
121
build.gradle
121
build.gradle
@@ -1,21 +1,11 @@
|
|||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
plugins {
|
||||||
|
alias(libs.plugins.nebula.release) apply false
|
||||||
// root build.gradle
|
alias(libs.plugins.gradle.nexus.publish)
|
||||||
buildscript {
|
id("org.openrndr.extra.convention.dokka")
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
dependencies {
|
|
||||||
classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.9.17"
|
|
||||||
classpath "com.netflix.nebula:nebula-release-plugin:16.0.0"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
repositories {
|
||||||
// remember to update all the versions here when upgrading kotlin version
|
mavenCentral()
|
||||||
id 'org.jetbrains.kotlin.jvm' apply false
|
|
||||||
id 'org.jetbrains.kotlin.multiplatform' apply false
|
|
||||||
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def multiplatformModules = [
|
def multiplatformModules = [
|
||||||
@@ -41,33 +31,7 @@ def multiplatformModules = [
|
|||||||
|
|
||||||
def doNotPublish = ["openrndr-demos"]
|
def doNotPublish = ["openrndr-demos"]
|
||||||
|
|
||||||
apply plugin: 'org.jetbrains.dokka'
|
def isReleaseVersion = !version.endsWith("SNAPSHOT")
|
||||||
|
|
||||||
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
|
|
||||||
|
|
||||||
def openrndrUseSnapshot = isReleaseVersion
|
|
||||||
|
|
||||||
allprojects {
|
|
||||||
group 'org.openrndr.extra'
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
if (openrndrUseSnapshot) {
|
|
||||||
mavenLocal()
|
|
||||||
}
|
|
||||||
maven {
|
|
||||||
url = "https://maven.openrndr.org"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
dokka {
|
|
||||||
moduleName = "$rootProject.name"
|
|
||||||
outputDirectory = "$buildDir/docs"
|
|
||||||
outputFormat = "html"
|
|
||||||
includes = ['Module.md']
|
|
||||||
sourceDirs = files(subprojects.collect { p -> new File(p.projectDir, "/src/main/kotlin") })
|
|
||||||
}
|
|
||||||
|
|
||||||
task buildMainReadme {
|
task buildMainReadme {
|
||||||
doFirst {
|
doFirst {
|
||||||
@@ -159,7 +123,6 @@ configure(allprojects.findAll { !doNotPublish.contains(it.name) && (multiplatfor
|
|||||||
archiveClassifier = "javadoc"
|
archiveClassifier = "javadoc"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
matching { it.name == "jvm" }.all { p ->
|
matching { it.name == "jvm" }.all { p ->
|
||||||
@@ -168,6 +131,11 @@ configure(allprojects.findAll { !doNotPublish.contains(it.name) && (multiplatfor
|
|||||||
}
|
}
|
||||||
publications {
|
publications {
|
||||||
all {
|
all {
|
||||||
|
versionMapping {
|
||||||
|
allVariants {
|
||||||
|
fromResolutionOf("allSourceSetsRuntimeDependenciesMetadata")
|
||||||
|
}
|
||||||
|
}
|
||||||
pom {
|
pom {
|
||||||
name = "$project.name"
|
name = "$project.name"
|
||||||
description = "$project.name"
|
description = "$project.name"
|
||||||
@@ -214,20 +182,15 @@ configure(allprojects.findAll { !doNotPublish.contains(it.name) && (multiplatfor
|
|||||||
required { isReleaseVersion && gradle.taskGraph.hasTask("publish") }
|
required { isReleaseVersion && gradle.taskGraph.hasTask("publish") }
|
||||||
sign publishing.publications
|
sign publishing.publications
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// publishable && JVM only
|
// publishable && JVM only
|
||||||
configure(allprojects.findAll { !doNotPublish.contains(it.name) && !multiplatformModules.contains(it.name) }) {
|
configure(allprojects.findAll { !doNotPublish.contains(it.name) && !multiplatformModules.contains(it.name) }) {
|
||||||
// apply plugin: 'idea'
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'kotlin'
|
|
||||||
apply plugin: 'maven-publish'
|
apply plugin: 'maven-publish'
|
||||||
apply plugin: 'nebula.release'
|
apply plugin: 'nebula.release'
|
||||||
apply plugin: 'signing'
|
apply plugin: 'signing'
|
||||||
|
|
||||||
def proj = it
|
|
||||||
println proj
|
|
||||||
java {
|
java {
|
||||||
withJavadocJar()
|
withJavadocJar()
|
||||||
withSourcesJar()
|
withSourcesJar()
|
||||||
@@ -236,6 +199,11 @@ configure(allprojects.findAll { !doNotPublish.contains(it.name) && !multiplatfor
|
|||||||
publications {
|
publications {
|
||||||
maven(MavenPublication) {
|
maven(MavenPublication) {
|
||||||
from components.java
|
from components.java
|
||||||
|
versionMapping {
|
||||||
|
allVariants {
|
||||||
|
fromResolutionOf("default")
|
||||||
|
}
|
||||||
|
}
|
||||||
groupId = "org.openrndr.extra"
|
groupId = "org.openrndr.extra"
|
||||||
artifactId = "$project.name"
|
artifactId = "$project.name"
|
||||||
description = "$project.name"
|
description = "$project.name"
|
||||||
@@ -286,37 +254,10 @@ configure(allprojects.findAll { !doNotPublish.contains(it.name) && !multiplatfor
|
|||||||
required { isReleaseVersion && gradle.taskGraph.hasTask("publish") }
|
required { isReleaseVersion && gradle.taskGraph.hasTask("publish") }
|
||||||
sign publishing.publications
|
sign publishing.publications
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation libs.kotlin.logging
|
|
||||||
implementation libs.kotlin.coroutines
|
|
||||||
implementation libs.kotlin.stdlib
|
|
||||||
implementation libs.openrndr.application
|
|
||||||
implementation libs.openrndr.math
|
|
||||||
testImplementation libs.spek.dsl
|
|
||||||
testImplementation libs.kluent
|
|
||||||
testImplementation libs.kotlin.test
|
|
||||||
testRuntimeOnly libs.spek.junit5
|
|
||||||
testRuntimeOnly libs.kotlin.reflect
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
test {
|
|
||||||
useJUnitPlatform {
|
|
||||||
includeEngines 'spek2'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
javadoc {
|
|
||||||
options.addBooleanOption 'Xdoclint:none', true
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile).all {
|
|
||||||
kotlinOptions.freeCompilerArgs += ["-Xuse-experimental=kotlinx.coroutines.InternalCoroutinesApi"]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "org.openrndr"
|
group = "org.openrndr.extra"
|
||||||
|
|
||||||
nexusPublishing {
|
nexusPublishing {
|
||||||
repositories {
|
repositories {
|
||||||
sonatype {
|
sonatype {
|
||||||
@@ -331,29 +272,7 @@ nexusPublishing {
|
|||||||
subprojects {
|
subprojects {
|
||||||
// Equivalent Kotlin is: tasks.register<DependencyReportTask>("dependenciesAll") { ...
|
// Equivalent Kotlin is: tasks.register<DependencyReportTask>("dependenciesAll") { ...
|
||||||
tasks.register("dependenciesAll", DependencyReportTask) {
|
tasks.register("dependenciesAll", DependencyReportTask) {
|
||||||
group = "help"
|
group = HelpTasksPlugin.HELP_GROUP
|
||||||
description = "Displays all dependencies, including subprojects."
|
description = "Displays all dependencies, including subprojects."
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
|
||||||
// https://youtrack.jetbrains.com/issue/KT-43095/Add-support-for-Java-Toolchain-to-the-Gradle-plugin#focus=Comments-27-5192573.0-0
|
|
||||||
jvmToolchain { toolchain ->
|
|
||||||
(toolchain as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(libs.versions.jvmTarget.get()))
|
|
||||||
}
|
|
||||||
tasks.withType(KotlinCompile).configureEach {
|
|
||||||
kotlinOptions.jvmTarget = libs.versions.jvmTarget.get()
|
|
||||||
kotlinOptions.apiVersion = libs.versions.kotlinApi.get()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//configure(allprojects.findAll { it.name != "openrndr-demos" }) {
|
|
||||||
// apply plugin: 'maven-publish'
|
|
||||||
// apply plugin: 'nebula.release'
|
|
||||||
//}
|
|
||||||
|
|
||||||
|
|
||||||
//collectScreenshots.dependsOn {
|
|
||||||
// project.subprojects.findAll { it.sourceSets.hasProperty("demo") }.collect { it.tasks.demoClasses }
|
|
||||||
//}
|
|
||||||
|
|||||||
@@ -2,31 +2,31 @@ plugins {
|
|||||||
`kotlin-dsl`
|
`kotlin-dsl`
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
val preload: SourceSet by sourceSets.creating
|
||||||
val preload by creating {
|
|
||||||
this.java {
|
|
||||||
srcDir("src/preload/kotlin")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
val main by getting
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
gradlePluginPortal()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val openrndrVersion =
|
val openrndrVersion: String =
|
||||||
(findProperty("OPENRNDR.version")?.toString() ?: System.getenv("OPENRNDR_VERSION"))?.replace("v", "")
|
(extra.properties["OPENRNDR.version"] as String? ?: System.getenv("OPENRNDR_VERSION"))?.removePrefix("v")
|
||||||
?: "0.5.1-SNAPSHOT"
|
?: "0.5.1-SNAPSHOT"
|
||||||
|
|
||||||
|
configurations.all {
|
||||||
|
resolutionStrategy.eachDependency {
|
||||||
|
if (requested.group == "org.openrndr") useVersion(openrndrVersion)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20")
|
implementation(libs.kotlin.gradle.plugin)
|
||||||
implementation("org.jetbrains.kotlin:kotlin-serialization:1.6.20")
|
implementation(libs.dokka.gradle.plugin)
|
||||||
val preloadImplementation by configurations.getting
|
implementation(libs.kotlin.serialization.gradle.plugin)
|
||||||
preloadImplementation("org.openrndr:openrndr-application:$openrndrVersion")
|
// https://github.com/gradle/gradle/issues/15383#issuecomment-779893192
|
||||||
preloadImplementation("org.openrndr:openrndr-extensions:$openrndrVersion")
|
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))
|
||||||
|
"preloadImplementation"(libs.openrndr.application)
|
||||||
|
"preloadImplementation"(libs.openrndr.extensions)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.getByName("compileKotlin").dependsOn("compilePreloadKotlin")
|
tasks.getByName("compileKotlin").dependsOn("compilePreloadKotlin")
|
||||||
7
buildSrc/settings.gradle.kts
Normal file
7
buildSrc/settings.gradle.kts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
dependencyResolutionManagement {
|
||||||
|
versionCatalogs {
|
||||||
|
create("libs") {
|
||||||
|
from(files("../gradle/libs.versions.toml"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
package org.openrndr.extra.convention
|
||||||
|
|
||||||
|
import org.gradle.api.artifacts.CacheableRule
|
||||||
|
import org.gradle.api.artifacts.ComponentMetadataContext
|
||||||
|
import org.gradle.api.artifacts.ComponentMetadataRule
|
||||||
|
import org.gradle.api.model.ObjectFactory
|
||||||
|
import org.gradle.kotlin.dsl.named
|
||||||
|
import org.gradle.nativeplatform.MachineArchitecture
|
||||||
|
import org.gradle.nativeplatform.OperatingSystemFamily
|
||||||
|
import javax.inject.Inject
|
||||||
|
|
||||||
|
@CacheableRule
|
||||||
|
abstract class FFmpegRule : ComponentMetadataRule {
|
||||||
|
val jvmNativeVariants: List<JvmNativeVariant> = listOf(
|
||||||
|
JvmNativeVariant("linux-arm64", OperatingSystemFamily.LINUX, "arm64"),
|
||||||
|
JvmNativeVariant("linux-x86_64", OperatingSystemFamily.LINUX, "x86-64"),
|
||||||
|
JvmNativeVariant("macos-arm64", OperatingSystemFamily.MACOS, "arm64"),
|
||||||
|
JvmNativeVariant("macos-x86_64", OperatingSystemFamily.MACOS, "x86-64"),
|
||||||
|
JvmNativeVariant("windows-x86_64", OperatingSystemFamily.WINDOWS, "x86-64")
|
||||||
|
)
|
||||||
|
|
||||||
|
@get:Inject
|
||||||
|
abstract val objects: ObjectFactory
|
||||||
|
|
||||||
|
override fun execute(context: ComponentMetadataContext) = context.details.run {
|
||||||
|
withVariant("runtime") {
|
||||||
|
attributes {
|
||||||
|
attributes.attribute(OperatingSystemFamily.OPERATING_SYSTEM_ATTRIBUTE, objects.named("none"))
|
||||||
|
attributes.attribute(MachineArchitecture.ARCHITECTURE_ATTRIBUTE, objects.named("none"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for ((targetName, os, arch) in jvmNativeVariants) {
|
||||||
|
addVariant("$targetName-runtime", "runtime") {
|
||||||
|
attributes {
|
||||||
|
attributes.attribute(OperatingSystemFamily.OPERATING_SYSTEM_ATTRIBUTE, objects.named(os))
|
||||||
|
attributes.attribute(MachineArchitecture.ARCHITECTURE_ATTRIBUTE, objects.named(arch))
|
||||||
|
}
|
||||||
|
withFiles {
|
||||||
|
addFile("${id.name}-${id.version}-$targetName.jar")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
package org.openrndr.extra.convention
|
||||||
|
|
||||||
|
import org.gradle.api.artifacts.CacheableRule
|
||||||
|
import org.gradle.api.artifacts.ComponentMetadataContext
|
||||||
|
import org.gradle.api.artifacts.ComponentMetadataRule
|
||||||
|
import org.gradle.api.model.ObjectFactory
|
||||||
|
import org.gradle.kotlin.dsl.named
|
||||||
|
import org.gradle.nativeplatform.MachineArchitecture
|
||||||
|
import org.gradle.nativeplatform.OperatingSystemFamily
|
||||||
|
import javax.inject.Inject
|
||||||
|
|
||||||
|
@CacheableRule
|
||||||
|
abstract class LwjglRule : ComponentMetadataRule {
|
||||||
|
val jvmNativeVariants: List<JvmNativeVariant> = listOf(
|
||||||
|
JvmNativeVariant("natives-linux-arm64", OperatingSystemFamily.LINUX, "arm64"),
|
||||||
|
JvmNativeVariant("natives-linux", OperatingSystemFamily.LINUX, "x86-64"),
|
||||||
|
JvmNativeVariant("natives-macos-arm64", OperatingSystemFamily.MACOS, "arm64"),
|
||||||
|
JvmNativeVariant("natives-macos", OperatingSystemFamily.MACOS, "x86-64"),
|
||||||
|
JvmNativeVariant("natives-windows", OperatingSystemFamily.WINDOWS, "x86-64")
|
||||||
|
)
|
||||||
|
|
||||||
|
@get:Inject
|
||||||
|
abstract val objects: ObjectFactory
|
||||||
|
|
||||||
|
override fun execute(context: ComponentMetadataContext) = context.details.run {
|
||||||
|
if (id.group != "org.lwjgl") return
|
||||||
|
if (id.name == "lwjgl-egl") return
|
||||||
|
withVariant("runtime") {
|
||||||
|
attributes {
|
||||||
|
attributes.attribute(OperatingSystemFamily.OPERATING_SYSTEM_ATTRIBUTE, objects.named("none"))
|
||||||
|
attributes.attribute(MachineArchitecture.ARCHITECTURE_ATTRIBUTE, objects.named("none"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for ((targetName, os, arch) in jvmNativeVariants) {
|
||||||
|
addVariant("$targetName-runtime", "runtime") {
|
||||||
|
attributes {
|
||||||
|
attributes.attribute(OperatingSystemFamily.OPERATING_SYSTEM_ATTRIBUTE, objects.named(os))
|
||||||
|
attributes.attribute(MachineArchitecture.ARCHITECTURE_ATTRIBUTE, objects.named(arch))
|
||||||
|
}
|
||||||
|
withFiles {
|
||||||
|
addFile("${id.name}-${id.version}-$targetName.jar")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package org.openrndr.extra.convention
|
||||||
|
|
||||||
|
import org.gradle.api.Project
|
||||||
|
import org.gradle.kotlin.dsl.get
|
||||||
|
import org.gradle.kotlin.dsl.named
|
||||||
|
import org.gradle.nativeplatform.MachineArchitecture
|
||||||
|
import org.gradle.nativeplatform.OperatingSystemFamily
|
||||||
|
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
|
||||||
|
import org.jetbrains.kotlin.gradle.plugin.KotlinCompilation
|
||||||
|
|
||||||
|
data class JvmNativeVariant(val targetName: String, val os: String, val arch: String)
|
||||||
|
|
||||||
|
val currentOperatingSystemName: String = DefaultNativePlatform.getCurrentOperatingSystem().toFamilyName()
|
||||||
|
val currentArchitectureName: String = DefaultNativePlatform.getCurrentArchitecture().name
|
||||||
|
|
||||||
|
fun Project.addHostMachineAttributesToRuntimeConfigurations() {
|
||||||
|
configurations.matching {
|
||||||
|
it.name.endsWith("runtimeClasspath", ignoreCase = true)
|
||||||
|
}.configureEach {
|
||||||
|
attributes {
|
||||||
|
attribute(OperatingSystemFamily.OPERATING_SYSTEM_ATTRIBUTE, objects.named(currentOperatingSystemName))
|
||||||
|
attribute(MachineArchitecture.ARCHITECTURE_ATTRIBUTE, objects.named(currentArchitectureName))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
package org.openrndr.extra.convention
|
||||||
|
|
||||||
|
addHostMachineAttributesToRuntimeConfigurations()
|
||||||
|
|
||||||
|
val openrndrVersion: String =
|
||||||
|
(extra.properties["OPENRNDR.version"] as String? ?: System.getenv("OPENRNDR_VERSION"))?.removePrefix("v")
|
||||||
|
?: "0.5.1-SNAPSHOT"
|
||||||
|
|
||||||
|
configurations.all {
|
||||||
|
resolutionStrategy.eachDependency {
|
||||||
|
if (requested.group == "org.openrndr") useVersion(openrndrVersion)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
components {
|
||||||
|
all<LwjglRule>()
|
||||||
|
withModule<FFmpegRule>("org.bytedeco:javacpp")
|
||||||
|
withModule<FFmpegRule>("org.bytedeco:ffmpeg")
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
package org.openrndr.extra.convention
|
||||||
|
|
||||||
|
import org.jetbrains.dokka.gradle.DokkaTaskPartial
|
||||||
|
import java.net.URL
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("org.jetbrains.dokka")
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType<DokkaTaskPartial>() {
|
||||||
|
dokkaSourceSets {
|
||||||
|
configureEach {
|
||||||
|
skipDeprecated.set(true)
|
||||||
|
val sourcesDirectory = try {
|
||||||
|
file("src/$name/kotlin", PathValidation.EXISTS)
|
||||||
|
} catch (_: InvalidUserDataException) {
|
||||||
|
return@configureEach
|
||||||
|
}
|
||||||
|
// Specifies the location of the project source code on the Web.
|
||||||
|
// If provided, Dokka generates "source" links for each declaration.
|
||||||
|
sourceLink {
|
||||||
|
// Unix based directory relative path to the root of the project (where you execute gradle respectively).
|
||||||
|
localDirectory.set(sourcesDirectory)
|
||||||
|
// URL showing where the source code can be accessed through the web browser
|
||||||
|
remoteUrl.set(
|
||||||
|
URL("https://github.com/openrndr/orx/blob/master/${moduleName.get()}/src/$name/kotlin")
|
||||||
|
)
|
||||||
|
// Suffix which is used to append the line number to the URL. Use #L for GitHub
|
||||||
|
remoteLineSuffix.set("#L")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
package org.openrndr.extra.convention
|
||||||
|
|
||||||
|
import org.gradle.accessors.dm.LibrariesForLibs
|
||||||
|
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
||||||
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
import java.net.URI
|
||||||
|
|
||||||
|
val libs = the<LibrariesForLibs>()
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
java
|
||||||
|
kotlin("jvm")
|
||||||
|
id("maven-publish")
|
||||||
|
id("org.openrndr.extra.convention.component-metadata-rule")
|
||||||
|
id("org.openrndr.extra.convention.dokka")
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
maven {
|
||||||
|
// This is needed to resolve `com.github.ricardomatias:delaunator`
|
||||||
|
url = URI("https://maven.openrndr.org")
|
||||||
|
}
|
||||||
|
mavenLocal()
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.openrndr.extra"
|
||||||
|
|
||||||
|
val main by sourceSets.getting
|
||||||
|
|
||||||
|
@Suppress("UNUSED_VARIABLE")
|
||||||
|
val demo by sourceSets.creating
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(libs.kotlin.stdlib)
|
||||||
|
implementation(libs.kotlin.logging)
|
||||||
|
testImplementation(libs.kotlin.test)
|
||||||
|
"demoImplementation"(main.output.classesDirs + main.runtimeClasspath)
|
||||||
|
"demoImplementation"(libs.openrndr.application)
|
||||||
|
"demoImplementation"(libs.openrndr.extensions)
|
||||||
|
"demoRuntimeOnly"(libs.openrndr.gl3.core)
|
||||||
|
}
|
||||||
|
|
||||||
|
kotlin {
|
||||||
|
jvmToolchain {
|
||||||
|
this as JavaToolchainSpec
|
||||||
|
languageVersion.set(JavaLanguageVersion.of(libs.versions.jvmTarget.get()))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
@Suppress("UNUSED_VARIABLE")
|
||||||
|
val test by getting(Test::class) {
|
||||||
|
useJUnitPlatform()
|
||||||
|
testLogging.exceptionFormat = TestExceptionFormat.FULL
|
||||||
|
}
|
||||||
|
|
||||||
|
@Suppress("UNUSED_VARIABLE")
|
||||||
|
val javadoc by getting(Javadoc::class) {
|
||||||
|
options {
|
||||||
|
this as StandardJavadocDocletOptions
|
||||||
|
addBooleanOption("Xdoclint:none", true)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
withType<KotlinCompile>() {
|
||||||
|
kotlinOptions.apiVersion = libs.versions.kotlinApi.get()
|
||||||
|
kotlinOptions.languageVersion = libs.versions.kotlinLanguage.get()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,93 @@
|
|||||||
|
package org.openrndr.extra.convention
|
||||||
|
|
||||||
|
import org.gradle.accessors.dm.LibrariesForLibs
|
||||||
|
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
||||||
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
import java.net.URI
|
||||||
|
|
||||||
|
val libs = the<LibrariesForLibs>()
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
kotlin("multiplatform")
|
||||||
|
id("maven-publish")
|
||||||
|
id("org.openrndr.extra.convention.component-metadata-rule")
|
||||||
|
id("org.openrndr.extra.convention.dokka")
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
maven {
|
||||||
|
// This is needed to resolve `com.github.ricardomatias:delaunator`
|
||||||
|
url = URI("https://maven.openrndr.org")
|
||||||
|
}
|
||||||
|
mavenLocal()
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.openrndr.extra"
|
||||||
|
|
||||||
|
tasks.withType<KotlinCompile>() {
|
||||||
|
kotlinOptions.apiVersion = libs.versions.kotlinApi.get()
|
||||||
|
kotlinOptions.languageVersion = libs.versions.kotlinLanguage.get()
|
||||||
|
}
|
||||||
|
|
||||||
|
kotlin {
|
||||||
|
jvm {
|
||||||
|
jvmToolchain {
|
||||||
|
this as JavaToolchainSpec
|
||||||
|
languageVersion.set(JavaLanguageVersion.of(libs.versions.jvmTarget.get()))
|
||||||
|
}
|
||||||
|
compilations {
|
||||||
|
val main by getting
|
||||||
|
@Suppress("UNUSED_VARIABLE")
|
||||||
|
val demo by creating {
|
||||||
|
defaultSourceSet {
|
||||||
|
dependencies {
|
||||||
|
implementation(main.output.allOutputs)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
testRuns["test"].executionTask {
|
||||||
|
useJUnitPlatform()
|
||||||
|
testLogging.exceptionFormat = TestExceptionFormat.FULL
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
js(IR) {
|
||||||
|
browser()
|
||||||
|
nodejs()
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
@Suppress("UNUSED_VARIABLE")
|
||||||
|
val commonMain by getting {
|
||||||
|
dependencies {
|
||||||
|
implementation(libs.kotlin.stdlib)
|
||||||
|
implementation(libs.kotlin.logging)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Suppress("UNUSED_VARIABLE")
|
||||||
|
val commonTest by getting {
|
||||||
|
dependencies {
|
||||||
|
implementation(libs.kotlin.test)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Suppress("UNUSED_VARIABLE")
|
||||||
|
val jvmTest by getting {
|
||||||
|
dependencies {
|
||||||
|
runtimeOnly(libs.bundles.jupiter)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Suppress("UNUSED_VARIABLE")
|
||||||
|
val jvmDemo by getting {
|
||||||
|
dependencies {
|
||||||
|
implementation(libs.openrndr.application)
|
||||||
|
implementation(libs.openrndr.extensions)
|
||||||
|
runtimeOnly(libs.openrndr.gl3.core)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,8 +1,16 @@
|
|||||||
# suppress inspection "UnusedProperty" for whole file
|
# suppress inspection "UnusedProperty" for whole file
|
||||||
|
|
||||||
org.gradle.parallel=true
|
kotlin.code.style=official
|
||||||
|
# For optimal compilation performance
|
||||||
|
org.gradle.jvmargs=-Xmx2G -XX:+UseParallelGC
|
||||||
# Enable compatibility with non-hierarchical projects
|
# Enable compatibility with non-hierarchical projects
|
||||||
# https://kotlinlang.org/docs/multiplatform-hierarchy.html#for-library-authors
|
# https://kotlinlang.org/docs/multiplatform-hierarchy.html#for-library-authors
|
||||||
kotlin.mpp.enableCompatibilityMetadataVariant=true
|
kotlin.mpp.enableCompatibilityMetadataVariant=true
|
||||||
|
kotlin.incremental.multiplatform=true
|
||||||
# https://kotlinlang.org/docs/gradle.html#check-for-jvm-target-compatibility-of-related-compile-tasks
|
# https://kotlinlang.org/docs/gradle.html#check-for-jvm-target-compatibility-of-related-compile-tasks
|
||||||
kotlin.jvm.target.validation.mode=error
|
kotlin.jvm.target.validation.mode=error
|
||||||
|
org.gradle.parallel=true
|
||||||
|
org.gradle.caching=true
|
||||||
|
# Whether to automatically bundle the Kotlin standard library (true by default)
|
||||||
|
# https://kotlinlang.org/docs/gradle.html#dependency-on-the-standard-library
|
||||||
|
kotlin.stdlib.default.dependency=true
|
||||||
95
gradle/libs.versions.toml
Normal file
95
gradle/libs.versions.toml
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
[versions]
|
||||||
|
kotlinApi = "1.6"
|
||||||
|
kotlinLanguage = "1.6"
|
||||||
|
kotlin = "1.6.21"
|
||||||
|
jvmTarget = "11"
|
||||||
|
openrndr = "0.0.0"
|
||||||
|
kotlinxCoroutines = "1.6.4"
|
||||||
|
kotlinLogging = "2.1.23"
|
||||||
|
kotlinxSerialization = "1.3.2"
|
||||||
|
dokka = "1.7.10"
|
||||||
|
nebulaRelease = "15.3.1"
|
||||||
|
gradleNexusPublish = "1.1.0"
|
||||||
|
spek = "2.0.18"
|
||||||
|
boofcv = "0.40.1"
|
||||||
|
kluent = "1.68"
|
||||||
|
junitJupiter = "5.8.2"
|
||||||
|
slf4j = "1.7.36"
|
||||||
|
libfreenect = "0.5.7-1.5.7"
|
||||||
|
librealsense = "2.50.0-1.5.7"
|
||||||
|
gson = "2.9.0"
|
||||||
|
antlr = "4.10.1"
|
||||||
|
tensorflow = "0.4.1"
|
||||||
|
jarchivelib = "1.2.0"
|
||||||
|
logbackClassic = "1.2.11"
|
||||||
|
minim = "2.2.2"
|
||||||
|
netty = "4.1.79.Final"
|
||||||
|
rabbitcontrol = "0.3.29"
|
||||||
|
zxing = "3.5.0"
|
||||||
|
ktor = "2.0.3"
|
||||||
|
jgit = "5.12.0.202106070339-r"
|
||||||
|
javaosc = "0.8"
|
||||||
|
javaparser = "3.15.21"
|
||||||
|
delaunator = "1.0.2"
|
||||||
|
|
||||||
|
[libraries]
|
||||||
|
kotlin-logging = { group = "io.github.microutils", name = "kotlin-logging", version.ref = "kotlinLogging" }
|
||||||
|
kotlin-coroutines = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version.ref = "kotlinxCoroutines" }
|
||||||
|
kotlin-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinxSerialization" }
|
||||||
|
kotlin-serialization-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-core", version.ref = "kotlinxSerialization" }
|
||||||
|
kotlin-stdlib = { group = "org.jetbrains.kotlin", name = "kotlin-stdlib", version.ref = "kotlin" }
|
||||||
|
kotlin-test = { group = "org.jetbrains.kotlin", name = "kotlin-test", version.ref = "kotlin" }
|
||||||
|
kotlin-reflect = { group = "org.jetbrains.kotlin", name = "kotlin-reflect", version.ref = "kotlin" }
|
||||||
|
kotlin-scriptingJvm = { group = "org.jetbrains.kotlin", name = "kotlin-scripting-jvm", version.ref = "kotlin" }
|
||||||
|
kotlin-scriptingJvmHost = { group = "org.jetbrains.kotlin", name = "kotlin-scripting-jvm-host", version.ref = "kotlin" }
|
||||||
|
kotlin-scriptingJSR223 = { group = "org.jetbrains.kotlin", name = "kotlin-scripting-jsr223", version.ref = "kotlin" }
|
||||||
|
kotlin-gradle-plugin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version.ref = "kotlin" }
|
||||||
|
kotlin-serialization-gradle-plugin = { group = "org.jetbrains.kotlin", name = "kotlin-serialization", version.ref = "kotlin" }
|
||||||
|
dokka-gradle-plugin = { group = "org.jetbrains.dokka", name = "dokka-gradle-plugin", version.ref = "dokka" }
|
||||||
|
|
||||||
|
openrndr-application = { group = "org.openrndr", name = "openrndr-application", version.ref = "openrndr" }
|
||||||
|
openrndr-extensions = { group = "org.openrndr", name = "openrndr-extensions", version.ref = "openrndr" }
|
||||||
|
openrndr-math = { group = "org.openrndr", name = "openrndr-math", version.ref = "openrndr" }
|
||||||
|
openrndr-shape = { group = "org.openrndr", name = "openrndr-shape", version.ref = "openrndr" }
|
||||||
|
openrndr-draw = { group = "org.openrndr", name = "openrndr-draw", version.ref = "openrndr" }
|
||||||
|
openrndr-event = { group = "org.openrndr", name = "openrndr-event", version.ref = "openrndr" }
|
||||||
|
openrndr-filter = { group = "org.openrndr", name = "openrndr-filter", version.ref = "openrndr" }
|
||||||
|
openrndr-dialogs = { group = "org.openrndr", name = "openrndr-dialogs", version.ref = "openrndr" }
|
||||||
|
openrndr-ffmpeg = { group = "org.openrndr", name = "openrndr-ffmpeg", version.ref = "openrndr" }
|
||||||
|
openrndr-svg = { group = "org.openrndr", name = "openrndr-svg", version.ref = "openrndr" }
|
||||||
|
openrndr-gl3-core = { group = "org.openrndr", name = "openrndr-gl3", version.ref = "openrndr" }
|
||||||
|
|
||||||
|
tensorflow = { group = "org.tensorflow", name = "tensorflow-core-api", version.ref = "tensorflow" }
|
||||||
|
boofcv = { group = "org.boofcv", name = "boofcv-core", version.ref = "boofcv" }
|
||||||
|
libfreenect = { group = "org.bytedeco", name = "libfreenect", version.ref = "libfreenect" }
|
||||||
|
librealsense = { group = "org.bytedeco", name = "librealsense2", version.ref = "librealsense" }
|
||||||
|
jarchivelib = { group = "org.rauschig", name = "jarchivelib", version.ref = "jarchivelib" }
|
||||||
|
logback-classic = { group = "ch.qos.logback", name = "logback-classic", version.ref = "logbackClassic" }
|
||||||
|
minim = { group = "net.compartmental.code", name = "minim", version.ref = "minim" }
|
||||||
|
netty-all = { group = "io.netty", name = "netty-all", version.ref = "netty" }
|
||||||
|
rabbitcontrol-rcp = { group = "cc.rabbitcontrol", name = "rcp", version.ref = "rabbitcontrol" }
|
||||||
|
zxing-core = { group = "com.google.zxing", name = "core", version.ref = "zxing" }
|
||||||
|
ktor-server-core = { group = "io.ktor", name = "ktor-server-core", version.ref = "ktor" }
|
||||||
|
ktor-server-netty = { group = "io.ktor", name = "ktor-server-netty", version.ref = "ktor" }
|
||||||
|
jgit = { group = "org.eclipse.jgit", name = "org.eclipse.jgit", version.ref = "jgit" }
|
||||||
|
javaosc-core = { group = "com.illposed.osc", name = "javaosc-core", version.ref = "javaosc" }
|
||||||
|
javaparser-core = { group = "com.github.javaparser", name = "javaparser-core", version.ref = "javaparser" }
|
||||||
|
gson = { group = "com.google.code.gson", name = "gson", version.ref = "gson" }
|
||||||
|
antlr-core = { group = "org.antlr", name = "antlr4", version.ref = "antlr" }
|
||||||
|
antlr-runtime = { group = "org.antlr", name = "antlr4-runtime", version.ref = "antlr" }
|
||||||
|
delaunator = { group = "com.github.ricardomatias", name = "delaunator", version.ref = "delaunator" }
|
||||||
|
|
||||||
|
jupiter-api = { group = "org.junit.jupiter", name = "junit-jupiter-api", version.ref = "junitJupiter" }
|
||||||
|
jupiter-engine = { group = "org.junit.jupiter", name = "junit-jupiter-engine", version.ref = "junitJupiter" }
|
||||||
|
spek-dsl = { group = "org.spekframework.spek2", name = "spek-dsl-jvm", version.ref = "spek" }
|
||||||
|
spek-junit5 = { group = "org.spekframework.spek2", name = "spek-runner-junit5", version.ref = "spek" }
|
||||||
|
kluent = { group = "org.amshove.kluent", name = "kluent", version.ref = "kluent" }
|
||||||
|
slf4j-simple = { group = "org.slf4j", name = "slf4j-simple", version.ref = "slf4j" }
|
||||||
|
|
||||||
|
[plugins]
|
||||||
|
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
|
||||||
|
nebula-release = { id = "nebula.release", version.ref = "nebulaRelease" }
|
||||||
|
gradle-nexus-publish = { id = "io.github.gradle-nexus.publish-plugin", version.ref = "gradleNexusPublish" }
|
||||||
|
|
||||||
|
[bundles]
|
||||||
|
jupiter = ["jupiter-api", "jupiter-engine"]
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
apply plugin: 'java'
|
|
||||||
apply plugin: 'kotlin'
|
|
||||||
sourceSets {
|
|
||||||
demo {
|
|
||||||
java {
|
|
||||||
srcDirs = ["src/demo/kotlin"]
|
|
||||||
compileClasspath += main.getCompileClasspath()
|
|
||||||
runtimeClasspath += main.getRuntimeClasspath()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
demoImplementation(project(":orx-mesh-generators"))
|
|
||||||
demoImplementation(project(":orx-camera"))
|
|
||||||
demoImplementation(project(":orx-parameters"))
|
|
||||||
demoImplementation(project(":orx-noise"))
|
|
||||||
demoImplementation(project(":orx-jvm:orx-gui"))
|
|
||||||
demoImplementation(project(":orx-shader-phrases"))
|
|
||||||
demoImplementation(libs.slf4j.simple)
|
|
||||||
demoImplementation(libs.openrndr.application)
|
|
||||||
demoImplementation(libs.openrndr.extensions)
|
|
||||||
demoImplementation(libs.openrndr.ffmpeg)
|
|
||||||
demoImplementation(libs.openrndr.svg)
|
|
||||||
|
|
||||||
demoRuntimeOnly(libs.openrndr.ffmpeg.natives)
|
|
||||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
|
||||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
|
|
||||||
demoImplementation(sourceSets.getByName("main").output)
|
|
||||||
}
|
|
||||||
14
openrndr-demos/build.gradle.kts
Normal file
14
openrndr-demos/build.gradle.kts
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
demoImplementation(project(":orx-mesh-generators"))
|
||||||
|
demoImplementation(project(":orx-parameters"))
|
||||||
|
demoImplementation(project(":orx-noise"))
|
||||||
|
demoImplementation(project(":orx-jvm:orx-gui"))
|
||||||
|
demoImplementation(project(":orx-shader-phrases"))
|
||||||
|
demoImplementation(libs.slf4j.simple)
|
||||||
|
demoImplementation(libs.openrndr.ffmpeg)
|
||||||
|
demoImplementation(libs.openrndr.svg)
|
||||||
|
}
|
||||||
@@ -1,81 +1,18 @@
|
|||||||
import EmbedShadersTask
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||||
kotlin("plugin.serialization")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
|
||||||
compilations {
|
|
||||||
val demo by creating {
|
|
||||||
defaultSourceSet {
|
|
||||||
kotlin.srcDir("src/demo")
|
|
||||||
dependencies {
|
|
||||||
implementation(project(":orx-camera"))
|
|
||||||
|
|
||||||
implementation(libs.openrndr.application)
|
|
||||||
implementation(libs.openrndr.extensions)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.core)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
|
|
||||||
implementation(compilations["main"]!!.output.allOutputs)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
testRuns["test"].executionTask.configure {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
js(IR) {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val commonMain by getting {
|
val commonMain by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":orx-parameters"))
|
implementation(project(":orx-parameters"))
|
||||||
implementation(project(":orx-shader-phrases"))
|
implementation(project(":orx-shader-phrases"))
|
||||||
|
|
||||||
implementation(libs.kotlin.serialization.core)
|
|
||||||
implementation(libs.openrndr.application)
|
implementation(libs.openrndr.application)
|
||||||
implementation(libs.openrndr.draw)
|
implementation(libs.openrndr.draw)
|
||||||
implementation(libs.openrndr.filter)
|
implementation(libs.openrndr.filter)
|
||||||
implementation(libs.kotlin.reflect)
|
implementation(libs.kotlin.reflect)
|
||||||
implementation(libs.kotlin.logging)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val commonTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
implementation(libs.kotest)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jvmTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(kotlin("test-junit5"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
runtimeOnly(libs.bundles.jupiter)
|
|
||||||
implementation(libs.spek.dsl)
|
|
||||||
implementation(libs.kluent)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jsTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-js"))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,38 +1,29 @@
|
|||||||
import ScreenshotsHelper.collectScreenshots
|
import ScreenshotsHelper.collectScreenshots
|
||||||
|
|
||||||
|
@Suppress("DSL_SCOPE_VIOLATION")
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||||
kotlin("plugin.serialization")
|
// kotlinx-serialization ends up on the classpath through openrndr-math and Gradle doesn't know which
|
||||||
|
// version was used. If openrndr were an included build, we probably wouldn't need to do this.
|
||||||
|
// https://github.com/gradle/gradle/issues/20084
|
||||||
|
id(libs.plugins.kotlin.serialization.get().pluginId)
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
jvm {
|
||||||
compilations {
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val demo by creating {
|
val demo by compilations.getting {
|
||||||
|
// TODO: Move demos to /jvmDemo
|
||||||
defaultSourceSet {
|
defaultSourceSet {
|
||||||
kotlin.srcDir("src/demo")
|
kotlin.srcDir("src/demo/kotlin")
|
||||||
}
|
|
||||||
dependencies {
|
|
||||||
implementation(project(":orx-camera"))
|
|
||||||
implementation(project(":orx-mesh-generators"))
|
|
||||||
implementation(project(":orx-color"))
|
|
||||||
implementation(project(":orx-jvm:orx-gui"))
|
|
||||||
implementation(libs.openrndr.application)
|
|
||||||
implementation(libs.openrndr.extensions)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.core)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
implementation(compilations["main"]!!.output.allOutputs)
|
|
||||||
}
|
}
|
||||||
collectScreenshots { }
|
collectScreenshots { }
|
||||||
}
|
}
|
||||||
}
|
testRuns["test"].executionTask {
|
||||||
testRuns["test"].executionTask.configure {
|
useJUnitPlatform {
|
||||||
useJUnitPlatform()
|
includeEngines("spek2")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
js(IR) {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@@ -46,39 +37,33 @@ kotlin {
|
|||||||
implementation(libs.openrndr.draw)
|
implementation(libs.openrndr.draw)
|
||||||
implementation(libs.openrndr.filter)
|
implementation(libs.openrndr.filter)
|
||||||
implementation(libs.kotlin.reflect)
|
implementation(libs.kotlin.reflect)
|
||||||
implementation(libs.kotlin.logging)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val commonTest by getting {
|
val commonTest by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
implementation(libs.kotlin.serialization.json)
|
||||||
implementation(libs.kotest)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val jvmMain by getting
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val jvmTest by getting {
|
val jvmTest by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(kotlin("test-junit5"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
runtimeOnly(libs.bundles.jupiter)
|
|
||||||
implementation(libs.spek.dsl)
|
|
||||||
implementation(libs.kluent)
|
implementation(libs.kluent)
|
||||||
|
implementation(libs.spek.dsl)
|
||||||
|
runtimeOnly(libs.spek.junit5)
|
||||||
|
runtimeOnly(libs.kotlin.reflect)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val jsTest by getting {
|
val jvmDemo by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-js"))
|
implementation(project(":orx-camera"))
|
||||||
|
implementation(project(":orx-mesh-generators"))
|
||||||
|
implementation(project(":orx-color"))
|
||||||
|
implementation(project(":orx-jvm:orx-gui"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +1,19 @@
|
|||||||
import ScreenshotsHelper.collectScreenshots
|
import ScreenshotsHelper.collectScreenshots
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||||
kotlin("plugin.serialization")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
jvm {
|
||||||
compilations {
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val demo by creating {
|
val demo by compilations.getting {
|
||||||
|
// TODO: Move demos to /jvmDemo
|
||||||
defaultSourceSet {
|
defaultSourceSet {
|
||||||
kotlin.srcDir("src/demo")
|
kotlin.srcDir("src/demo/kotlin")
|
||||||
dependencies {
|
|
||||||
implementation(project(":orx-fx"))
|
|
||||||
implementation(project(":orx-camera"))
|
|
||||||
implementation(libs.openrndr.application)
|
|
||||||
implementation(libs.openrndr.extensions)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.core)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
implementation(compilations["main"]!!.output.allOutputs)
|
|
||||||
}
|
}
|
||||||
|
collectScreenshots { }
|
||||||
}
|
}
|
||||||
collectScreenshots {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
testRuns["test"].executionTask.configure {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
js(IR) {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@@ -41,44 +23,26 @@ kotlin {
|
|||||||
implementation(project(":orx-fx"))
|
implementation(project(":orx-fx"))
|
||||||
implementation(project(":orx-parameters"))
|
implementation(project(":orx-parameters"))
|
||||||
implementation(project(":orx-shader-phrases"))
|
implementation(project(":orx-shader-phrases"))
|
||||||
|
|
||||||
implementation(libs.kotlin.serialization.core)
|
|
||||||
implementation(libs.openrndr.application)
|
implementation(libs.openrndr.application)
|
||||||
implementation(libs.openrndr.draw)
|
implementation(libs.openrndr.draw)
|
||||||
implementation(libs.openrndr.filter)
|
implementation(libs.openrndr.filter)
|
||||||
implementation(libs.kotlin.reflect)
|
implementation(libs.kotlin.reflect)
|
||||||
implementation(libs.kotlin.logging)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val commonTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
implementation(libs.kotest)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val jvmTest by getting {
|
val jvmTest by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(kotlin("test-junit5"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
runtimeOnly(libs.bundles.jupiter)
|
|
||||||
implementation(libs.spek.dsl)
|
implementation(libs.spek.dsl)
|
||||||
implementation(libs.kluent)
|
implementation(libs.kluent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val jsTest by getting {
|
val jvmDemo by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-js"))
|
implementation(project(":orx-fx"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +1,8 @@
|
|||||||
import EmbedShadersTask
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||||
kotlin("plugin.serialization")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
|
||||||
compilations {
|
|
||||||
val demo by creating {
|
|
||||||
defaultSourceSet {
|
|
||||||
kotlin.srcDir("src/demo")
|
|
||||||
dependencies {
|
|
||||||
implementation(project(":orx-camera"))
|
|
||||||
|
|
||||||
implementation(libs.openrndr.application)
|
|
||||||
implementation(libs.openrndr.extensions)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.core)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
implementation(compilations["main"]!!.output.allOutputs)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
testRuns["test"].executionTask.configure {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
js(IR) {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val commonMain by getting {
|
val commonMain by getting {
|
||||||
@@ -40,42 +11,10 @@ kotlin {
|
|||||||
implementation(project(":orx-shader-phrases"))
|
implementation(project(":orx-shader-phrases"))
|
||||||
implementation(project(":orx-compute-graph"))
|
implementation(project(":orx-compute-graph"))
|
||||||
implementation(project(":orx-image-fit"))
|
implementation(project(":orx-image-fit"))
|
||||||
implementation(libs.kotlin.serialization.core)
|
|
||||||
implementation(libs.openrndr.application)
|
implementation(libs.openrndr.application)
|
||||||
implementation(libs.openrndr.draw)
|
implementation(libs.openrndr.draw)
|
||||||
implementation(libs.openrndr.filter)
|
implementation(libs.openrndr.filter)
|
||||||
implementation(libs.kotlin.reflect)
|
implementation(libs.kotlin.reflect)
|
||||||
implementation(libs.kotlin.logging)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val commonTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
implementation(libs.kotest)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jvmTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(kotlin("test-junit5"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
runtimeOnly(libs.bundles.jupiter)
|
|
||||||
implementation(libs.spek.dsl)
|
|
||||||
implementation(libs.kluent)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jsTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-js"))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,72 +1,19 @@
|
|||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||||
kotlin("plugin.serialization")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
|
||||||
compilations {
|
|
||||||
val demo by creating {
|
|
||||||
defaultSourceSet {
|
|
||||||
kotlin.srcDir("src/demo")
|
|
||||||
dependencies {
|
|
||||||
implementation(project(":orx-camera"))
|
|
||||||
implementation(libs.openrndr.application)
|
|
||||||
implementation(libs.openrndr.extensions)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.core)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
implementation(compilations["main"]!!.output.allOutputs)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
testRuns["test"].executionTask.configure {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
js(IR) {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
all {
|
||||||
|
languageSettings {
|
||||||
|
optIn("kotlin.RequiresOptIn")
|
||||||
|
}
|
||||||
|
}
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val commonMain by getting {
|
val commonMain by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
api(libs.openrndr.event)
|
api(libs.openrndr.event)
|
||||||
implementation(libs.kotlin.coroutines)
|
implementation(libs.kotlin.coroutines)
|
||||||
implementation(libs.kotlin.logging)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val commonTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
implementation(libs.kotest)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jvmTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(kotlin("test-junit5"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
runtimeOnly(libs.bundles.jupiter)
|
|
||||||
implementation(libs.spek.dsl)
|
|
||||||
implementation(libs.kluent)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jsTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-js"))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,8 @@
|
|||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
|
||||||
testRuns["test"].executionTask.configure {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
js(IR) {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val commonMain by getting {
|
val commonMain by getting {
|
||||||
@@ -22,5 +12,4 @@ kotlin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,37 +1,19 @@
|
|||||||
import ScreenshotsHelper.collectScreenshots
|
import ScreenshotsHelper.collectScreenshots
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||||
kotlin("plugin.serialization")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
jvm {
|
||||||
compilations {
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val demo by creating {
|
val demo by compilations.getting {
|
||||||
|
// TODO: Move demos to /jvmDemo
|
||||||
defaultSourceSet {
|
defaultSourceSet {
|
||||||
kotlin.srcDir("src/demo")
|
kotlin.srcDir("src/demo/kotlin")
|
||||||
dependencies {
|
|
||||||
implementation(project(":orx-camera"))
|
|
||||||
implementation(project(":orx-shapes"))
|
|
||||||
implementation(libs.openrndr.application)
|
|
||||||
implementation(libs.openrndr.extensions)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.core)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
implementation(compilations["main"]!!.output.allOutputs)
|
|
||||||
}
|
}
|
||||||
|
collectScreenshots { }
|
||||||
}
|
}
|
||||||
collectScreenshots {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
testRuns["test"].executionTask.configure {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
js(IR) {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@@ -39,42 +21,17 @@ kotlin {
|
|||||||
val commonMain by getting {
|
val commonMain by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":orx-parameters"))
|
implementation(project(":orx-parameters"))
|
||||||
implementation(libs.kotlin.serialization.core)
|
|
||||||
implementation(libs.openrndr.application)
|
implementation(libs.openrndr.application)
|
||||||
implementation(libs.openrndr.draw)
|
implementation(libs.openrndr.draw)
|
||||||
implementation(libs.openrndr.filter)
|
implementation(libs.openrndr.filter)
|
||||||
implementation(libs.kotlin.reflect)
|
implementation(libs.kotlin.reflect)
|
||||||
implementation(libs.kotlin.logging)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val commonTest by getting {
|
val jvmDemo by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-common"))
|
implementation(project(":orx-shapes"))
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
implementation(libs.kotest)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jvmTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(kotlin("test-junit5"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
runtimeOnly(libs.bundles.jupiter)
|
|
||||||
implementation(libs.spek.dsl)
|
|
||||||
implementation(libs.kluent)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jsTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-js"))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import ScreenshotsHelper.collectScreenshots
|
import ScreenshotsHelper.collectScreenshots
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||||
kotlin("plugin.serialization")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val embedShaders = tasks.register<EmbedShadersTask>("embedShaders") {
|
val embedShaders = tasks.register<EmbedShadersTask>("embedShaders") {
|
||||||
@@ -16,33 +15,14 @@ val embedShaders = tasks.register<EmbedShadersTask>("embedShaders") {
|
|||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
jvm {
|
||||||
compilations {
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val demo by creating {
|
val demo by compilations.getting {
|
||||||
|
// TODO: Move demos to /jvmDemo
|
||||||
defaultSourceSet {
|
defaultSourceSet {
|
||||||
kotlin.srcDir("src/demo")
|
kotlin.srcDir("src/demo/kotlin")
|
||||||
dependencies {
|
|
||||||
implementation(project(":orx-color"))
|
|
||||||
implementation(project(":orx-camera"))
|
|
||||||
implementation(project(":orx-fx"))
|
|
||||||
|
|
||||||
implementation(libs.openrndr.application)
|
|
||||||
implementation(libs.openrndr.extensions)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.core)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
implementation(compilations["main"]!!.output.allOutputs)
|
|
||||||
}
|
}
|
||||||
|
collectScreenshots { }
|
||||||
}
|
}
|
||||||
collectScreenshots {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
testRuns["test"].executionTask.configure {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
js(IR) {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@@ -56,49 +36,29 @@ kotlin {
|
|||||||
implementation(project(":orx-parameters"))
|
implementation(project(":orx-parameters"))
|
||||||
implementation(project(":orx-shader-phrases"))
|
implementation(project(":orx-shader-phrases"))
|
||||||
implementation(project(":orx-color"))
|
implementation(project(":orx-color"))
|
||||||
implementation(libs.kotlin.serialization.core)
|
|
||||||
implementation(libs.openrndr.application)
|
implementation(libs.openrndr.application)
|
||||||
implementation(libs.openrndr.draw)
|
implementation(libs.openrndr.draw)
|
||||||
implementation(libs.openrndr.filter)
|
implementation(libs.openrndr.filter)
|
||||||
implementation(libs.kotlin.reflect)
|
implementation(libs.kotlin.reflect)
|
||||||
implementation(libs.kotlin.logging)
|
|
||||||
api(shaderKotlin.kotlin)
|
api(shaderKotlin.kotlin)
|
||||||
}
|
}
|
||||||
}
|
dependsOn(shaderKotlin)
|
||||||
commonMain.dependsOn(shaderKotlin)
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val commonTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
implementation(libs.kotest)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jvmMain by getting
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val jvmTest by getting {
|
val jvmTest by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(kotlin("test-junit5"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
runtimeOnly(libs.bundles.jupiter)
|
|
||||||
implementation(libs.spek.dsl)
|
implementation(libs.spek.dsl)
|
||||||
implementation(libs.kluent)
|
implementation(libs.kluent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val jsMain by getting
|
val jvmDemo by getting {
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jsTest by getting {
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-js"))
|
implementation(project(":orx-color"))
|
||||||
|
implementation(project(":orx-fx"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,21 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
implementation(libs.openrndr.application)
|
||||||
|
implementation(libs.openrndr.math)
|
||||||
implementation(libs.gson)
|
implementation(libs.gson)
|
||||||
implementation(libs.jarchivelib)
|
implementation(libs.jarchivelib)
|
||||||
implementation(project(":orx-noise"))
|
implementation(project(":orx-noise"))
|
||||||
|
testImplementation(libs.kluent)
|
||||||
|
testImplementation(libs.spek.dsl)
|
||||||
|
testRuntimeOnly(libs.spek.junit5)
|
||||||
|
testRuntimeOnly(libs.kotlin.reflect)
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.test {
|
||||||
|
useJUnitPlatform {
|
||||||
|
includeEngines("spek2")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,76 +1,36 @@
|
|||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||||
kotlin("plugin.serialization")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
jvm {
|
||||||
compilations {
|
testRuns["test"].executionTask {
|
||||||
val demo by creating {
|
useJUnitPlatform {
|
||||||
defaultSourceSet {
|
includeEngines("spek2")
|
||||||
kotlin.srcDir("src/demo")
|
|
||||||
dependencies {
|
|
||||||
implementation(project(":orx-camera"))
|
|
||||||
implementation(libs.openrndr.application)
|
|
||||||
implementation(libs.openrndr.extensions)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.core)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
implementation(compilations["main"]!!.output.allOutputs)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
testRuns["test"].executionTask.configure {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
js(IR) {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val commonMain by getting {
|
val commonMain by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":orx-parameters"))
|
implementation(project(":orx-parameters"))
|
||||||
implementation(project(":orx-shader-phrases"))
|
implementation(project(":orx-shader-phrases"))
|
||||||
implementation(libs.kotlin.serialization.core)
|
|
||||||
implementation(libs.openrndr.application)
|
implementation(libs.openrndr.application)
|
||||||
implementation(libs.openrndr.draw)
|
implementation(libs.openrndr.draw)
|
||||||
implementation(libs.openrndr.filter)
|
implementation(libs.openrndr.filter)
|
||||||
implementation(libs.kotlin.reflect)
|
implementation(libs.kotlin.reflect)
|
||||||
implementation(libs.kotlin.logging)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val commonTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
implementation(libs.kotest)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val jvmTest by getting {
|
val jvmTest by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(kotlin("test-junit5"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
runtimeOnly(libs.bundles.jupiter)
|
|
||||||
implementation(libs.spek.dsl)
|
|
||||||
implementation(libs.kluent)
|
implementation(libs.kluent)
|
||||||
}
|
implementation(libs.spek.dsl)
|
||||||
}
|
runtimeOnly(libs.spek.junit5)
|
||||||
|
runtimeOnly(libs.kotlin.reflect)
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jsTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-js"))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,76 +1,18 @@
|
|||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||||
kotlin("plugin.serialization")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
|
||||||
compilations {
|
|
||||||
val demo by creating {
|
|
||||||
defaultSourceSet {
|
|
||||||
kotlin.srcDir("src/demo")
|
|
||||||
dependencies {
|
|
||||||
implementation(project(":orx-camera"))
|
|
||||||
implementation(libs.openrndr.application)
|
|
||||||
implementation(libs.openrndr.extensions)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.core)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
implementation(compilations["main"]!!.output.allOutputs)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
testRuns["test"].executionTask.configure {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
js(IR) {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val commonMain by getting {
|
val commonMain by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":orx-parameters"))
|
implementation(project(":orx-parameters"))
|
||||||
implementation(project(":orx-shader-phrases"))
|
implementation(project(":orx-shader-phrases"))
|
||||||
implementation(libs.kotlin.serialization.core)
|
|
||||||
implementation(libs.openrndr.application)
|
implementation(libs.openrndr.application)
|
||||||
implementation(libs.openrndr.draw)
|
implementation(libs.openrndr.draw)
|
||||||
implementation(libs.openrndr.filter)
|
implementation(libs.openrndr.filter)
|
||||||
implementation(libs.kotlin.reflect)
|
implementation(libs.kotlin.reflect)
|
||||||
implementation(libs.kotlin.logging)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val commonTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
implementation(libs.kotest)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jvmTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(kotlin("test-junit5"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
runtimeOnly(libs.bundles.jupiter)
|
|
||||||
implementation(libs.spek.dsl)
|
|
||||||
implementation(libs.kluent)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jsTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-js"))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,38 +1,20 @@
|
|||||||
import ScreenshotsHelper.collectScreenshots
|
import ScreenshotsHelper.collectScreenshots
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||||
kotlin("plugin.serialization")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
jvm {
|
||||||
compilations {
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val demo by creating {
|
val demo by compilations.getting {
|
||||||
|
// TODO: Move demos to /jvmDemo
|
||||||
defaultSourceSet {
|
defaultSourceSet {
|
||||||
kotlin.srcDir("src/demo")
|
kotlin.srcDir("src/demo/kotlin")
|
||||||
|
|
||||||
}
|
|
||||||
dependencies {
|
|
||||||
implementation(project(":orx-shapes"))
|
|
||||||
implementation(project(":orx-image-fit"))
|
|
||||||
implementation(libs.openrndr.application)
|
|
||||||
implementation(libs.openrndr.extensions)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.core)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
implementation(compilations["main"]!!.output.allOutputs)
|
|
||||||
}
|
}
|
||||||
collectScreenshots { }
|
collectScreenshots { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
testRuns["test"].executionTask.configure {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
js(IR) {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
@@ -40,42 +22,18 @@ kotlin {
|
|||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":orx-parameters"))
|
implementation(project(":orx-parameters"))
|
||||||
implementation(project(":orx-shader-phrases"))
|
implementation(project(":orx-shader-phrases"))
|
||||||
implementation(libs.kotlin.serialization.core)
|
|
||||||
implementation(libs.openrndr.application)
|
implementation(libs.openrndr.application)
|
||||||
implementation(libs.openrndr.draw)
|
implementation(libs.openrndr.draw)
|
||||||
implementation(libs.openrndr.filter)
|
implementation(libs.openrndr.filter)
|
||||||
implementation(libs.kotlin.reflect)
|
implementation(libs.kotlin.reflect)
|
||||||
implementation(libs.kotlin.logging)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val commonTest by getting {
|
val jvmDemo by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-common"))
|
implementation(project(":orx-shapes"))
|
||||||
implementation(kotlin("test-annotations-common"))
|
implementation(project(":orx-image-fit"))
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
implementation(libs.kotest)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jvmTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(kotlin("test-junit5"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
runtimeOnly(libs.bundles.jupiter)
|
|
||||||
implementation(libs.spek.dsl)
|
|
||||||
implementation(libs.kluent)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jsTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-js"))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":orx-fx"))
|
implementation(project(":orx-fx"))
|
||||||
|
implementation(libs.openrndr.application)
|
||||||
|
implementation(libs.openrndr.math)
|
||||||
}
|
}
|
||||||
3
orx-interval-tree/build.gradle.kts
Normal file
3
orx-interval-tree/build.gradle.kts
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
sourceSets {
|
|
||||||
demo {
|
|
||||||
java {
|
|
||||||
srcDirs = ["src/demo/kotlin"]
|
|
||||||
compileClasspath += main.getCompileClasspath()
|
|
||||||
runtimeClasspath += main.getRuntimeClasspath()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":orx-fx")
|
|
||||||
implementation project(":orx-parameters")
|
|
||||||
demoImplementation project(":orx-noise")
|
|
||||||
demoImplementation project(":orx-jvm:orx-gui")
|
|
||||||
demoImplementation project(":orx-compositor")
|
|
||||||
|
|
||||||
demoImplementation(libs.openrndr.application)
|
|
||||||
demoImplementation(libs.openrndr.extensions)
|
|
||||||
demoImplementation(libs.openrndr.svg)
|
|
||||||
demoImplementation(libs.openrndr.ffmpeg)
|
|
||||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
|
||||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
|
|
||||||
demoImplementation(sourceSets.getByName("main").output)
|
|
||||||
}
|
|
||||||
15
orx-jumpflood/build.gradle.kts
Normal file
15
orx-jumpflood/build.gradle.kts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(project(":orx-fx"))
|
||||||
|
implementation(project(":orx-parameters"))
|
||||||
|
implementation(libs.openrndr.application)
|
||||||
|
implementation(libs.openrndr.math)
|
||||||
|
demoImplementation(project(":orx-noise"))
|
||||||
|
demoImplementation(project(":orx-jvm:orx-gui"))
|
||||||
|
demoImplementation(project(":orx-compositor"))
|
||||||
|
demoImplementation(libs.openrndr.svg)
|
||||||
|
demoImplementation(libs.openrndr.ffmpeg)
|
||||||
|
}
|
||||||
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
|
import ScreenshotsHelper.collectScreenshots
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
val main by getting { }
|
val demo by getting
|
||||||
val demo by creating {
|
|
||||||
java {
|
|
||||||
srcDir("src/demo/kotlin")
|
|
||||||
compileClasspath += main.getCompileClasspath()
|
|
||||||
runtimeClasspath += main.getRuntimeClasspath()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
collectScreenshots(project, demo) { }
|
collectScreenshots(project, demo) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
val demoImplementation by configurations.getting {}
|
|
||||||
val demoRuntimeOnly by configurations.getting {}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
implementation(libs.openrndr.application)
|
||||||
|
implementation(libs.openrndr.math)
|
||||||
api(libs.boofcv)
|
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 {
|
dependencies {
|
||||||
|
implementation(libs.openrndr.application)
|
||||||
|
implementation(libs.openrndr.math)
|
||||||
|
implementation(project(":orx-fx"))
|
||||||
api(project(":orx-depth-camera"))
|
api(project(":orx-depth-camera"))
|
||||||
api(project(":orx-jvm:orx-gui"))
|
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 {
|
plugins {
|
||||||
kotlin("jvm")
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
`java-gradle-plugin`
|
`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
|
import ScreenshotsHelper.collectScreenshots
|
||||||
|
|
||||||
sourceSets {
|
plugins {
|
||||||
val main by getting { }
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
val demo by creating {
|
|
||||||
java {
|
|
||||||
srcDir("src/demo/kotlin")
|
|
||||||
compileClasspath += main.getCompileClasspath()
|
|
||||||
runtimeClasspath += main.getRuntimeClasspath()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
collectScreenshots(project, demo) { }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val demoImplementation by configurations.getting {}
|
sourceSets {
|
||||||
val demoRuntimeOnly by configurations.getting {}
|
val demo by getting
|
||||||
|
collectScreenshots(project, demo) { }
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api(project(":orx-parameters"))
|
api(project(":orx-parameters"))
|
||||||
api(project(":orx-jvm:orx-panel"))
|
api(project(":orx-jvm:orx-panel"))
|
||||||
api(project(":orx-noise"))
|
api(project(":orx-noise"))
|
||||||
|
implementation(libs.openrndr.application)
|
||||||
|
implementation(libs.openrndr.math)
|
||||||
implementation(libs.openrndr.filter)
|
implementation(libs.openrndr.filter)
|
||||||
implementation(libs.openrndr.dialogs)
|
implementation(libs.openrndr.dialogs)
|
||||||
implementation(libs.gson)
|
implementation(libs.gson)
|
||||||
implementation(libs.kotlin.reflect)
|
implementation(libs.kotlin.reflect)
|
||||||
demoImplementation(libs.openrndr.application)
|
|
||||||
demoImplementation(libs.openrndr.extensions)
|
|
||||||
|
|
||||||
demoRuntimeOnly(libs.slf4j.simple)
|
demoRuntimeOnly(libs.slf4j.simple)
|
||||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
|
||||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
demoImplementation(sourceSets.getByName("main").output)
|
|
||||||
}
|
}
|
||||||
@@ -1,59 +1,43 @@
|
|||||||
//plugins {
|
plugins {
|
||||||
// id 'antlr'
|
id("org.openrndr.extra.convention.kotlin-jvm")
|
||||||
//}
|
id("antlr")
|
||||||
|
}
|
||||||
apply plugin: 'antlr'
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
demo {
|
|
||||||
java {
|
|
||||||
srcDirs = ["src/demo/kotlin"]
|
|
||||||
compileClasspath += main.getCompileClasspath()
|
|
||||||
runtimeClasspath += main.getRuntimeClasspath()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
main {
|
main {
|
||||||
java {
|
java {
|
||||||
srcDir("src/main/java")
|
|
||||||
srcDir("src/main/kotlin")
|
|
||||||
srcDir("build/generated-src/antlr")
|
srcDir("build/generated-src/antlr")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.test {
|
||||||
|
useJUnitPlatform {
|
||||||
|
includeEngines("spek2")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
generateGrammarSource {
|
generateGrammarSource {
|
||||||
maxHeapSize = "64m"
|
maxHeapSize = "64m"
|
||||||
arguments += ["-visitor", "-long-messages"]
|
arguments += ["-visitor", "-long-messages"]
|
||||||
outputDirectory = file("${project.buildDir}/generated-src/antlr/org/openrndr/extra/keyframer/antlr".toString())
|
outputDirectory = file("${project.buildDir}/generated-src/antlr/org/openrndr/extra/keyframer/antlr".toString())
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
antlr(libs.antlr)
|
antlr(libs.antlr.core)
|
||||||
implementation(libs.antlrRuntime)
|
implementation(libs.antlr.runtime)
|
||||||
implementation(project(":orx-noise"))
|
implementation(project(":orx-noise"))
|
||||||
implementation(project(":orx-easing"))
|
implementation(project(":orx-easing"))
|
||||||
implementation libs.gson
|
implementation(libs.openrndr.application)
|
||||||
|
implementation(libs.openrndr.math)
|
||||||
|
implementation(libs.gson)
|
||||||
implementation(libs.kotlin.reflect)
|
implementation(libs.kotlin.reflect)
|
||||||
|
testImplementation(libs.kluent)
|
||||||
testImplementation(libs.kotlin.test)
|
testImplementation(libs.spek.dsl)
|
||||||
|
testRuntimeOnly(libs.spek.junit5)
|
||||||
demoImplementation(project(":orx-camera"))
|
testRuntimeOnly(libs.kotlin.reflect)
|
||||||
demoImplementation(project(":orx-jvm:orx-panel"))
|
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("compileKotlin").dependsOn("generateGrammarSource")
|
||||||
tasks.getByName("compileTestKotlin").dependsOn("generateTestGrammarSource")
|
tasks.getByName("compileTestKotlin").dependsOn("generateTestGrammarSource")
|
||||||
|
|
||||||
test {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
api(project(":orx-depth-camera"))
|
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 {
|
dependencies {
|
||||||
|
implementation(libs.openrndr.application)
|
||||||
|
implementation(libs.openrndr.math)
|
||||||
implementation(project(":orx-jvm:orx-kinect-v1"))
|
implementation(project(":orx-jvm:orx-kinect-v1"))
|
||||||
implementation(project(":orx-jvm:orx-depth-camera-calibrator"))
|
implementation(project(":orx-jvm:orx-depth-camera-calibrator"))
|
||||||
implementation(project(":orx-fx"))
|
implementation(project(":orx-fx"))
|
||||||
implementation(project(":orx-jvm:orx-gui"))
|
implementation(project(":orx-jvm:orx-gui"))
|
||||||
runtimeOnly(project(":orx-jvm:orx-kinect-v1-${(gradle as ExtensionAware).extra["openrndrClassifier"]}"))
|
runtimeOnly(project(":orx-jvm:orx-kinect-v1-${(gradle as ExtensionAware).extra["openrndrClassifier"]}"))
|
||||||
runtimeOnly(libs.openrndr.gl3.core)
|
runtimeOnly(libs.openrndr.gl3.core)
|
||||||
runtimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
runtimeOnly(libs.logback.classic)
|
runtimeOnly(libs.logback.classic)
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
runtimeOnly(variantOf(libs.libfreenect) { classifier("linux-arm64") })
|
runtimeOnly(variantOf(libs.libfreenect) { classifier("linux-arm64") })
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
runtimeOnly(variantOf(libs.libfreenect) { classifier("linux-x86_64") })
|
runtimeOnly(variantOf(libs.libfreenect) { classifier("linux-x86_64") })
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
runtimeOnly(variantOf(libs.libfreenect) { classifier("macosx-x86_64") })
|
runtimeOnly(variantOf(libs.libfreenect) { classifier("macosx-x86_64") })
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
runtimeOnly(variantOf(libs.libfreenect) { classifier("windows-x86_64") })
|
runtimeOnly(variantOf(libs.libfreenect) { classifier("windows-x86_64") })
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,11 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
implementation(libs.openrndr.application)
|
||||||
|
implementation(libs.openrndr.math)
|
||||||
|
implementation(libs.kotlin.coroutines)
|
||||||
api(project(":orx-jvm:orx-kinect-common"))
|
api(project(":orx-jvm:orx-kinect-common"))
|
||||||
api(libs.libfreenect)
|
api(libs.libfreenect)
|
||||||
}
|
}
|
||||||
@@ -1,48 +1,25 @@
|
|||||||
//plugins {
|
plugins {
|
||||||
// id 'antlr'
|
id("org.openrndr.extra.convention.kotlin-jvm")
|
||||||
//}
|
id("antlr")
|
||||||
|
}
|
||||||
apply plugin: 'antlr'
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
demo {
|
|
||||||
java {
|
|
||||||
srcDirs = ["src/demo/kotlin"]
|
|
||||||
compileClasspath += main.getCompileClasspath()
|
|
||||||
runtimeClasspath += main.getRuntimeClasspath()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
main {
|
main {
|
||||||
java {
|
java {
|
||||||
srcDir("src/main/java")
|
|
||||||
srcDir("src/main/kotlin")
|
|
||||||
srcDir("build/generated-src/antlr")
|
srcDir("build/generated-src/antlr")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
generateGrammarSource {
|
generateGrammarSource {
|
||||||
maxHeapSize = "64m"
|
maxHeapSize = "64m"
|
||||||
arguments += ["-visitor", "-long-messages"]
|
arguments += ["-visitor", "-long-messages"]
|
||||||
outputDirectory = file("${project.buildDir}/generated-src/antlr/org/openrndr/extra/kotlin/antlr".toString())
|
outputDirectory = file("${project.buildDir}/generated-src/antlr/org/openrndr/extra/kotlin/antlr".toString())
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
antlr(libs.antlr)
|
antlr(libs.antlr.core)
|
||||||
implementation(libs.antlrRuntime)
|
implementation(libs.antlr.runtime)
|
||||||
|
|
||||||
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)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.getByName("compileKotlin").dependsOn("generateGrammarSource")
|
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 {
|
plugins {
|
||||||
val main by getting { }
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
val demo by creating {
|
|
||||||
java {
|
|
||||||
srcDir("src/demo/kotlin")
|
|
||||||
compileClasspath += main.getCompileClasspath()
|
|
||||||
runtimeClasspath += main.getRuntimeClasspath()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val demoImplementation by configurations.getting {}
|
|
||||||
val demoRuntimeOnly by configurations.getting {}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api(project(":orx-parameters"))
|
api(project(":orx-parameters"))
|
||||||
api(project(":orx-jvm:orx-panel"))
|
api(project(":orx-jvm:orx-panel"))
|
||||||
|
|
||||||
api(libs.minim) {
|
api(libs.minim) {
|
||||||
exclude(group = "org.apache.maven.plugins", module = "maven-javadoc-plugin")
|
exclude(group = "org.apache.maven.plugins", module = "maven-javadoc-plugin")
|
||||||
}
|
}
|
||||||
|
implementation(libs.openrndr.application)
|
||||||
|
implementation(libs.openrndr.math)
|
||||||
implementation(libs.kotlin.reflect)
|
implementation(libs.kotlin.reflect)
|
||||||
demoImplementation(libs.openrndr.application)
|
|
||||||
demoImplementation(libs.openrndr.extensions)
|
|
||||||
|
|
||||||
demoRuntimeOnly(libs.slf4j.simple)
|
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,3 +1,7 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(libs.javaosc.core) {
|
implementation(libs.javaosc.core) {
|
||||||
exclude(group = "org.slf4j")
|
exclude(group = "org.slf4j")
|
||||||
|
|||||||
@@ -1,27 +1,33 @@
|
|||||||
import ScreenshotsHelper.collectScreenshots
|
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 {
|
sourceSets {
|
||||||
val main by getting { }
|
val demo by getting
|
||||||
val demo by creating {
|
|
||||||
java {
|
|
||||||
srcDir("src/demo/kotlin")
|
|
||||||
compileClasspath += main.getCompileClasspath()
|
|
||||||
runtimeClasspath += main.getRuntimeClasspath()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
collectScreenshots(project, demo) { }
|
collectScreenshots(project, demo) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
val demoImplementation by configurations.getting {}
|
|
||||||
|
|
||||||
val demoRuntimeOnly by configurations.getting {}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
implementation(libs.openrndr.application)
|
||||||
|
implementation(libs.openrndr.math)
|
||||||
|
implementation(libs.kotlin.coroutines)
|
||||||
implementation(libs.kotlin.reflect)
|
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.openrndr.dialogs)
|
||||||
demoImplementation(libs.gson)
|
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
|
import ScreenshotsHelper.collectScreenshots
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
val main by getting { }
|
val demo by getting
|
||||||
val demo by creating {
|
|
||||||
java {
|
|
||||||
srcDir("src/demo/kotlin")
|
|
||||||
compileClasspath += main.getCompileClasspath()
|
|
||||||
runtimeClasspath += main.getRuntimeClasspath()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
collectScreenshots(project, demo) { }
|
collectScreenshots(project, demo) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
val demoImplementation by configurations.getting {}
|
|
||||||
val demoRuntimeOnly by configurations.getting {}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
implementation(libs.openrndr.application)
|
||||||
|
implementation(libs.openrndr.math)
|
||||||
implementation(project(":orx-fx"))
|
implementation(project(":orx-fx"))
|
||||||
implementation(project(":orx-noise"))
|
implementation(project(":orx-noise"))
|
||||||
implementation(libs.openrndr.filter)
|
implementation(libs.openrndr.filter)
|
||||||
demoImplementation(libs.openrndr.application)
|
|
||||||
demoImplementation(libs.openrndr.extensions)
|
|
||||||
demoRuntimeOnly(libs.slf4j.simple)
|
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 {
|
dependencies {
|
||||||
runtimeOnly(variantOf(libs.librealsense) { classifier("linux-x86_64") })
|
runtimeOnly(variantOf(libs.librealsense) { classifier("linux-x86_64") })
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
runtimeOnly(variantOf(libs.librealsense) { classifier("macosx-x86_64") })
|
runtimeOnly(variantOf(libs.librealsense) { classifier("macosx-x86_64") })
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
runtimeOnly(variantOf(libs.librealsense) { classifier("windows-x86_64") })
|
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 {
|
dependencies {
|
||||||
implementation(libs.openrndr.application)
|
implementation(libs.openrndr.application)
|
||||||
implementation(libs.openrndr.gl3.core)
|
implementation(libs.openrndr.gl3.core)
|
||||||
implementation(libs.openrndr.gl3.natives)
|
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
runtimeOnly(variantOf(libs.tensorflow) { classifier("linux-x86_64-gpu") })
|
runtimeOnly(variantOf(libs.tensorflow) { classifier("linux-x86_64-gpu") })
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
runtimeOnly(variantOf(libs.tensorflow) { classifier("windows-x86_64-gpu") })
|
runtimeOnly(variantOf(libs.tensorflow) { classifier("windows-x86_64-gpu") })
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
runtimeOnly(variantOf(libs.tensorflow) { classifier("linux-x86_64") })
|
runtimeOnly(variantOf(libs.tensorflow) { classifier("linux-x86_64") })
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
runtimeOnly(variantOf(libs.tensorflow) { classifier("macosx-x86_64") })
|
runtimeOnly(variantOf(libs.tensorflow) { classifier("macosx-x86_64") })
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
runtimeOnly(variantOf(libs.tensorflow) { classifier("windows-x86_64") })
|
runtimeOnly(variantOf(libs.tensorflow) { classifier("windows-x86_64") })
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,8 @@
|
|||||||
|
plugins {
|
||||||
|
id("org.openrndr.extra.convention.kotlin-jvm")
|
||||||
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
demo {
|
|
||||||
java {
|
|
||||||
srcDirs = ["src/demo/kotlin"]
|
|
||||||
compileClasspath += main.getCompileClasspath()
|
|
||||||
runtimeClasspath += main.getRuntimeClasspath()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wrapgen {
|
wrapgen {
|
||||||
java {
|
java {
|
||||||
srcDirs = ["src/wrapgen/kotlin"]
|
srcDirs = ["src/wrapgen/kotlin"]
|
||||||
@@ -19,19 +16,13 @@ compileWrapgenKotlin {}
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(libs.gson)
|
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(project(":orx-jvm:orx-tensorflow-${gradle.ext.openrndrClassifier}"))
|
||||||
|
|
||||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
|
||||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
demoRuntimeOnly(libs.openrndr.extensions)
|
demoRuntimeOnly(libs.openrndr.extensions)
|
||||||
demoImplementation(libs.openrndr.ffmpeg)
|
demoImplementation(libs.openrndr.ffmpeg)
|
||||||
demoRuntimeOnly(libs.openrndr.ffmpeg.natives)
|
|
||||||
demoImplementation(project(":orx-fx"))
|
demoImplementation(project(":orx-fx"))
|
||||||
demoImplementation(sourceSets.getByName("main").output)
|
|
||||||
api(libs.tensorflow)
|
api(libs.tensorflow)
|
||||||
|
|
||||||
// -- wrapgen
|
// -- wrapgen
|
||||||
wrapgenImplementation(libs.javaparser.core)
|
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)
|
||||||
|
}
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
sourceSets {
|
|
||||||
demo {
|
|
||||||
java {
|
|
||||||
srcDirs = ["src/demo/kotlin"]
|
|
||||||
compileClasspath += main.getCompileClasspath()
|
|
||||||
runtimeClasspath += main.getRuntimeClasspath()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
demoImplementation(libs.openrndr.application)
|
|
||||||
demoImplementation(libs.openrndr.extensions)
|
|
||||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
|
||||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
demoImplementation(sourceSets.getByName("main").output)
|
|
||||||
}
|
|
||||||
15
orx-kdtree/build.gradle.kts
Normal file
15
orx-kdtree/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,20 +0,0 @@
|
|||||||
sourceSets {
|
|
||||||
demo {
|
|
||||||
java {
|
|
||||||
srcDirs = ["src/demo/kotlin"]
|
|
||||||
compileClasspath += main.getCompileClasspath()
|
|
||||||
runtimeClasspath += main.getRuntimeClasspath()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
demoImplementation(project(":orx-camera"))
|
|
||||||
demoImplementation(project(":orx-shapes"))
|
|
||||||
demoImplementation(libs.openrndr.application)
|
|
||||||
demoImplementation(libs.openrndr.extensions)
|
|
||||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
|
||||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
|
|
||||||
demoImplementation(sourceSets.getByName("main").output)
|
|
||||||
}
|
|
||||||
9
orx-mesh-generators/build.gradle.kts
Normal file
9
orx-mesh-generators/build.gradle.kts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(libs.openrndr.application)
|
||||||
|
implementation(libs.openrndr.math)
|
||||||
|
demoImplementation(project(":orx-shapes"))
|
||||||
|
}
|
||||||
@@ -1,82 +1,27 @@
|
|||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||||
kotlin("plugin.serialization")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
jvm {
|
||||||
compilations {
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val demo by creating {
|
val demo by compilations.getting {
|
||||||
|
// TODO: Move demos to /jvmDemo
|
||||||
defaultSourceSet {
|
defaultSourceSet {
|
||||||
kotlin.srcDir("src/demo")
|
kotlin.srcDir("src/demo/kotlin")
|
||||||
dependencies {
|
|
||||||
implementation(project(":orx-camera"))
|
|
||||||
implementation(libs.openrndr.application)
|
|
||||||
implementation(libs.openrndr.extensions)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.core)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
implementation(compilations["main"]!!.output.allOutputs)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
testRuns["test"].executionTask.configure {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
js(IR) {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val commonMain by getting {
|
val commonMain by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(libs.kotlin.serialization.core)
|
|
||||||
implementation(libs.openrndr.application)
|
implementation(libs.openrndr.application)
|
||||||
implementation(libs.openrndr.math)
|
implementation(libs.openrndr.math)
|
||||||
implementation(libs.openrndr.shape)
|
implementation(libs.openrndr.shape)
|
||||||
implementation(libs.openrndr.draw)
|
implementation(libs.openrndr.draw)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val commonTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
implementation(libs.kotest)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jvmMain by getting
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jvmTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(kotlin("test-junit5"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
runtimeOnly(libs.bundles.jupiter)
|
|
||||||
implementation(libs.spek.dsl)
|
|
||||||
implementation(libs.kluent)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jsMain by getting
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jsTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-js"))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,87 +1,51 @@
|
|||||||
import ScreenshotsHelper.collectScreenshots
|
import ScreenshotsHelper.collectScreenshots
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||||
kotlin("plugin.serialization")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
jvm {
|
||||||
compilations {
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val demo by creating {
|
val demo by compilations.getting {
|
||||||
|
// TODO: Move demos to /jvmDemo
|
||||||
defaultSourceSet {
|
defaultSourceSet {
|
||||||
kotlin.srcDir("src/demo")
|
kotlin.srcDir("src/demo/kotlin")
|
||||||
dependencies {
|
|
||||||
implementation(project(":orx-camera"))
|
|
||||||
implementation(project(":orx-hash-grid"))
|
|
||||||
implementation(libs.openrndr.application)
|
|
||||||
implementation(libs.openrndr.extensions)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.core)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
implementation(compilations["main"]!!.output.allOutputs)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
collectScreenshots { }
|
collectScreenshots { }
|
||||||
}
|
}
|
||||||
}
|
testRuns["test"].executionTask {
|
||||||
testRuns["test"].executionTask.configure {
|
useJUnitPlatform {
|
||||||
useJUnitPlatform()
|
includeEngines("spek2")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
js(IR) {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val commonMain by getting {
|
val commonMain by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(libs.kotlin.serialization.core)
|
|
||||||
implementation(libs.openrndr.math)
|
implementation(libs.openrndr.math)
|
||||||
implementation(libs.openrndr.shape)
|
implementation(libs.openrndr.shape)
|
||||||
implementation(libs.openrndr.draw)
|
implementation(libs.openrndr.draw)
|
||||||
|
|
||||||
implementation(project(":orx-hash-grid"))
|
implementation(project(":orx-hash-grid"))
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val commonTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
implementation(libs.kotest)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jvmMain by getting
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val jvmTest by getting {
|
val jvmTest by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(kotlin("test-junit5"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
runtimeOnly(libs.bundles.jupiter)
|
|
||||||
implementation(libs.spek.dsl)
|
implementation(libs.spek.dsl)
|
||||||
implementation(libs.kluent)
|
runtimeOnly(libs.spek.junit5)
|
||||||
|
runtimeOnly(libs.kotlin.reflect)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val jsMain by getting
|
val jvmDemo by getting {
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jsTest by getting {
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-js"))
|
implementation(project(":orx-hash-grid"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
8
orx-obj-loader/build.gradle.kts
Normal file
8
orx-obj-loader/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,5 +1,10 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(libs.gson)
|
implementation(libs.gson)
|
||||||
implementation(project(":orx-noise"))
|
implementation(project(":orx-noise"))
|
||||||
|
implementation(libs.openrndr.application)
|
||||||
|
implementation(libs.openrndr.math)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,67 +1,33 @@
|
|||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||||
kotlin("plugin.serialization")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
jvm {
|
||||||
testRuns["test"].executionTask.configure {
|
testRuns["test"].executionTask {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform {
|
||||||
|
includeEngines("spek2")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
js(IR) {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
val shaderKotlin by creating {
|
|
||||||
this.kotlin.srcDir("$projectDir/build/generated/shaderKotlin")
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val commonMain by getting {
|
val commonMain by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(libs.openrndr.application)
|
implementation(libs.openrndr.application)
|
||||||
implementation(libs.openrndr.math)
|
implementation(libs.openrndr.math)
|
||||||
implementation(libs.kotlin.reflect)
|
implementation(libs.kotlin.reflect)
|
||||||
implementation(libs.kotlin.logging)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val commonTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
implementation(libs.kotest)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jvmMain by getting
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val jvmTest by getting {
|
val jvmTest by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(kotlin("test-junit5"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
runtimeOnly(libs.bundles.jupiter)
|
|
||||||
implementation(libs.spek.dsl)
|
|
||||||
implementation(libs.kluent)
|
implementation(libs.kluent)
|
||||||
}
|
implementation(libs.spek.dsl)
|
||||||
}
|
runtimeOnly(libs.spek.junit5)
|
||||||
|
runtimeOnly(libs.kotlin.reflect)
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jsMain by getting
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jsTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-js"))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,38 +1,19 @@
|
|||||||
import ScreenshotsHelper.collectScreenshots
|
import ScreenshotsHelper.collectScreenshots
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||||
kotlin("plugin.serialization")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
jvm {
|
||||||
compilations {
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val demo by creating {
|
val demo by compilations.getting {
|
||||||
|
// TODO: Move demos to /jvmDemo
|
||||||
defaultSourceSet {
|
defaultSourceSet {
|
||||||
kotlin.srcDir("src/demo")
|
kotlin.srcDir("src/demo/kotlin")
|
||||||
dependencies {
|
|
||||||
implementation(project(":orx-camera"))
|
|
||||||
implementation(project(":orx-noise"))
|
|
||||||
implementation(libs.openrndr.application)
|
|
||||||
implementation(libs.openrndr.extensions)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.core)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
implementation(compilations["main"]!!.output.allOutputs)
|
|
||||||
}
|
}
|
||||||
|
collectScreenshots { }
|
||||||
}
|
}
|
||||||
collectScreenshots {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
testRuns["test"].executionTask.configure {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
js(IR) {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@@ -41,42 +22,17 @@ kotlin {
|
|||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":orx-parameters"))
|
implementation(project(":orx-parameters"))
|
||||||
implementation(project(":orx-shader-phrases"))
|
implementation(project(":orx-shader-phrases"))
|
||||||
implementation(libs.kotlin.serialization.core)
|
|
||||||
implementation(libs.openrndr.application)
|
implementation(libs.openrndr.application)
|
||||||
implementation(libs.openrndr.draw)
|
implementation(libs.openrndr.draw)
|
||||||
implementation(libs.openrndr.filter)
|
implementation(libs.openrndr.filter)
|
||||||
implementation(libs.kotlin.reflect)
|
implementation(libs.kotlin.reflect)
|
||||||
implementation(libs.kotlin.logging)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val commonTest by getting {
|
val jvmDemo by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-common"))
|
implementation(project(":orx-noise"))
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
implementation(libs.kotest)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jvmTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(kotlin("test-junit5"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
runtimeOnly(libs.bundles.jupiter)
|
|
||||||
implementation(libs.spek.dsl)
|
|
||||||
implementation(libs.kluent)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jsTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-js"))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,36 +1,20 @@
|
|||||||
import ScreenshotsHelper.collectScreenshots
|
import ScreenshotsHelper.collectScreenshots
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||||
kotlin("plugin.serialization")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
jvm {
|
||||||
compilations {
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val demo by creating {
|
val demo by compilations.getting {
|
||||||
|
// TODO: Move demos to /jvmDemo
|
||||||
defaultSourceSet {
|
defaultSourceSet {
|
||||||
kotlin.srcDir("src/demo")
|
kotlin.srcDir("src/demo/kotlin")
|
||||||
dependencies {
|
|
||||||
implementation(project(":orx-color"))
|
|
||||||
implementation(libs.openrndr.application)
|
|
||||||
implementation(libs.openrndr.extensions)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.core)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
implementation(compilations["main"]!!.output.allOutputs)
|
|
||||||
}
|
}
|
||||||
collectScreenshots { }
|
collectScreenshots { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
testRuns["test"].executionTask.configure {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
js(IR) {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
@@ -39,42 +23,18 @@ kotlin {
|
|||||||
implementation(project(":orx-parameters"))
|
implementation(project(":orx-parameters"))
|
||||||
implementation(project(":orx-shader-phrases"))
|
implementation(project(":orx-shader-phrases"))
|
||||||
implementation(project(":orx-color"))
|
implementation(project(":orx-color"))
|
||||||
implementation(libs.kotlin.serialization.core)
|
|
||||||
implementation(libs.openrndr.application)
|
implementation(libs.openrndr.application)
|
||||||
implementation(libs.openrndr.draw)
|
implementation(libs.openrndr.draw)
|
||||||
implementation(libs.openrndr.filter)
|
implementation(libs.openrndr.filter)
|
||||||
implementation(libs.kotlin.reflect)
|
implementation(libs.kotlin.reflect)
|
||||||
implementation(libs.kotlin.logging)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val commonTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
implementation(libs.kotest)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val jvmTest by getting {
|
val jvmDemo by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-common"))
|
implementation(project(":orx-color"))
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(kotlin("test-junit5"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
runtimeOnly(libs.bundles.jupiter)
|
|
||||||
implementation(libs.spek.dsl)
|
|
||||||
implementation(libs.kluent)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jsTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-js"))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||||
kotlin("plugin.serialization")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val embedShaders = tasks.register<EmbedShadersTask>("embedShaders") {
|
val embedShaders = tasks.register<EmbedShadersTask>("embedShaders") {
|
||||||
@@ -11,30 +10,12 @@ val embedShaders = tasks.register<EmbedShadersTask>("embedShaders") {
|
|||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
jvm {
|
||||||
compilations {
|
testRuns["test"].executionTask {
|
||||||
val demo by creating {
|
useJUnitPlatform {
|
||||||
defaultSourceSet {
|
includeEngines("spek2")
|
||||||
kotlin.srcDir("src/demo")
|
|
||||||
dependencies {
|
|
||||||
implementation(project(":orx-camera"))
|
|
||||||
implementation(libs.openrndr.application)
|
|
||||||
implementation(libs.openrndr.extensions)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.core)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
implementation(compilations["main"]!!.output.allOutputs)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
testRuns["test"].executionTask.configure {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
js(IR) {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
val shaderKotlin by creating {
|
val shaderKotlin by creating {
|
||||||
this.kotlin.srcDir(embedShaders.outputDir)
|
this.kotlin.srcDir(embedShaders.outputDir)
|
||||||
@@ -43,51 +24,24 @@ kotlin {
|
|||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val commonMain by getting {
|
val commonMain by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(libs.kotlin.serialization.core)
|
|
||||||
implementation(libs.openrndr.application)
|
implementation(libs.openrndr.application)
|
||||||
implementation(libs.openrndr.draw)
|
implementation(libs.openrndr.draw)
|
||||||
implementation(libs.kotlin.reflect)
|
implementation(libs.kotlin.reflect)
|
||||||
implementation(libs.kotlin.logging)
|
|
||||||
api(shaderKotlin.kotlin)
|
api(shaderKotlin.kotlin)
|
||||||
}
|
}
|
||||||
}
|
dependsOn(shaderKotlin)
|
||||||
commonMain.dependsOn(shaderKotlin)
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val commonTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
implementation(libs.kotest)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jvmMain by getting
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val jvmTest by getting {
|
val jvmTest by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(kotlin("test-junit5"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
runtimeOnly(libs.bundles.jupiter)
|
|
||||||
runtimeOnly(libs.slf4j.simple)
|
runtimeOnly(libs.slf4j.simple)
|
||||||
implementation(libs.spek.dsl)
|
|
||||||
implementation(libs.kluent)
|
implementation(libs.kluent)
|
||||||
}
|
implementation(libs.spek.dsl)
|
||||||
}
|
runtimeOnly(libs.spek.junit5)
|
||||||
|
runtimeOnly(libs.kotlin.reflect)
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jsMain by getting
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val jsTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-js"))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,39 +1,24 @@
|
|||||||
import ScreenshotsHelper.collectScreenshots
|
import ScreenshotsHelper.collectScreenshots
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||||
kotlin("plugin.serialization")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
jvm {
|
||||||
compilations {
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val demo by creating {
|
val demo by compilations.getting {
|
||||||
|
// TODO: Move demos to /jvmDemo
|
||||||
defaultSourceSet {
|
defaultSourceSet {
|
||||||
kotlin.srcDir("src/demo")
|
kotlin.srcDir("src/demo/kotlin")
|
||||||
dependencies {
|
}
|
||||||
implementation(project(":orx-camera"))
|
collectScreenshots { }
|
||||||
implementation(project(":orx-color"))
|
}
|
||||||
implementation(project(":orx-jvm:orx-triangulation"))
|
testRuns["test"].executionTask {
|
||||||
implementation(libs.openrndr.application)
|
useJUnitPlatform {
|
||||||
implementation(libs.openrndr.extensions)
|
includeEngines("spek2")
|
||||||
runtimeOnly(libs.openrndr.gl3.core)
|
|
||||||
runtimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
implementation(compilations["main"]!!.output.allOutputs)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
collectScreenshots {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
testRuns["test"].executionTask.configure {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
js(IR) {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@@ -43,12 +28,10 @@ kotlin {
|
|||||||
implementation(project(":orx-parameters"))
|
implementation(project(":orx-parameters"))
|
||||||
implementation(project(":orx-shader-phrases"))
|
implementation(project(":orx-shader-phrases"))
|
||||||
implementation(project(":orx-color"))
|
implementation(project(":orx-color"))
|
||||||
implementation(libs.kotlin.serialization.core)
|
|
||||||
implementation(libs.openrndr.application)
|
implementation(libs.openrndr.application)
|
||||||
implementation(libs.openrndr.draw)
|
implementation(libs.openrndr.draw)
|
||||||
implementation(libs.openrndr.filter)
|
implementation(libs.openrndr.filter)
|
||||||
implementation(libs.kotlin.reflect)
|
implementation(libs.kotlin.reflect)
|
||||||
implementation(libs.kotlin.logging)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,33 +42,23 @@ kotlin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
|
||||||
val commonTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
implementation(libs.kotest)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val jvmTest by getting {
|
val jvmTest by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-common"))
|
|
||||||
implementation(kotlin("test-annotations-common"))
|
|
||||||
implementation(kotlin("test-junit5"))
|
|
||||||
implementation(libs.kotlin.serialization.json)
|
|
||||||
runtimeOnly(libs.bundles.jupiter)
|
|
||||||
implementation(libs.spek.dsl)
|
|
||||||
implementation(libs.kluent)
|
implementation(libs.kluent)
|
||||||
|
implementation(libs.spek.dsl)
|
||||||
|
runtimeOnly(libs.spek.junit5)
|
||||||
|
runtimeOnly(libs.kotlin.reflect)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
val jsTest by getting {
|
val jvmDemo by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-js"))
|
implementation(project(":orx-camera"))
|
||||||
|
implementation(project(":orx-color"))
|
||||||
|
implementation(project(":orx-jvm:orx-triangulation"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
sourceSets {
|
|
||||||
demo {
|
|
||||||
java {
|
|
||||||
srcDirs = ["src/demo/kotlin"]
|
|
||||||
compileClasspath += main.getCompileClasspath()
|
|
||||||
runtimeClasspath += main.getRuntimeClasspath()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":orx-noise")
|
|
||||||
implementation project(":orx-fx")
|
|
||||||
implementation(libs.openrndr.filter)
|
|
||||||
demoImplementation(libs.openrndr.application)
|
|
||||||
demoImplementation(libs.openrndr.extensions)
|
|
||||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
|
||||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
demoImplementation(sourceSets.getByName("main").output)
|
|
||||||
}
|
|
||||||
11
orx-temporal-blur/build.gradle.kts
Normal file
11
orx-temporal-blur/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(project(":orx-noise"))
|
||||||
|
implementation(project(":orx-fx"))
|
||||||
|
implementation(libs.openrndr.filter)
|
||||||
|
}
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
sourceSets {
|
|
||||||
demo {
|
|
||||||
java {
|
|
||||||
srcDirs = ["src/demo/kotlin"]
|
|
||||||
compileClasspath += main.getCompileClasspath()
|
|
||||||
runtimeClasspath += main.getRuntimeClasspath()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":orx-parameters")
|
|
||||||
|
|
||||||
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)
|
|
||||||
}
|
|
||||||
9
orx-time-operators/build.gradle.kts
Normal file
9
orx-time-operators/build.gradle.kts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(libs.openrndr.application)
|
||||||
|
implementation(libs.openrndr.math)
|
||||||
|
implementation(project(":orx-parameters"))
|
||||||
|
}
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
sourceSets {
|
|
||||||
demo {
|
|
||||||
java {
|
|
||||||
srcDirs = ["src/demo/kotlin"]
|
|
||||||
compileClasspath += main.getCompileClasspath()
|
|
||||||
runtimeClasspath += main.getRuntimeClasspath()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
demoImplementation(libs.openrndr.application)
|
|
||||||
demoImplementation(libs.openrndr.extensions)
|
|
||||||
demoRuntimeOnly(libs.openrndr.gl3.core)
|
|
||||||
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
|
||||||
demoImplementation(sourceSets.getByName("main").output)
|
|
||||||
}
|
|
||||||
9
orx-timer/build.gradle.kts
Normal file
9
orx-timer/build.gradle.kts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
plugins {
|
||||||
|
org.openrndr.extra.convention.`kotlin-jvm`
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(libs.openrndr.application)
|
||||||
|
implementation(libs.openrndr.math)
|
||||||
|
implementation(libs.kotlin.coroutines)
|
||||||
|
}
|
||||||
@@ -13,103 +13,6 @@ val openrndrClassifier: String by (gradle as ExtensionAware).extra(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
val openrndrVersion =
|
|
||||||
(extra.properties["OPENRNDR.version"] as String? ?: System.getenv("OPENRNDR_VERSION"))?.replace("v", "")
|
|
||||||
?: "0.5.1-SNAPSHOT"
|
|
||||||
|
|
||||||
dependencyResolutionManagement {
|
|
||||||
versionCatalogs {
|
|
||||||
create("libs") {
|
|
||||||
version("kotlinApi", "1.6")
|
|
||||||
version("kotlinLanguage", "1.6")
|
|
||||||
version("kotlin", "1.6.21")
|
|
||||||
version("jvmTarget", "11")
|
|
||||||
version("kotlinxCoroutines", "1.6.4")
|
|
||||||
version("kotlinLogging", "2.1.23")
|
|
||||||
version("kotlinxSerialization", "1.3.2")
|
|
||||||
version("spek", "2.0.18")
|
|
||||||
version("boofcv", "0.40.1")
|
|
||||||
version("kluent", "1.68")
|
|
||||||
version("kotest", "5.3.2")
|
|
||||||
version("junitJupiter", "5.8.2")
|
|
||||||
version("slf4j", "1.7.36")
|
|
||||||
version("openrndr", openrndrVersion)
|
|
||||||
version("libfreenect", "0.5.7-1.5.7")
|
|
||||||
version("librealsense", "2.50.0-1.5.7")
|
|
||||||
version("gson", "2.9.0")
|
|
||||||
version("antlr", "4.10.1")
|
|
||||||
version("tensorflow", "0.4.1")
|
|
||||||
version("jarchivelib", "1.2.0")
|
|
||||||
version("logbackClassic", "1.2.11")
|
|
||||||
version("minim", "2.2.2")
|
|
||||||
version("netty", "4.1.79.Final")
|
|
||||||
version("rabbitcontrol", "0.3.29")
|
|
||||||
version("zxing", "3.5.0")
|
|
||||||
version("ktor", "2.0.3")
|
|
||||||
version("jgit", "5.12.0.202106070339-r")
|
|
||||||
version("javaosc", "0.8")
|
|
||||||
version("javaparser", "3.15.21")
|
|
||||||
|
|
||||||
library("openrndr-application", "org.openrndr", "openrndr-application").versionRef("openrndr")
|
|
||||||
library("openrndr-extensions", "org.openrndr", "openrndr-extensions").versionRef("openrndr")
|
|
||||||
library("openrndr-math", "org.openrndr", "openrndr-math").versionRef("openrndr")
|
|
||||||
library("openrndr-shape", "org.openrndr", "openrndr-shape").versionRef("openrndr")
|
|
||||||
library("openrndr-draw", "org.openrndr", "openrndr-draw").versionRef("openrndr")
|
|
||||||
library("openrndr-event", "org.openrndr", "openrndr-event").versionRef("openrndr")
|
|
||||||
library("openrndr-filter", "org.openrndr", "openrndr-filter").versionRef("openrndr")
|
|
||||||
library("openrndr-dialogs", "org.openrndr", "openrndr-dialogs").versionRef("openrndr")
|
|
||||||
library("openrndr-ffmpeg", "org.openrndr", "openrndr-ffmpeg").versionRef("openrndr")
|
|
||||||
library("openrndr-ffmpeg-natives", "org.openrndr", "openrndr-ffmpeg-$openrndrClassifier").versionRef("openrndr")
|
|
||||||
library("openrndr-svg", "org.openrndr", "openrndr-svg").versionRef("openrndr")
|
|
||||||
library("openrndr-gl3-core", "org.openrndr", "openrndr-gl3").versionRef("openrndr")
|
|
||||||
library("openrndr-gl3-natives", "org.openrndr", "openrndr-gl3-$openrndrClassifier").versionRef("openrndr")
|
|
||||||
|
|
||||||
library("tensorflow", "org.tensorflow", "tensorflow-core-api").versionRef("tensorflow")
|
|
||||||
library("boofcv", "org.boofcv", "boofcv-core").versionRef("boofcv")
|
|
||||||
library("libfreenect", "org.bytedeco", "libfreenect").versionRef("libfreenect")
|
|
||||||
library("librealsense", "org.bytedeco", "librealsense2").versionRef("librealsense")
|
|
||||||
library("jarchivelib", "org.rauschig", "jarchivelib").versionRef("jarchivelib")
|
|
||||||
library("logback-classic", "ch.qos.logback", "logback-classic").versionRef("logbackClassic")
|
|
||||||
library("minim", "net.compartmental.code", "minim").versionRef("minim")
|
|
||||||
library("netty-all", "io.netty", "netty-all").versionRef("netty")
|
|
||||||
library("rabbitcontrol-rcp", "cc.rabbitcontrol", "rcp").versionRef("rabbitcontrol")
|
|
||||||
library("zxing-core", "com.google.zxing", "core").versionRef("zxing")
|
|
||||||
library("ktor-server-core", "io.ktor", "ktor-server-core").versionRef("ktor")
|
|
||||||
library("ktor-server-netty", "io.ktor", "ktor-server-netty").versionRef("ktor")
|
|
||||||
library("jgit", "org.eclipse.jgit", "org.eclipse.jgit").versionRef("jgit")
|
|
||||||
library("javaosc-core", "com.illposed.osc", "javaosc-core").versionRef("javaosc")
|
|
||||||
library("javaparser-core", "com.github.javaparser", "javaparser-core").versionRef("javaparser")
|
|
||||||
|
|
||||||
library("kotlin-logging", "io.github.microutils", "kotlin-logging").versionRef("kotlinLogging")
|
|
||||||
library("kotlin-coroutines", "org.jetbrains.kotlinx", "kotlinx-coroutines-core").versionRef("kotlinxCoroutines")
|
|
||||||
library("kotlin-serialization-json", "org.jetbrains.kotlinx", "kotlinx-serialization-json").versionRef("kotlinxSerialization")
|
|
||||||
library("kotlin-serialization-core", "org.jetbrains.kotlinx", "kotlinx-serialization-core").versionRef("kotlinxSerialization")
|
|
||||||
library("kotlin-stdlib", "org.jetbrains.kotlin", "kotlin-stdlib").versionRef("kotlin")
|
|
||||||
library("kotlin-test", "org.jetbrains.kotlin", "kotlin-test").versionRef("kotlin")
|
|
||||||
library("kotlin-reflect", "org.jetbrains.kotlin", "kotlin-reflect").versionRef("kotlin")
|
|
||||||
library("kotlin-gradlePlugin", "org.jetbrains.kotlin", "kotlin-gradle-plugin").versionRef("kotlin")
|
|
||||||
library("kotlin-scriptingJvm", "org.jetbrains.kotlin", "kotlin-scripting-jvm").versionRef("kotlin")
|
|
||||||
library("kotlin-scriptingJvmHost", "org.jetbrains.kotlin", "kotlin-scripting-jvm-host").versionRef("kotlin")
|
|
||||||
library("kotlin-scriptingJSR223", "org.jetbrains.kotlin", "kotlin-scripting-jsr223").versionRef("kotlin")
|
|
||||||
|
|
||||||
library("spek-dsl", "org.spekframework.spek2", "spek-dsl-jvm").versionRef("spek")
|
|
||||||
library("spek-junit5", "org.spekframework.spek2", "spek-runner-junit5").versionRef("spek")
|
|
||||||
|
|
||||||
library("jupiter-api", "org.junit.jupiter", "junit-jupiter-api").versionRef("junitJupiter")
|
|
||||||
library("jupiter-engine", "org.junit.jupiter", "junit-jupiter-engine").versionRef("junitJupiter")
|
|
||||||
|
|
||||||
bundle("jupiter", listOf("jupiter-api", "jupiter-engine"))
|
|
||||||
|
|
||||||
library("kotest", "io.kotest", "kotest-assertions-core").versionRef("kotest")
|
|
||||||
library("kluent", "org.amshove.kluent", "kluent").versionRef("kluent")
|
|
||||||
library("slf4j-simple", "org.slf4j", "slf4j-simple").versionRef("slf4j")
|
|
||||||
library("gson", "com.google.code.gson", "gson").versionRef("gson")
|
|
||||||
library("antlr", "org.antlr", "antlr4").versionRef("antlr")
|
|
||||||
library("antlrRuntime", "org.antlr", "antlr4-runtime").versionRef("antlr")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
include(
|
include(
|
||||||
listOf(
|
listOf(
|
||||||
"openrndr-demos",
|
"openrndr-demos",
|
||||||
@@ -124,7 +27,6 @@ include(
|
|||||||
"orx-easing",
|
"orx-easing",
|
||||||
"orx-jvm:orx-file-watcher",
|
"orx-jvm:orx-file-watcher",
|
||||||
"orx-parameters",
|
"orx-parameters",
|
||||||
"orx-filter-extension",
|
|
||||||
"orx-fx",
|
"orx-fx",
|
||||||
"orx-jvm:orx-git-archiver",
|
"orx-jvm:orx-git-archiver",
|
||||||
"orx-jvm:orx-git-archiver-gradle",
|
"orx-jvm:orx-git-archiver-gradle",
|
||||||
|
|||||||
Reference in New Issue
Block a user