-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
101 lines (82 loc) · 3.54 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val ktor_version: String by project
val kotlin_version: String by project
val logback_version: String by project
val kodeinVersion = "7.11.0"
val dynamodbSdkVersion = "2.17.238"
val mapstructVersion = "1.5.2.Final"
val bouncyCastleVersion = "1.71"
plugins {
application
kotlin("jvm") version "1.6.21"
kotlin("plugin.serialization") version "1.6.21"
kotlin("kapt") version "1.6.21"
id("org.graalvm.buildtools.native") version "0.9.4"
id("com.github.johnrengelman.shadow") version "7.1.2"
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
group = "org.clevercastle"
version = "0.0.1"
application {
mainClass.set("org.clevercastle.ApplicationKt")
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
}
repositories {
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/ktor/eap") }
}
configurations.implementation {
exclude("software.amazon.awssdk", "netty-nio-client")
exclude("software.amazon.awssdk", "apache-client")
}
dependencies {
runtimeOnly("org.apache.logging.log4j:log4j-slf4j18-impl:2.17.1")
runtimeOnly("com.amazonaws:aws-lambda-java-log4j2:1.5.1")
implementation("io.ktor:ktor-server-core-jvm:$ktor_version")
implementation("io.ktor:ktor-server-auth-jvm:$ktor_version")
implementation("io.ktor:ktor-server-auth:$ktor_version")
implementation("io.ktor:ktor-server-auth-jwt:$ktor_version")
implementation("io.ktor:ktor-server-auth-jwt-jvm:$ktor_version")
implementation("io.ktor:ktor-server-cio:$ktor_version")
implementation("io.ktor:ktor-server-resources:$ktor_version")
implementation("io.ktor:ktor-server-content-negotiation:$ktor_version")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktor_version")
implementation("io.ktor:ktor-server-status-pages:$ktor_version")
implementation("io.ktor:ktor-server-cors:$ktor_version")
implementation("org.kodein.di:kodein-di:$kodeinVersion")
implementation("org.bouncycastle:bcprov-jdk18on:$bouncyCastleVersion")
implementation("com.amazonaws:aws-lambda-java-core:1.2.1")
implementation(project.dependencies.platform("software.amazon.awssdk:bom:$dynamodbSdkVersion"))
implementation("software.amazon.awssdk:dynamodb:$dynamodbSdkVersion")
implementation("software.amazon.awssdk:dynamodb-enhanced:$dynamodbSdkVersion")
implementation("software.amazon.awssdk:url-connection-client:$dynamodbSdkVersion")
implementation("software.amazon.awssdk:appconfigdata:$dynamodbSdkVersion")
implementation("io.github.cdimascio:dotenv-kotlin:6.2.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.6.1")
runtimeOnly("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version")
implementation("org.mapstruct:mapstruct:$mapstructVersion")
kapt("org.mapstruct:mapstruct-processor:$mapstructVersion")
kapt("io.github.olxmute:mapstruct-kotlin-builder-generator:0.0.2")
implementation("com.auth0:java-jwt:3.19.2")
testImplementation("io.ktor:ktor-server-tests-jvm:$ktor_version")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
implementation(kotlin("stdlib-jdk8"))
}
kapt {
arguments {
}
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjvm-default=all")
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}