-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
99 lines (75 loc) · 2.49 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.springframework.boot.gradle.tasks.bundling.BootJar
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
}
}
plugins {
id("org.springframework.boot") version "3.0.5"
id("maven-publish")
kotlin("jvm") version "1.7.22"
kotlin("plugin.spring") version "1.7.22"
}
apply(plugin = "maven-publish")
apply(plugin = "io.spring.dependency-management")
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
repositories {
mavenLocal()
mavenCentral()
}
version = File(".version").readText(Charsets.UTF_8)
group = "ie.daithi.electricityprices"
java.sourceCompatibility = JavaVersion.VERSION_17
description = "api"
dependencies {
// Internal Dependencies
// External Dependencies
// Kotlin dependencies
implementation("org.jetbrains.kotlin:kotlin-reflect:1.6.10")
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.10")
// Spring dependencies
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springframework.boot:spring-boot-starter-data-mongodb")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-validation")
// Swagger
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0")
// Alex Skill
implementation("org.bouncycastle:bcpkix-jdk15on:1.69")
implementation("com.amazon.alexa:ask-sdk:2.82.0")
// Other
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.14.2")
implementation("org.apache.commons:commons-text:1.10.0")
//Test
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("io.mockk:mockk:1.13.4")
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "17"
}
}
tasks.getByName<BootJar>("bootJar") {
enabled = true
archiveFileName.set("electricity-prices.jar")
}
tasks.getByName<Jar>("jar") {
enabled = false
}