forked from openwallet-foundation-labs/identity-credential
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
37 lines (34 loc) · 1.32 KB
/
build.gradle.kts
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
import org.apache.commons.io.output.ByteArrayOutputStream
// For `versionCode` we just use the number of commits.
val projectVersionCode: Int by extra {
val stdout = ByteArrayOutputStream()
rootProject.exec {
commandLine("git", "rev-list", "HEAD", "--count")
standardOutput = stdout
}
stdout.toString().trim().toInt()
}
// For versionName, we use the output of: git describe --tags --dirty
val projectVersionName: String by extra {
val stdout = ByteArrayOutputStream()
rootProject.exec {
commandLine("git", "describe", "--tags", "--dirty")
standardOutput = stdout
}
stdout.toString().trim()
}
plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.jetbrainsCompose) apply false
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.kotlinMultiplatform) apply false
alias(libs.plugins.jetbrains.kotlin.jvm) apply false
alias(libs.plugins.gretty) apply false
alias(libs.plugins.navigation.safe.args) apply false
alias(libs.plugins.parcelable) apply false
alias(libs.plugins.kapt) apply false
alias(libs.plugins.buildconfig) apply false
}