Skip to content

Commit

Permalink
ADDED: 'tests' jar for publication.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdancy committed Feb 4, 2017
1 parent f2c0467 commit a24b99f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions gradle/additional-artifacts.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
classifier 'javadoc'
from javadoc.destinationDir
}

task testsJar(type: Jar) {
classifier = 'tests'
from sourceSets.test.output
}
3 changes: 2 additions & 1 deletion gradle/publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ publishing {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact testsJar
artifact javadocJar
artifact shadowJar

Expand Down Expand Up @@ -82,7 +83,7 @@ bintray {
githubReleaseNotesFile = 'RELEASE_NOTES.md'

version {
released = new Date()
released = new Date()
vcsTag = "v${project.version}"
attributes = ['bitbucket-rest': ["${project.group}:${project.name}:${project.version}"]]

Expand Down
4 changes: 2 additions & 2 deletions gradle/release.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ task pushTag {

doLast {
logger.quiet "Pushing tag '$createTag.tagName' to remote."
System.setProperty('org.ajoberstar.grgit.auth.username', project.githubUsername)
System.setProperty('org.ajoberstar.grgit.auth.password', project.githubPassword)
System.setProperty('org.ajoberstar.grgit.auth.username', project.githubUsername)
System.setProperty('org.ajoberstar.grgit.auth.password', project.githubPassword)
repo.push {
refsOrSpecs = [createTag.tagName]
}
Expand Down

0 comments on commit a24b99f

Please sign in to comment.