forked from rakutentech/android-miniapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
111 lines (100 loc) · 3.16 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.androidBuildTool = '29.0.2'
ext.androidx_appcompat = '1.2.0'
ext.androidx_constraintLayout = '2.0.4'
ext.androidx_coreKtx = '1.3.0'
ext.androidx_lifecycle = '2.2.0'
ext.androidx_crypto = '1.1.0-alpha01'
ext.androidx_test_ext = '1.1.2-rc01'
ext.androidx_activity = '1.2.0-alpha04'
ext.detekt = '1.1.1'
ext.dokka_version = '0.10.0'
ext.glide = '4.11.0'
ext.jsr250 = '1.0'
ext.junit = '4.12'
ext.kluent_android = '1.59'
ext.kotlin_coroutines = '1.3.3'
ext.kotlin_version = '1.3.50'
ext.material = '1.3.0'
ext.mockito = '3.3.3'
ext.okhttp = '4.9.0'
ext.manifest_config = '0.2.0'
ext.mockito_kotlin = '2.2.11'
ext.sdk_utils = '0.2.0'
ext.retrofit = '2.9.0'
ext.robolectric = '4.3.1'
ext.webkit = '1.1.0'
ext.swipe_refresh_layout = '1.1.0'
ext.recyclerview = '1.1.0'
ext.gson = '2.8.6'
ext.google_ads = '19.4.0'
ext.custom_tab = '1.2.0'
ext.appCenterSdkVersion = '4.0.0'
ext.analytics_sdk= '7.0.0'
ext.json_test = '20210307'
// Build Config.
apply from: 'config/index.gradle'
CONFIG.versions.android.sdk.min = 24
dependencies {
classpath 'com.android.tools.build:gradle:4.0.0'
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
}
repositories {
google()
mavenCentral()
}
}
plugins {
id 'io.gitlab.arturbosch.detekt' version '1.1.1'
id 'net.ltgt.errorprone' version '0.7'
id 'pl.allegro.tech.build.axion-release' version '1.10.2'
id 'org.ajoberstar.git-publish' version '2.1.3'
}
allprojects {
def property = { key ->
return System.getenv(key) ?: (project.hasProperty(key) ? project."$key" : null)
}
repositories {
google()
mavenCentral()
// check whether can get env var
if (property("GITHUB_USERNAME") != null) {
maven {
url { "https://maven.pkg.github.com/rakutentech/android-analytics" }
credentials {
username = property("GITHUB_USERNAME")
password = property("GITHUB_ACCESS_TOKEN")
}
}
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation'
options.compilerArgs << "-Xmaxerrs" << "500"
}
}
scmVersion {
useHighestVersion = true
tag {
prefix = 'v'
versionSeparator = ''
versionIncrementer 'incrementMinor'
}
}
project.version = scmVersion.version
}
tasks.withType(Test) {
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
forkEvery = 100
reports.html.enabled = false
reports.junitXml.enabled = false
}
tasks.withType(JavaCompile) {
options.fork = true
options.incremental = true
}