Skip to content

Commit 44d3adc

Browse files
committed
bugfix
1 parent fa4f3ce commit 44d3adc

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

build.gradle.kts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
group = "org.processing"
2-
3-
// Grab the latest version from the GitHub API
4-
val apiUrl = "https://api.github.com/repos/processing/processing4/releases"
5-
val response = java.net.URL(apiUrl).readText()
6-
val tagName = response.substringAfter("\"tag_name\":\"").substringBefore("\"")
7-
val currentVersion = tagName.split("-").last()
8-
version = currentVersion.split(".").let { parts ->
9-
"${parts[0]}.${parts[1]}.${parts[2].toInt() + 1}"
10-
}
2+
version = "4.3.3"
113

124
plugins {
135
kotlin("jvm") version libs.versions.kotlin apply false

0 commit comments

Comments
 (0)