Skip to content

Commit 74d81f6

Browse files
author
Anirudh S
committed
Upgrade gradle version and add gradle source code for generating javadocs, sources and aar files.
1 parent 81df0a5 commit 74d81f6

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
jcenter()
55
}
66
dependencies {
7-
classpath 'com.android.tools.build:gradle:1.1.0'
7+
classpath 'com.android.tools.build:gradle:1.1.2'
88
}
99
}
1010

helpstack/build.gradle

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'maven'
23

34
dependencies {
45
compile fileTree(dir: 'libs', include: '*.jar')
@@ -43,3 +44,33 @@ android {
4344
release.setRoot('build-types/release')
4445
}
4546
}
47+
48+
uploadArchives {
49+
repositories.mavenDeployer {
50+
pom.groupId = 'com.tenmiles'
51+
pom.artifactId = 'helpstack'
52+
pom.version = '1.1.2'
53+
// Add other pom properties here if you want (developer details / licenses)
54+
repository(url: "file:///Users/anirudh/Desktop/gradleRelease/")
55+
}
56+
}
57+
58+
task androidJavadocs(type: Javadoc) {
59+
source = android.sourceSets.main.java.srcDirs
60+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
61+
}
62+
63+
task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
64+
classifier = 'javadoc'
65+
from androidJavadocs.destinationDir
66+
}
67+
68+
task androidSourcesJar(type: Jar) {
69+
classifier = 'sources'
70+
from android.sourceSets.main.java.srcDirs
71+
}
72+
73+
artifacts {
74+
archives androidSourcesJar
75+
archives androidJavadocsJar
76+
}

0 commit comments

Comments
 (0)