Skip to content

Commit

Permalink
Merge pull request #7 from livefront/feature/hosted-javadoc
Browse files Browse the repository at this point in the history
Feature/hosted javadoc
  • Loading branch information
AndrewHaisting committed Aug 17, 2017
2 parents c38dc58 + 9c2670c commit e848469
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Bridge

[![Release](https://jitpack.io/v/Livefront/bridge.svg)](https://jitpack.io/#Livefront/bridge)

A library for avoiding TransactionTooLargeException during state saving and restoration.

## Contents
Expand Down
24 changes: 24 additions & 0 deletions bridge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,27 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.3.1'
}

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

Please sign in to comment.