-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmodulesCommon.gradle
More file actions
84 lines (69 loc) · 2.24 KB
/
modulesCommon.gradle
File metadata and controls
84 lines (69 loc) · 2.24 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
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
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'signing'
apply plugin: 'org.jlleitschuh.gradle.ktlint'
apply plugin: 'com.vanniktech.maven.publish'
group = 'com.github.mindbox-cloud'
android {
compileSdkVersion libs.versions.compile.sdk.get().toInteger()
buildToolsVersion libs.versions.build.tools.get()
defaultConfig {
minSdkVersion libs.versions.min.sdk.get().toInteger()
targetSdkVersion libs.versions.target.sdk.get().toInteger()
versionCode 1
multiDexEnabled true
versionName '"' + SDK_VERSION_NAME + '"'
buildConfigField 'String', 'VERSION_NAME', '"' + SDK_VERSION_NAME + '"'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
debuggable true
buildConfigField "Boolean", "DEBUG_MODE", "true"
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '11'
}
kotlin {
explicitApi()
}
}
mavenPublishing {
publishToMavenCentral("CENTRAL_PORTAL")
if ((System.getenv("CI") == "true")) {
signAllPublications()
}
coordinates('cloud.mindbox', ARTIFACT_ID, SDK_VERSION_NAME)
pom {
name = ARTIFACT_NAME
description = 'Android Mindbox SDK'
url = 'https://github.com/mindbox-cloud/android-sdk'
licenses {
license {
name = 'The Mindbox License'
url = 'https://github.com/mindbox-cloud/android-sdk/blob/master/LICENSE.md'
}
}
developers {
developer {
id = 'Mindbox'
name = 'Mindbox'
email = 'android-sdk@mindbox.ru'
}
}
scm {
connection = 'scm:https://github.com/mindbox-cloud/android-sdk.git'
developerConnection = 'scm:git://github.com/mindbox-cloud/android-sdk.git'
url = 'https://github.com/mindbox-cloud/android-sdk'
}
}
}