Use rich version range for openrndr (#293)
This commit is contained in:
@@ -9,16 +9,6 @@ repositories {
|
||||
mavenLocal()
|
||||
}
|
||||
|
||||
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 {
|
||||
implementation(libs.kotlin.gradle.plugin)
|
||||
implementation(libs.dokka.gradle.plugin)
|
||||
|
||||
@@ -2,16 +2,6 @@ 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>()
|
||||
|
||||
@@ -3,7 +3,6 @@ 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>()
|
||||
|
||||
@@ -22,10 +21,10 @@ repositories {
|
||||
|
||||
group = "org.openrndr.extra"
|
||||
|
||||
val main by sourceSets.getting
|
||||
val main: SourceSet by sourceSets.getting
|
||||
|
||||
@Suppress("UNUSED_VARIABLE")
|
||||
val demo by sourceSets.creating
|
||||
val demo: SourceSet by sourceSets.creating
|
||||
|
||||
dependencies {
|
||||
implementation(libs.kotlin.stdlib)
|
||||
|
||||
@@ -4,7 +4,6 @@ import CollectScreenshotsTask
|
||||
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>()
|
||||
|
||||
@@ -31,7 +30,8 @@ kotlin {
|
||||
jvm {
|
||||
jvmToolchain(libs.versions.jvmTarget.get().toInt())
|
||||
compilations {
|
||||
val main by getting
|
||||
val main by getting
|
||||
|
||||
@Suppress("UNUSED_VARIABLE")
|
||||
val demo by creating {
|
||||
associateWith(main)
|
||||
@@ -39,7 +39,7 @@ kotlin {
|
||||
inputDir.set(output.classesDirs.singleFile)
|
||||
runtimeDependencies.set(runtimeDependencyFiles)
|
||||
outputDir.set(project.file(project.projectDir.toString() + "/images"))
|
||||
dependsOn(compileKotlinTask)
|
||||
dependsOn(compileTaskProvider)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user