forked from xebialabs-community/xld-manifest-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
29 lines (24 loc) · 974 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
apply plugin:'base'
version = '5.0.1-SNAPSHOT'
task cleanSolution(type:Exec) {
workingDir 'PS_scripts'
commandLine 'powershell', '-ExecutionPolicy', 'RemoteSigned', '"& ".\\clean.ps1" ; exit \$error.length'
description "cleans the solution"
}
task buildManifestEditor(type:Exec) {
doFirst { ensureDistDir() }
workingDir 'PS_scripts'
commandLine 'powershell', '-ExecutionPolicy', 'RemoteSigned', """ "& ".\\release-xl-deploy-manifest-editor.ps1 -version $version" ; exit \$LastExitCode"""
outputs.file file("${buildDir}/distributions/xl-deploy-manifest-editor-${version}.zip")
description "builds the manifest editor distribution"
group 'Build'
}
clean.dependsOn(cleanSolution)
build.dependsOn(buildManifestEditor)
def ensureDistDir() {
def distDir = file("${buildDir}/distributions")
if (!(distDir.exists())) {
println("Creating distribution directory $distDir as it doesn't exist yet")
mkdir distDir
}
}