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"
|
executable "make"
|
||||||
args "platform=${platform.operatingSystem.name}",
|
args "platform=${platform.operatingSystem.name}",
|
||||||
"arch=${platform.architecture.name}"
|
"arch=${platform.architecture.name}"
|
||||||
|
environment JAVA_HOME: "/usr/local/java"
|
||||||
}
|
}
|
||||||
|
|
||||||
assemble {
|
assemble {
|
||||||
platforms.each {
|
dependsOn "build${platform.name}"
|
||||||
dependsOn it
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -74,6 +73,14 @@ sourceSets {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task javadocJar(type: Jar) {
|
||||||
|
dependsOn javadoc
|
||||||
|
classifier = 'javadoc'
|
||||||
|
from {
|
||||||
|
javadoc.destinationDir
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
task install {
|
task install {
|
||||||
dependsOn assemble, publish
|
dependsOn assemble, publish
|
||||||
}
|
}
|
||||||
@ -90,6 +97,12 @@ publishing {
|
|||||||
def binSuffix=""
|
def binSuffix=""
|
||||||
def publishBinSuffix="bin"
|
def publishBinSuffix="bin"
|
||||||
|
|
||||||
|
ivy(IvyPublication) {
|
||||||
|
from components.java
|
||||||
|
|
||||||
|
artifact(javadocJar)
|
||||||
|
}
|
||||||
|
|
||||||
platforms.each { platform ->
|
platforms.each { platform ->
|
||||||
create(platform.name, IvyPublication) {
|
create(platform.name, IvyPublication) {
|
||||||
def nativeBuildDir = "${buildDir}/${platform.operatingSystem.name}-${platform.architecture.name}"
|
def nativeBuildDir = "${buildDir}/${platform.operatingSystem.name}-${platform.architecture.name}"
|
||||||
@ -108,12 +121,6 @@ publishing {
|
|||||||
//builtBy "build${platform.name}"
|
//builtBy "build${platform.name}"
|
||||||
}
|
}
|
||||||
|
|
||||||
artifact("${nativeBuildDir}/classpath.jar") {
|
|
||||||
name "classpath"
|
|
||||||
type "jar"
|
|
||||||
// builtBy "build${platform.name}"
|
|
||||||
}
|
|
||||||
|
|
||||||
artifact("${nativeBuildDir}/binaryToObject/binaryToObject") {
|
artifact("${nativeBuildDir}/binaryToObject/binaryToObject") {
|
||||||
name "binaryToObject"
|
name "binaryToObject"
|
||||||
type publishBinSuffix
|
type publishBinSuffix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user