Publish javadoc jar and classpath jar to main avian coordinates

This commit is contained in:
Seth Goings 2014-07-28 11:18:46 -06:00
parent 1258d6cde0
commit 90b8e3d9cd

View File

@ -42,12 +42,11 @@ model {
executable "make"
args "platform=${platform.operatingSystem.name}",
"arch=${platform.architecture.name}"
environment JAVA_HOME: "/usr/local/java"
}
assemble {
platforms.each {
dependsOn it
}
dependsOn "build${platform.name}"
}
}
}
@ -74,6 +73,14 @@ sourceSets {
}
}
task javadocJar(type: Jar) {
dependsOn javadoc
classifier = 'javadoc'
from {
javadoc.destinationDir
}
}
task install {
dependsOn assemble, publish
}
@ -90,6 +97,12 @@ publishing {
def binSuffix=""
def publishBinSuffix="bin"
ivy(IvyPublication) {
from components.java
artifact(javadocJar)
}
platforms.each { platform ->
create(platform.name, IvyPublication) {
def nativeBuildDir = "${buildDir}/${platform.operatingSystem.name}-${platform.architecture.name}"
@ -108,12 +121,6 @@ publishing {
//builtBy "build${platform.name}"
}
artifact("${nativeBuildDir}/classpath.jar") {
name "classpath"
type "jar"
// builtBy "build${platform.name}"
}
artifact("${nativeBuildDir}/binaryToObject/binaryToObject") {
name "binaryToObject"
type publishBinSuffix