Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefterv committed Dec 17, 2024
1 parent fa4f3ce commit 44d3adc
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 44d3adc

Please sign in to comment.