Skip to content

Commit

Permalink
Updated gradle files
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh committed May 3, 2018
1 parent c2c1200 commit 8eb78a7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions midrawer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,25 @@ dependencies {
repositories {
mavenCentral()
}

// build a jar with source files
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
failOnError false
source = android.sourceSets.main.java.sourceFiles
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.compile
}

// build a jar with javadoc
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}

0 comments on commit 8eb78a7

Please sign in to comment.