Skip to content

Commit a221cbc

Browse files
authored
Update our Ktor version; add new means of updating (#5085)
1 parent 477d764 commit a221cbc

4 files changed

Lines changed: 4 additions & 2 deletions

File tree

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Prevent merges from clobbering version
2+
VERSION merge=ours

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.4.0-SNAPSHOT

build-logic/src/main/kotlin/ktorbuild/internal/Version.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import org.gradle.api.Project
1414
* ```
1515
*/
1616
internal fun Project.resolveVersion(): String {
17-
val projectVersion = project.version.toString()
17+
val projectVersion = project.rootDir.resolve("VERSION").readText().trim()
1818
val releaseVersion = providers.gradleProperty("releaseVersion").orNull
1919
val eapVersion = providers.gradleProperty("eapVersion").orNull
2020

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ kotlin.code.style=official
77

88
# config
99
group=io.ktor
10-
version=3.3.0
1110

1211
## Performance
1312

0 commit comments

Comments
 (0)