mirror of
https://github.com/corda/corda.git
synced 2025-02-14 14:42:32 +00:00
Merge pull request #1179 from roastario/publish_installer
ENT-2193 gradle magic to publish installer
This commit is contained in:
commit
6c71ba0874
@ -401,7 +401,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