Skip to content

Commit

Permalink
build: Используем git-нумерацию релизов
Browse files Browse the repository at this point in the history
  • Loading branch information
yukon39 committed Apr 30, 2023
1 parent 339b381 commit a07e6ff
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jenkinsPlugin {
jenkinsServer("org.jenkins-ci.plugins","junit", "1198.ve38db_d1b_c975")
jenkinsServer("org.jenkins-ci.plugins","copyartifact", "698.v393f578eb_ddc")
}

gitVersion {
allowDirty.set(true)
}
}

dependencies {
Expand All @@ -50,3 +54,13 @@ tasks.server {
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}

tasks.generateGitVersion {
doLast {
project.version = outputFile.get().asFile.readText(Charsets.UTF_8)
}
}

tasks.generateJenkinsManifest {
dependsOn(tasks.generateGitVersion)
}

0 comments on commit a07e6ff

Please sign in to comment.