Skip to content

Commit

Permalink
add source for jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
zillachan committed Sep 15, 2017
1 parent 7f16344 commit 049f0ff
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions valizilla/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,27 @@ dependencies {
compile 'com.android.support:design:25.3.1'
testCompile 'junit:junit:4.12'
}

// 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 049f0ff

Please sign in to comment.