-
Notifications
You must be signed in to change notification settings - Fork 32
/
build.gradle
90 lines (78 loc) · 1.94 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
apply plugin: 'com.android.library'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven'
// for Bintray
def projectVersionCodeNr = Integer.parseInt(projectVersionCode);
def libGit = libGit;
def libUrl = libUrl;
def libDescription = libDescription
def libGroupId = libGroupId;
def libArtifactId = libArtifactId;
// for Maven
group = libGroupId
version = projectVersionName
android {
compileSdkVersion 27
buildToolsVersion "28.0.0"
defaultConfig {
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName "1.0.0"
}
}
install {
repositories.mavenInstaller {
pom.project {
name libArtifactId
description libDescription
url libUrl
inceptionYear '2016'
packaging 'aar'
groupId libGroupId
artifactId libArtifactId
version projectVersionName
licenses {
license {
name 'MIT'
url libLicenseUrl
}
}
}
}
}
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives javadocJar
archives sourcesJar
}
bintray {
user = bintray_user
key = bintray_apikey
pkg {
repo = libGroupId
name = libArtifactId
userOrg = bintray_organisation
licenses = ['MIT']
vcsUrl = libGit
version {
name = projectVersionName
gpg {
sign = true
passphrase = bintray_gpg_passphrase
}
}
}
configurations = ['archives']
}