-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
41 lines (36 loc) · 945 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
30
31
32
33
34
35
36
37
38
39
40
41
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven {
url 'https://plugins.gradle.org/m2/'
}
maven {
url "${nexusUrl}/maven-releases/"
credentials {
username = nexusUsername
password = nexusPassword
}
}
}
}
task install(type:Exec) {
commandLine 'cmd', '/c', "$bundlerPath install"
standardOutput System.out
errorOutput System.out
}
task build(type:Exec) {
commandLine 'cmd', '/c', "$bundlerPath exec middleman build --clean"
standardOutput System.out
errorOutput System.out
}
build.dependsOn = [install]
task upload() {
doLast {
exec {
commandLine 'cmd', '/c', "$awsPath s3 cp build/ s3://${docBucket}/jsapi-v${apiVersion} --recursive --acl public-read"
standardOutput System.out
errorOutput System.out
}
}
}