Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
hynra committed Apr 13, 2017
1 parent 000c5e1 commit 5eee88d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ allprojects {
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

23 changes: 23 additions & 0 deletions gsonsharedpreferences/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,26 @@ dependencies {
testCompile 'junit:junit:4.12'
compile 'com.google.code.gson:gson:2.2.4'
}

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 5eee88d

Please sign in to comment.