-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
58 lines (51 loc) · 1.63 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
plugins {
id 'java'
id 'jacoco'
id 'jp.classmethod.aws.lambda' version '0.35'
id 'com.github.kt3k.coveralls' version '2.6.3'
}
repositories {
jcenter()
}
dependencies {
compile 'com.amazonaws:aws-lambda-java-core:1.1.0'
compile 'org.glassfish.jersey.core:jersey-client:2.25.1'
compile 'org.glassfish.jersey.ext:jersey-proxy-client:2.25.1'
compile 'org.glassfish.jersey.media:jersey-media-json-jackson:2.25.1'
testCompile 'junit:junit:4.12'
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile 'org.mockito:mockito-core:2.7.20'
testCompile 'com.github.tomakehurst:wiremock:2.5.1'
testCompile 'com.github.stefanbirkner:system-rules:1.16.1'
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}
lambda {
region = System.env.AWS_REGION
}
task zip(dependsOn: jar, type: Zip) {
from compileJava
from processResources
into('lib') {
from configurations.runtime
}
}
task migrateFunction(type: jp.classmethod.aws.gradle.lambda.AWSLambdaMigrateFunctionTask, dependsOn: zip) {
functionName = 'ripe-atlas-v2-contract-test-trigger'
runtime = 'java8'
zipFile = zip.archivePath
handler = 'nz.mikhailov.atlas.LambdaHandler'
role = System.env.AWS_LAMBDA_ROLE
functionDescription = 'Triggers last build that will re-run contract test in Codeship'
timeout = 60
memorySize = 256
environment = [
CODESHIP_BASE_URL: "https://codeship.com",
CODESHIP_PROJECT_ID: System.env.CODESHIP_PROJECT_ID,
CODESHIP_API_KEY: System.env.CODESHIP_API_KEY
]
}