Skip to content

Commit

Permalink
Merge pull request #18 from mrmike/sources-jar
Browse files Browse the repository at this point in the history
Added task for generating jar with sources
  • Loading branch information
mrmike committed Mar 13, 2016
2 parents 67cb411 + efeff77 commit 4bda122
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -13,7 +13,7 @@ dependencies {
// snapshot version
compile 'com.github.mrmike:ok2curl:master-SNAPSHOT'
// or use specific version
compile 'com.github.mrmike:ok2curl:0.2.2'
compile 'com.github.mrmike:ok2curl:0.2.3'
}
```

Expand Down
17 changes: 16 additions & 1 deletion ok2curl/build.gradle
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'java'
apply plugin: 'maven'

group='com.github.mrmike'
version='0.2.2'
version='0.2.3'

dependencies {
compile 'com.squareup.okhttp3:okhttp:3.0.0'
Expand All @@ -11,3 +11,18 @@ dependencies {
testCompile 'org.mockito:mockito-core:1.10.19'
testCompile 'com.squareup.okhttp3:mockwebserver:3.0.0'
}

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
}

0 comments on commit 4bda122

Please sign in to comment.