-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
67 lines (50 loc) · 1.91 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group = 'com.oreo'
version = '1.0-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
}
dependencies {
// https://mvnrepository.com/artifact/com.amazonaws/amazon-sqs-java-temporary-queues-client
implementation group: 'com.amazonaws', name: 'amazon-sqs-java-temporary-queues-client', version: '2.0.1'
//확장자 변경 라이브러리
// https://mvnrepository.com/artifact/com.googlecode.soundlibs/mp3spi
implementation 'com.googlecode.soundlibs:mp3spi:1.9.5-1'
implementation 'com.googlecode.soundlibs:jlayer:1.0.1.4'
// https://mvnrepository.com/artifact/com.amazonaws/aws-lambda-java-core
implementation group: 'com.amazonaws', name: 'aws-lambda-java-core', version: '1.2.3'
// https://mvnrepository.com/artifact/com.amazonaws/aws-lambda-java-events
implementation group: 'com.amazonaws', name: 'aws-lambda-java-events', version: '3.14.0'
implementation platform('com.amazonaws:aws-java-sdk-bom:1.12.529')
implementation 'com.amazonaws:aws-java-sdk-s3'
implementation 'com.amazonaws:aws-java-sdk-core:1.12.547'
// tts
implementation 'com.google.cloud:google-cloud-texttospeech:2.49.0'
}
//cd build/lambda-layer zip -r my-java-layer.zip java
task copyDependencies(type: Copy) {
from configurations.runtimeClasspath
into "$buildDir/lambda-layer/java/lib"
exclude "**/junit**"
exclude "**/log4j-**"
}
// ZIP 작업: 복사 작업 후 ZIP 파일 생성
task zipLayer(type: Zip) {
dependsOn copyDependencies // ZIP 작업이 의존성 복사 후 실행
archiveFileName = 'my-java-layer.zip'
destinationDirectory = file("$buildDir")
from("$buildDir/lambda-layer")
}
test {
useJUnitPlatform()
}