Skip to content

Commit

Permalink
Set package version via gradle.properties
Browse files Browse the repository at this point in the history
Use a common "themisVersion" property to have a single place we need
to update when doing a release.
  • Loading branch information
ilammy committed May 1, 2020
1 parent efd5f90 commit fdc0d23
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
#
# [1]: https://docs.gradle.org/current/userguide/multi_project_builds.html#sec:configuration_on_demand
org.gradle.configureondemand=true

# Version of AndroidThemis and JavaThemis packages.
themisVersion=0.12.0
4 changes: 2 additions & 2 deletions src/wrappers/themis/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ publishing {
artifact("$buildDir/outputs/aar/projects-release.aar")
groupId 'com.cossacklabs.com'
artifactId 'themis'
version '0.12.0'
version themisVersion
}
}
}
Expand All @@ -96,7 +96,7 @@ bintray {
vcsUrl = 'https://github.com/cossacklabs/themis.git'
publish = true
version {
name = '0.12.0'
name = themisVersion
released = new Date()
gpg {
sign = true
Expand Down
2 changes: 1 addition & 1 deletion src/wrappers/themis/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test {

// Tweak the resulting JAR name so it's not called "java".
archivesBaseName = 'java-themis'
version = '0.12'
version = themisVersion
group = 'com.cossacklabs'

// Compile for Java 8.
Expand Down

0 comments on commit fdc0d23

Please sign in to comment.