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 80427ac commit ee6aee1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
33 changes: 23 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,34 +1,47 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

repositories {
mavenCentral()
google()
}
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}'
}
}

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 {
mavenCentral()
google()
}

apply plugin: "maven-publish"
publishing {
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 ee6aee1

Please sign in to comment.