Skip to content

Commit

Permalink
Add Javadoc and Sources Jars
Browse files Browse the repository at this point in the history
  • Loading branch information
maxamel committed Jan 1, 2018
1 parent 19e7d61 commit 0b0d43e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ apply plugin: 'findbugs'
toolVersion = "3.0.1"
}

libsDirName = '../'
version = '0.92'
libsDirName = 'build/'
version = '0.9.2.1'
archivesBaseName = 'GDH'

repositories {
Expand Down Expand Up @@ -51,6 +51,18 @@ clean {
delete project.name+"-"+project.version+".jar"
}

task packageJavadoc(type: Jar, dependsOn: 'javadoc') {
from javadoc.destinationDir
classifier = 'javadoc'
}
task packageSources(type: Jar, dependsOn: 'classes') {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives packageJavadoc
archives packageSources
}
jar {
dependsOn configurations.runtime
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
Expand Down

0 comments on commit 0b0d43e

Please sign in to comment.