This repository was archived by the owner on Jan 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
70 lines (58 loc) · 2.02 KB
/
build.gradle
File metadata and controls
70 lines (58 loc) · 2.02 KB
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
plugins {
id 'java-library'
id "com.github.kaklakariada.aws-sam-deploy" version "0.6.1"
}
repositories {
jcenter()
}
version = '0.0.1'
sourceCompatibility = 1.8
targetCompatibility = 1.8
ext {
deployStage = project.hasProperty('stage') ? project.properties['stage'] : 'test'
log4jVersion = '2.11.1'
junitPlatformVersion = '1.3.2'
junitJupiterVersion = '5.3.2'
mockitoVersion = '2.23.4'
}
serverless {
activeStage = deployStage
defaultAwsProfile = project.properties['awsProfile']
defaultAwsRegion = project.properties['awsRegion']
defaultDeployBucket = project.properties['awsDeployBucket']
stages {
test {}
prod {}
}
api {
stackName = "${project.name}-${deployStage}"
samTemplate = file('template.yml')
}
}
afterEvaluate {
deploy.finalizedBy(writeStackOutput)
writeStackOutput.outputFile = file('test.properties')
}
test {
useJUnitPlatform()
testLogging {
showStandardStreams = logger.isInfoEnabled()
}
}
dependencies {
api 'com.github.kaklakariada:aws-lambda-request-handler:0.4.0'
implementation "org.apache.logging.log4j:log4j-api:$log4jVersion"
runtimeOnly "com.amazonaws:aws-lambda-java-log4j2:1.1.0"
runtimeOnly "org.apache.logging.log4j:log4j-slf4j-impl:${log4jVersion}"
runtimeOnly "org.apache.logging.log4j:log4j-core:$log4jVersion"
testImplementation "org.hamcrest:hamcrest-core:1.3"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}"
testRuntimeOnly "org.junit.platform:junit-platform-runner:${junitPlatformVersion}"
testImplementation "com.jcabi:jcabi-http:1.17.2"
testImplementation 'javax.json:javax.json-api:1.1.4'
testImplementation 'org.glassfish:javax.json:1.1.4'
testImplementation 'org.glassfish:javax.json:1.1.4'
testImplementation 'com.sun.jersey:jersey-client:1.19.4'
}