Skip to content

Commit

Permalink
Switch to me.qoomon.git-versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
zod committed Nov 23, 2022
1 parent 8bdcf64 commit 72bee72
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
27 changes: 20 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,33 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.2'
classpath "com.palantir.gradle.gitversion:gradle-git-version:0.15.0"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

plugins {
id 'me.qoomon.git-versioning' version '6.3.6'
}

gitVersioning.apply {
refs {
considerTagsOnBranches = true
tag('v(?<version>.*)') {
version = '${ref.version}'
}
branch('.+') {
version = '${describe.tag.version}-${describe.distance}-${ref}-g${commit.short}'
}
}

rev {
version = '${commit}'
}
}

allprojects {
// NOTE:
// there are two places to change the version number
// - this file
// - app: build.gradle (versionCode only)
apply plugin: 'com.palantir.git-version'
project.version gitVersion()
group 'org.btools'

repositories {
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true

# Version information used as fallback if no git repository
version=1.6.3

0 comments on commit 72bee72

Please sign in to comment.