forked from auth0/Lock.Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
maven.gradle
63 lines (55 loc) · 1.81 KB
/
maven.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
apply plugin: 'com.github.dcendents.android-maven'
install {
repositories.mavenInstaller {
pom {
project {
packaging 'aar'
artifactId 'lock'
name 'Lock for Android'
description 'The easiest way of securing your Android mobile apps with Auth0 & Lock'
url 'https://github.com/auth0/Lock.Android'
licenses {
license {
name 'The MIT License (MIT)'
url 'https://raw.githubusercontent.com/auth0/Lock.Android/v2/LICENSE'
distribution 'repo'
}
}
developers {
developer {
id 'hzalaz'
name 'Hernan Zalazar'
email '[email protected]'
}
}
scm {
connection 'scm:[email protected]:auth0/Lock.Android.git'
developerConnection 'scm:[email protected]:auth0/Lock.Android.git'
url 'https://github.com/auth0/Lock.Android'
}
}
}
}
}
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))
exclude '**/BuildConfig.java'
exclude '**/R.java'
failOnError false
}
afterEvaluate {
javadoc.classpath += project.android.libraryVariants.toList().first().javaCompile.classpath
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives javadocJar
archives sourcesJar
}