This commit is contained in:
Stef Tervelde
2024-12-17 02:55:27 +01:00
parent fa4f3cec6d
commit 44d3adc8e6
+1 -9
View File
@@ -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