mirror of
https://github.com/corda/corda.git
synced 2025-02-15 23:22:54 +00:00
gradle magic to publish installer
This commit is contained in:
parent
139ebf7977
commit
d5ebb6da4f
@ -408,7 +408,7 @@ bintrayConfig {
|
|||||||
'corda-ptflows',
|
'corda-ptflows',
|
||||||
'jmeter-corda',
|
'jmeter-corda',
|
||||||
'tools-database-manager',
|
'tools-database-manager',
|
||||||
'InstallerPublication'
|
'corda-installer'
|
||||||
]
|
]
|
||||||
license {
|
license {
|
||||||
name = 'Apache-2.0'
|
name = 'Apache-2.0'
|
||||||
|
20
node/dist/build.gradle
vendored
20
node/dist/build.gradle
vendored
@ -1,5 +1,8 @@
|
|||||||
import org.gradle.internal.jvm.Jvm
|
import org.gradle.internal.jvm.Jvm
|
||||||
|
|
||||||
|
apply plugin: 'net.corda.plugins.publish-utils'
|
||||||
|
|
||||||
|
|
||||||
description 'Package Node as stand-alone application'
|
description 'Package Node as stand-alone application'
|
||||||
|
|
||||||
evaluationDependsOn(":node")
|
evaluationDependsOn(":node")
|
||||||
@ -203,23 +206,20 @@ if (isLinux || isMac) {
|
|||||||
|
|
||||||
task buildInstaller(dependsOn: [embedTarball])
|
task buildInstaller(dependsOn: [embedTarball])
|
||||||
|
|
||||||
apply plugin: 'maven-publish'
|
|
||||||
apply plugin: 'java'
|
|
||||||
|
|
||||||
def installerFile = file("$tarballDir/installer/installer.sh")
|
def installerFile = file("$tarballDir/installer/installer.sh")
|
||||||
def installerArtifact = artifacts.add("archives", installerFile) {
|
|
||||||
|
def installerArtifact = artifacts.add("publish", installerFile) {
|
||||||
type "sh"
|
type "sh"
|
||||||
builtBy(buildInstaller)
|
builtBy(buildInstaller)
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publish {
|
||||||
publications {
|
name 'corda-installer'
|
||||||
InstallerPublication(MavenPublication) {
|
disableDefaultJar = true
|
||||||
artifact installerArtifact
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
println("Not running on *nix, disabling distribution generation")
|
println("Not running on *nix, disabling distribution generation")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user