Skip to content

Commit

Permalink
build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
osoykan committed Apr 30, 2024
1 parent 98810af commit 219aad1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ plugins {
group = "com.trendyol"
val versionDetails: groovy.lang.Closure<com.palantir.gradle.gitversion.VersionDetails> by extra
val details = versionDetails()
if (details.branchName == "main") {
version = nextPatchSnapshot(details.lastTag)
version = if (details.branchName == "main") {
nextPatchSnapshot(details.lastTag)
} else {
version = details.lastTag
details.lastTag
}
println(version)

allprojects {
extra.set("dokka.outputDirectory", rootDir.resolve("docs"))
Expand Down

0 comments on commit 219aad1

Please sign in to comment.