-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathbuild.gradle
64 lines (57 loc) · 1.89 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
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
group='com.github.TutorialsAndroid'
ext {
PUBLISH_GROUP_ID = 'io.github.tutorialsandroid'
PUBLISH_VERSION = '9.0.0'
PUBLISH_ARTIFACT_ID = 'filepicker'
PUBLISH_DESCRIPTION = 'Android Library to select files/directories from Device Storage'
PUBLISH_URL = 'https://github.com/TutorialsAndroid/FilePicker'
PUBLISH_LICENSE_NAME = 'Apache License'
PUBLISH_LICENSE_URL =
'https://github.com/TutorialsAndroid/FilePicker/blob/master/LICENSE'
PUBLISH_DEVELOPER_ID = 'tutorialsandroid'
PUBLISH_DEVELOPER_NAME = 'Akshay Masram'
PUBLISH_DEVELOPER_EMAIL = 'akshaysunilmasram@yahoo.com'
PUBLISH_SCM_CONNECTION =
'scm:git:github.com/tutorialsandroid/filepicker.git'
PUBLISH_SCM_DEVELOPER_CONNECTION =
'scm:git:ssh://github.com/tutorialsandroid/filepicker.git'
PUBLISH_SCM_URL =
'https://github.com/tutorialsandroid/filepicker/tree/master'
}
android {
compileSdk 34
defaultConfig {
minSdkVersion 19
targetSdkVersion 34
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
namespace 'com.developer.filepicker'
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
lint {
abortOnError false
}
}
publishing {
publications {
release(MavenPublication) {
groupId = PUBLISH_GROUP_ID
artifactId = PUBLISH_ARTIFACT_ID
version = PUBLISH_VERSION
from components.findByName('release')
artifact("$buildDir/outputs/aar/library-release.aar")
}
}
tasks.named('publishReleasePublicationToMavenLocal') {
dependsOn tasks.named('bundleReleaseAar')
}
}