Skip to content

Commit

Permalink
Merge pull request #5 from arturdm/feature/add-source-jar-publish
Browse files Browse the repository at this point in the history
Add sources jar
  • Loading branch information
arturdm committed Sep 13, 2015
2 parents 31b2a96 + a0db1d3 commit 65c9ef8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,19 @@ jacocoTestReport {
}
}

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

publishing {
publications {
plugin(MavenPublication) {
from components.java

artifact sourcesJar {
classifier "sources"
}
}
}
}
Expand Down

0 comments on commit 65c9ef8

Please sign in to comment.