Skip to content

Commit

Permalink
Add source and javadoc jars to artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Emil Sjolander committed Feb 18, 2015
1 parent 2059bde commit d905c88
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,21 @@ signing {
sign configurations.archives
}

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
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.code.gson:gson:2.3.1'
Expand Down
15 changes: 15 additions & 0 deletions compiler/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,21 @@ signing {
sign configurations.archives
}

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
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':api')
Expand Down

0 comments on commit d905c88

Please sign in to comment.