mirror of
https://github.com/corda/corda.git
synced 2025-02-03 09:41:10 +00:00
Publish javadoc jar and classpath jar to main avian coordinates
This commit is contained in:
parent
1258d6cde0
commit
90b8e3d9cd
25
build.gradle
25
build.gradle
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user