File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ android {
18
18
minSdkVersion 15
19
19
targetSdkVersion 23
20
20
versionCode 1
21
- versionName " 1.0"
21
+ versionName " 1.0.0 "
22
22
}
23
23
24
24
buildTypes {
@@ -45,3 +45,26 @@ android {
45
45
dependencies {
46
46
compile ' com.android.support:recyclerview-v7:23.0.0'
47
47
}
48
+
49
+ // build a jar with source files
50
+ task sourcesJar (type : Jar ) {
51
+ from android. sourceSets. main. java. srcDirs
52
+ classifier = ' sources'
53
+ }
54
+
55
+ task javadoc (type : Javadoc ) {
56
+ failOnError false
57
+ source = android. sourceSets. main. java. sourceFiles
58
+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
59
+ }
60
+
61
+ // build a jar with javadoc
62
+ task javadocJar (type : Jar , dependsOn : javadoc) {
63
+ classifier = ' javadoc'
64
+ from javadoc. destinationDir
65
+ }
66
+
67
+ artifacts {
68
+ archives sourcesJar
69
+ archives javadocJar
70
+ }
You can’t perform that action at this time.
0 commit comments