-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
41 lines (36 loc) · 1.03 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
38
39
40
41
import java.time.OffsetDateTime
import java.time.format.DateTimeFormatter
plugins {
//trick: for the same plugin versions in all sub-modules
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.jfrog) apply false
alias(libs.plugins.google.ksp) apply false
`maven-publish`
}
buildscript {
dependencies {
classpath(libs.kotlin.gradle.plugin)
}
}
allprojects {
group = "mega.privacy.mobile"
version = "1.0.0"
repositories {
google()
mavenCentral()
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
val androidLibVersion: String by extra {
val now = OffsetDateTime.now(java.time.ZoneOffset.UTC)
val formatter = DateTimeFormatter.ofPattern("yyyyMMdd.HHmmss")
now.format(formatter)
}