Commit 6cf6b4a 1 parent 3dc58d3 commit 6cf6b4a Copy full SHA for 6cf6b4a
File tree 4 files changed +33
-5
lines changed
4 files changed +33
-5
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ allprojects {
20
20
}
21
21
}
22
22
23
+ task wrapper (type : Wrapper ) {
24
+ description ' Creates the gradle wrapper.'
25
+ gradleVersion ' 3.3'
26
+ }
27
+
23
28
task clean (type : Delete ) {
24
29
delete rootProject. buildDir
25
30
}
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-3.3 -all.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-3.4 -all.zip
Original file line number Diff line number Diff line change @@ -2,8 +2,7 @@ apply plugin: 'com.android.library'
2
2
apply plugin : ' com.github.dcendents.android-maven'
3
3
apply plugin : ' kotlin-android'
4
4
5
- group= ' com.trydroid'
6
- version = ' 1.0.0'
5
+ group= ' com.github.minibugdev'
7
6
8
7
android {
9
8
compileSdkVersion 26
@@ -30,3 +29,27 @@ dependencies {
30
29
compile ' com.android.support:appcompat-v7:26.0.0-alpha1'
31
30
compile " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
32
31
}
32
+
33
+ // build a jar with source files
34
+ task sourcesJar (type : Jar ) {
35
+ from android. sourceSets. main. java. srcDirs
36
+ classifier = ' sources'
37
+ }
38
+
39
+ task javadoc (type : Javadoc ) {
40
+ failOnError false
41
+ source = android. sourceSets. main. java. sourceFiles
42
+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
43
+ classpath + = configurations. compile
44
+ }
45
+
46
+ // build a jar with javadoc
47
+ task javadocJar (type : Jar , dependsOn : javadoc) {
48
+ classifier = ' javadoc'
49
+ from javadoc. destinationDir
50
+ }
51
+
52
+ artifacts {
53
+ archives sourcesJar
54
+ archives javadocJar
55
+ }
Original file line number Diff line number Diff line change 1
- include ' :demo ' , ' : library'
2
- rootProject . name = ' DrawableBadge '
1
+ include ' :library'
2
+ include ' :demo '
You can’t perform that action at this time.
0 commit comments