Reduce duplication in orx build scripts. (#240)

Co-authored-by: hamoid <abe@hamoid.com>
This commit is contained in:
Vechro
2022-06-19 09:06:16 +03:00
committed by GitHub
parent 88719292e9
commit 9f7a4899fa
74 changed files with 646 additions and 812 deletions

View File

@@ -1,4 +1,3 @@
plugins {
`kotlin-dsl`
}
@@ -9,9 +8,7 @@ sourceSets {
srcDir("src/preload/kotlin")
}
}
val main by getting {
}
val main by getting
}
repositories {
@@ -20,12 +17,14 @@ repositories {
gradlePluginPortal()
}
val openrndrVersion = ((findProperty("OPENRNDR.version")?.toString())?:System.getenv("OPENRNDR_VERSION"))?.replace("v", "") ?: "0.5.1-SNAPSHOT"
val openrndrVersion =
(findProperty("OPENRNDR.version")?.toString() ?: System.getenv("OPENRNDR_VERSION"))?.replace("v", "")
?: "0.5.1-SNAPSHOT"
dependencies {
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20")
val preloadImplementation by configurations.getting { }
implementation("org.jetbrains.kotlin:kotlin-serialization:1.6.20")
val preloadImplementation by configurations.getting
preloadImplementation("org.openrndr:openrndr-application:$openrndrVersion")
preloadImplementation("org.openrndr:openrndr-extensions:$openrndrVersion")
}