forked from openid/AppAuth-Android
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
60 lines (50 loc) · 1.32 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import org.ajoberstar.grgit.Grgit
apply from: 'config/keystore.gradle'
buildscript {
repositories {
gradlePluginPortal()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.0.1'
classpath 'org.ajoberstar.grgit:grgit-gradle:4.1.1'
classpath 'org.jacoco:org.jacoco.core:0.8.7'
}
}
subprojects {
repositories {
google()
mavenCentral()
}
}
ext.verifyKeystore()
project.ext {
minSdkVersion = 16
compileSdkVersion = 33
versionID = "0.11.2"
versionName = """$versionID-skyscanner"""
try {
def grgit = Grgit.open(currentDir: project.rootDir)
versionCode = grgit.log(includes: ['HEAD']).size()
} catch (Exception ignored) {
versionCode = 1
}
googleVersions = [
glide : '4.12.0',
material : '1.3.0',
]
androidXVersions = [
annotation : '1.2.0',
appCompat : '1.3.0',
browser : '1.3.0',
]
okioVersion = '2.10.0'
jodaVersion = '2.10.10'
}
task showVersion {
doLast {
logger.lifecycle("Version ID: " + project.versionID)
logger.lifecycle("Version Name: " + project.versionName)
logger.lifecycle("Version Code: " + project.versionCode)
}
}