-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
61 lines (52 loc) · 1.31 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
import io.kotless.plugin.gradle.dsl.kotless
import zaenk.buildutils.withLocalProperties
withLocalProperties()
plugins {
kotlin("jvm") version "1.3.72" apply true
id("io.kotless") version "0.1.6" apply true
kotlin("plugin.serialization") version "1.3.72"
}
group = "zaenk.kotlessWeather"
version = "1.0-SNAPSHOT"
repositories {
jcenter()
}
dependencies {
implementation(kotlin("stdlib"))
implementation("io.kotless", "kotless-lang", "0.1.6")
implementation("org.jetbrains.kotlinx", "kotlinx-html-jvm", "0.6.11")
implementation("com.amazonaws", "aws-java-sdk-dynamodb", "1.11.858")
}
tasks {
withType<org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile> {
kotlinOptions {
freeCompilerArgs = listOf(
"-Xopt-in=kotlin.RequiresOptIn"
)
}
}
}
val env: String by extra
val awsProfile: String by extra
val awsRegion: String by extra
val kotlessBucket: String by extra
kotless {
config {
bucket = kotlessBucket
prefix = env
terraform {
profile = awsProfile
region = awsRegion
}
}
extensions {
local {
useAWSEmulation = true
}
terraform {
files {
add(file("src/terraform/dynamodb.tf"))
}
}
}
}