forked from MateuszNaKodach/SelfImprovement
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
58 lines (46 loc) · 1.64 KB
/
build.gradle.kts
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
import com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
kotlin("jvm") version "1.3.71"
`maven-publish`
id("io.spring.dependency-management") version ("1.0.9.RELEASE")
id("com.github.johnrengelman.shadow") version ("6.0.0")
}
group = "com.serverless"
version = "dev"
description = "hello"
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType<ShadowJar> {
transform(Log4j2PluginsCacheFileTransformer::class.java)
}
repositories {
mavenCentral()
}
// If requiring AWS JDK, uncomment the dependencyManagement to use the bill of materials
// https://aws.amazon.com/blogs/developer/managing-dependencies-with-aws-sdk-for-java-bill-of-materials-module-bom/
//dependencyManagement {
// imports {
// mavenBom("software.amazon.awssdk:bom:2.13.18")
// }
//}
dependencies {
api("org.jetbrains.kotlin:kotlin-stdlib:1.3.71")
api("com.amazonaws:aws-lambda-java-core:1.2.1")
api("com.amazonaws:aws-lambda-java-log4j2:1.2.0")
api("org.slf4j:slf4j-simple:1.7.30")
api("com.fasterxml.jackson.core:jackson-core:2.11.0")
api("com.fasterxml.jackson.core:jackson-databind:2.11.0")
api("com.fasterxml.jackson.core:jackson-annotations:2.11.0")
api("com.fasterxml.jackson.module:jackson-module-kotlin:2.11.0")
testImplementation(kotlin("test-junit"))
}
tasks.build {
finalizedBy(getTasksByName("shadowJar", false))
}
task<Exec>("deploy") {
dependsOn("shadowJar")
commandLine("serverless", "deploy")
}