Browse Source

Remove jitpack repositories and dependencies, Panel and ORX from bintray

master
Edwin Jakobs 5 years ago
parent
commit
0b4be71bba
  1. 17
      build.gradle.kts

17
build.gradle.kts

@ -8,7 +8,7 @@ plugins {
kotlin("jvm") version("1.3.41") kotlin("jvm") version("1.3.41")
} }
group = "org.openrndr.template" group = "org.openrndr.template"
version = "1.0-SNAPSHOT" version = "0.3.1"
val applicationMainClass = "TemplateProgramKt" val applicationMainClass = "TemplateProgramKt"
val applicationFullLogging = false val applicationFullLogging = false
@ -23,13 +23,13 @@ val openrndrOs = when (OperatingSystem.current()) {
} }
// supported features are: video, panel // supported features are: video, panel
val openrndrFeatures = setOf("video") val openrndrFeatures = setOf("video", "panel")
val panelUseSnapshot = false val panelUseSnapshot = false
val panelVersion = "0.3.16" val panelVersion = if (panelUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.17-m3"
val orxUseSnapshot = false val orxUseSnapshot = false
val orxVersion = "0.0.30" val orxVersion = if (orxUseSnapshot) "0.1.0-SNAPSHOT" else "0.0.31"
// supported features are: orx-camera, orx-compositor,orx-easing, orx-filter-extension,orx-file-watcher, // supported features are: orx-camera, orx-compositor,orx-easing, orx-filter-extension,orx-file-watcher,
// orx-integral-image, orx-interval-tree, orx-jumpflood,orx-kdtree, orx-mesh-generators,orx-midi, orx-no-clear, // orx-integral-image, orx-interval-tree, orx-jumpflood,orx-kdtree, orx-mesh-generators,orx-midi, orx-no-clear,
@ -43,15 +43,10 @@ repositories {
mavenLocal() mavenLocal()
} }
maven(url = "https://dl.bintray.com/openrndr/openrndr") maven(url = "https://dl.bintray.com/openrndr/openrndr")
maven(url = "https://jitpack.io")
} }
fun DependencyHandler.orx(module: String): Any { fun DependencyHandler.orx(module: String): Any {
return if (!orxUseSnapshot) { return "org.openrndr.extra:$module:$orxVersion"
"com.github.openrndr.orx:$module:v$orxVersion"
} else {
"org.openrndr.extra:$module:$orxVersion"
}
} }
fun DependencyHandler.openrndr(module: String): Any { fun DependencyHandler.openrndr(module: String): Any {
@ -89,7 +84,7 @@ dependencies {
} }
if ("panel" in openrndrFeatures) { if ("panel" in openrndrFeatures) {
compile("com.github.openrndr:openrndr-panel:v$panelVersion") compile("org.openrndr.panel:openrndr-panel:$panelVersion")
} }
for (feature in orxFeatures) { for (feature in orxFeatures) {

Loading…
Cancel
Save