-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
76 lines (61 loc) · 1.43 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
*
* Stub gradle build file
* TODO:
* apply plugin: 'jp.classmethod.aws.cloudformation'
*
*/
buildscript {
repositories {
// mavenCentral()
jcenter()
//maven { url "https://plugins.gradle.org/m2/" }
dependencies {
classpath 'net.saliman:gradle-properties-plugin:1.4.+'
classpath 'jp.classmethod.aws:gradle-aws-plugin:0.+'
}
}
}
wrapper {
gradleVersion='2.8'
}
apply plugin: 'net.saliman.properties'
task validate() {
recommendedProperties names: ["awsProfileName", "awsRegion"],
defaultFile: 'local.properties'
}
allprojects {
apply plugin: 'project-report'
apply plugin: 'build-dashboard'
}
subprojects {
tasks.whenTaskAdded { task ->
task.dependsOn rootProject.tasks["validate"];
}
apply plugin: 'net.saliman.properties'
apply plugin: 'jp.classmethod.aws'
aws {
profileName = "${project.awsProfileName}"
region = "${project.awsRegion}"
}
}
task sync {
description="TODO: Sync to S3"
group= 'build'
doLast {
println "TODO: sync dependant templates for public access"
println "cd vpc/src/main"
println "aws s3 sync . s3://ml-aws-managed-cluster --delete"
}
}
task build() {
description= "Build samples"
group= 'build'
doLast {
println "These arent the builds your looking for, move along."
}
}
help.doFirst {
println "Currently there is nothing to build. Come back soon"
}
build.group = 'build'