-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
76 lines (62 loc) · 1.77 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'se.transmode.gradle:gradle-docker:1.2'
}
}
plugins {
id "com.monochromeroad.s3sync" version "0.10"
}
def env = project.hasProperty('env') ? project.getProperty('env') : 'dev'
def configFile = file("$rootDir/buildConfig.groovy")
def config = new ConfigSlurper(env).parse(configFile.toURL())
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'groovy'
description = """Reads TIP log file and dissaminates it on eventbus"""
group = 'io.andromeda'
version = '1.0.4-SNAPSHOT'
sourceSets {
main {
java { srcDir 'src/main/java' }
resources { srcDir 'src/main/resources' }
}
test {
groovy {srcDir 'src/test/groovy'}
resources { srcDir 'src/test/resources' }
}
}
repositories {
mavenCentral()
}
configurations.all {
// Check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
}
/*
import com.monochromeroad.gradle.plugin.aws.s3.S3Sync
task downloadConfig(type: S3Sync) {
description = "Configuration folder sync"
accessKey awsAccessKey
secretKey awsSecretKey
configFile = "jets3t.properties"
action = 'DOWN'
from config.server.bucket
into "${System.getProperty('user.dir')}/conf"
}
task uploadConfig(type: S3Sync) {
description = "Configuration folder sync"
accessKey awsAccessKey
secretKey awsSecretKey
configFile = "jets3t.properties"
action = 'UP'
from "${System.getProperty('user.dir')}/conf"
into config.server.bucket
}
*/
task wrapper(type: Wrapper) { gradleVersion = '2.14' }