-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
43 lines (38 loc) · 1.16 KB
/
build.gradle
File metadata and controls
43 lines (38 loc) · 1.16 KB
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
buildscript {
ext.kotlin_version = '2.0.0'
repositories {
google()
mavenCentral()
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.5.2'
classpath "com.google.gms:google-services:4.4.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id 'ru.vyarus.pom' version '2.2.2'
id "io.github.gradle-nexus.publish-plugin" version "2.0.0"
id 'org.jetbrains.kotlin.android' version '2.0.0' apply false
}
def versionFile = file("version.properties")
def fileVersion = versionFile.text.split("VERSION_NAME=")[1].trim()
// Use version passed by JitPack (-Pversion=vX.Y.Z), stripping the 'v' prefix if present.
// Falls back to version.properties for local builds.
def jitpackVersion = (project.hasProperty('version') && project.version != 'unspecified')
? project.version.toString().replaceAll('^v', '')
: fileVersion
project(':personalization-sdk') {
version = jitpackVersion
}
allprojects {
repositories {
google()
mavenCentral()
mavenLocal()
}
}
tasks.register('clean', Delete) {
delete rootProject.buildDir
}