Skip to content

Commit

Permalink
Added javadoc and sourcesJar tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmike committed Feb 26, 2018
1 parent 4b40f91 commit eac29c1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ok2curl/build.gradle
Expand Up @@ -17,6 +17,21 @@ dependencies {
testCompile 'com.squareup.okhttp3:mockwebserver:3.9.1'
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives sourcesJar
archives javadocJar
}

install {
repositories.mavenInstaller {
pom {
Expand Down

0 comments on commit eac29c1

Please sign in to comment.