forked from CleverTap/clevertap-android-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
95 lines (87 loc) · 3.5 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()// Google's Maven repository
mavenCentral()
gradlePluginPortal()
maven {
url 'https://developer.huawei.com/repo/' }
}
dependencies {
classpath Libs.com_android_tools_build_gradle
classpath Libs.google_services// Google Services plugin
//classpath "com.github.dcendents:android-maven-gradle-plugin:$mavenPluginVersion"
classpath Libs.agcp// Huawei Push Plugin
classpath Libs.kotlin_gradle_plugin
classpath Libs.sonarqube_gradle_plugin
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
classpath("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.20.0-RC1")
classpath("com.vanniktech:gradle-android-junit-jacoco-plugin:0.16.0")
}
}
allprojects {
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven {
url 'https://developer.huawei.com/repo/' }
flatDir {
dirs 'libs'
}
}
}
apply plugin: 'org.sonarqube'
sonarqube {
properties {
property "sonar.projectKey", "CleverTap_clevertap-android-sdk"
property "sonar.organization", "clevertap"
property "sonar.host.url", "https://sonarcloud.io"
}
}
apply from: "${project.rootDir}/gradle-scripts/jacoco_root.gradle"
task clean(type: Delete) {
delete rootProject.buildDir
}
task copyTemplates {
def props = new Properties()
file("versions.properties").withInputStream { props.load(it) }
outputs.upToDateWhen { false }
props.put("clevertap_android_sdk",Libs.clevertap_android_sdk.dropRight(1))
props.put("clevertap_geofence_sdk",Libs.clevertap_geofence_sdk.dropRight(1))
props.put("clevertap_hms_sdk",Libs.clevertap_hms_sdk.dropRight(1))
props.put("clevertap_xiaomi_sdk",Libs.clevertap_xiaomi_sdk.dropRight(1))
props.put("push_templates",Libs.clevertap_push_templates_sdk.dropRight(1))
props.put("play_services_location",Libs.play_services_location.dropRight(1))
props.put("work_runtime",Libs.work_runtime.dropRight(1))
props.put("concurrent_futures",Libs.concurrent_futures.dropRight(1))
props.put("push",Libs.push.dropRight(1))
props.put("appcompat",Libs.appcompat.dropRight(1))
props.put("viewpager",Libs.viewpager.dropRight(1))
props.put("material",Libs.material.dropRight(1))
props.put("glide",Libs.glide.dropRight(1))
props.put("recyclerview",Libs.recyclerview.dropRight(1))
props.put("exoplayer",Libs.exoplayer.dropRight(1))
props.put("exoplayer_ui",Libs.exoplayer_ui.dropRight(1))
props.put("exoplayer_hls",Libs.exoplayer_hls.dropRight(1))
props.put("installreferrer",Libs.installreferrer.dropRight(1))
props.put("firebase_messaging",Libs.firebase_messaging.dropRight(1))
props.put("androidx_core_core",Libs.androidx_core_core.dropRight(1))
props.put("agcp",Libs.agcp.dropRight(1))
props.put("com_android_tools_build_gradle",Libs.com_android_tools_build_gradle.dropRight(1))
props.put("google_services",Libs.google_services.dropRight(1))
props.put("play_services_ads",Libs.play_services_ads.dropRight(1))
doLast{
copy {
from 'templates/README.md'
into "."
expand('ext': props.asImmutable())
}
copy {
from 'templates'
exclude "README.md"
into "docs/"
expand('ext': props.asImmutable())
}
}
}