Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa authored May 15, 2017
1 parent 74deaa6 commit 4dcebfe
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions droidtesthelperlib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,36 +38,3 @@ dependencies {

testCompile 'junit:junit:4.12'
}

//// for jitpack
// 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
}

android.libraryVariants.all { variant ->
def name = variant.buildType.name
def task = project.tasks.create "jar${name.capitalize()}", Jar
task.dependsOn variant.javaCompile
task.from variant.javaCompile.destinationDir
artifacts.add('archives', task);
}

0 comments on commit 4dcebfe

Please # to comment.