mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
bugfix
This commit is contained in:
+1
-9
@@ -1,13 +1,5 @@
|
||||
group = "org.processing"
|
||||
|
||||
// Grab the latest version from the GitHub API
|
||||
val apiUrl = "https://api.github.com/repos/processing/processing4/releases"
|
||||
val response = java.net.URL(apiUrl).readText()
|
||||
val tagName = response.substringAfter("\"tag_name\":\"").substringBefore("\"")
|
||||
val currentVersion = tagName.split("-").last()
|
||||
version = currentVersion.split(".").let { parts ->
|
||||
"${parts[0]}.${parts[1]}.${parts[2].toInt() + 1}"
|
||||
}
|
||||
version = "4.3.3"
|
||||
|
||||
plugins {
|
||||
kotlin("jvm") version libs.versions.kotlin apply false
|
||||
|
||||
Reference in New Issue
Block a user