Skip to content

Commit

Permalink
update build gradle for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
markusgursch-aaa committed Jun 12, 2019
1 parent a31a7c9 commit f1f192b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions inappupdater/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,26 @@ bintray {
configurations = ['archives']
}

artifacts {
archives generateSourcesJar, generateJavadocsJar
}

task generateSourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier 'sources'
}

task generateJavadocsJar(type: Jar, dependsOn: dokka) {
classifier = 'javadoc'
from dokka.outputDirectory
}

task generateJavadocs(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath()
.join(File.pathSeparator))
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
Expand Down

0 comments on commit f1f192b

Please sign in to comment.