Skip to content

Commit

Permalink
Add sources and jars
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajBegovac committed Apr 20, 2018
1 parent a52bba1 commit ec2c83d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions rxfeedback/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,27 @@ dependencies {
androidTestImplementation 'com.android.support.test:runner:' + versions.test_runner
androidTestImplementation 'com.android.support.test.espresso:espresso-core:' + versions.espresso
}

// 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 ec2c83d

Please sign in to comment.