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