-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
68 lines (56 loc) · 1.99 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
plugins {
id 'java'
}
group 'io.happyharbor.image.recognition'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
sourceCompatibility = 11
targetCompatibility = 11
dependencies {
// platforms
implementation platform('software.amazon.awssdk:bom:2.17.58'),
platform('com.amazonaws:aws-java-sdk-bom:1.11.940'),
platform('org.apache.logging.log4j:log4j-bom:2.14.1'),
platform('org.junit:junit-bom:5.7.0')
// aws
implementation 'software.amazon.awssdk:lambda',
'com.amazonaws:aws-lambda-java-core:1.2.1',
'com.amazonaws:aws-lambda-java-events:3.10.0',
'software.amazon.awssdk:dynamodb-enhanced',
'software.amazon.awssdk:rekognition',
'software.amazon.awssdk:s3'
// logging
implementation 'org.apache.logging.log4j:log4j-api',
'org.apache.logging.log4j:log4j-core'
runtimeOnly 'org.apache.logging.log4j:log4j-slf4j18-impl',
'com.amazonaws:aws-lambda-java-log4j2:1.2.0'
// other
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.0',
'org.jetbrains:annotations:22.0.0',
'com.google.dagger:dagger:2.39.1'
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20',
'com.google.dagger:dagger-compiler:2.39.1'
// test
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1',
'org.mockito:mockito-core:3.12.4'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testCompileOnly 'org.projectlombok:lombok:1.18.20'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.20',
'com.google.dagger:dagger-compiler:2.39.1'
}
test {
useJUnitPlatform()
}
// Task for building the zip file for upload
task buildZip(type: Zip) {
setArchivesBaseName("image-recognition")
from compileJava
from processResources
into('lib') {
from configurations.runtimeClasspath
}
}
build.dependsOn buildZip