-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
60 lines (49 loc) · 1.7 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
buildscript {
repositories {
mavenCentral()
google()
}
ext {
gradle_version = '7.4.2'
kotlin_version = "1.8.0"
nav_version = "2.3.2"
compose_version = '1.4.2'
compose_ui_version = '1.3.3'
}
dependencies {
classpath "com.android.tools.build:gradle:$gradle_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
classpath 'com.google.gms:google-services:4.4.0'
classpath 'com.jaredsburrows:gradle-license-plugin:0.9.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
allprojects {
repositories {
google()
maven {
url 'https://jitpack.io'
}
mavenCentral()
maven{ url "../unblu-mobile-sdk-android"}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task collectLicenseReports(type: Copy) {
// Make this task depend on all modules' generateLicenseReport tasks
dependsOn(subprojects*.tasks*.matching { it.name == 'licenseReleaseReport' })
// Collect all JSON reports from all modules
subprojects.each { subproject ->
from (fileTree(dir: "${subproject.projectDir}/build/reports/licenses", include: '*.html')) {
rename { String fileName ->
"${subproject.name}-$fileName"
}
}
}
// Define where the collected reports should be placed
into "$buildDir/reports/licenses"
}