-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
94 lines (87 loc) · 3.16 KB
/
build.gradle.kts
File metadata and controls
94 lines (87 loc) · 3.16 KB
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.2.6.RELEASE"
id("io.spring.dependency-management") version "1.0.9.RELEASE"
kotlin("jvm") version "1.3.71"
kotlin("plugin.spring") version "1.3.71"
kotlin("plugin.jpa") version "1.3.71"
}
group = "eu.a-square"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_11
val developmentOnly: Configuration by configurations.creating
configurations {
runtimeClasspath {
extendsFrom(developmentOnly)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web") {
because("It's the main dependency for the project")
}
implementation("org.springframework.boot:spring-boot-starter-data-jpa") {
because("The data layer is being accessed with JPA")
}
implementation("org.springframework.boot:spring-boot-starter-mustache") {
because("The API documentation uses mustache templates")
}
implementation("org.springframework.boot:spring-boot-starter-security") {
because("We want users to authenticate before sharing")
}
implementation("org.jetbrains.kotlin:kotlin-reflect") {
because("We need class reflection ('::class') for Spring tests and several other things")
}
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") {
because("Java")
}
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core") {
because("We want to use coroutines")
}
implementation("org.jetbrains.kotlin:kotlin-allopen") {
because("We need open classes for Spring annotations")
}
implementation("org.jetbrains.kotlin:kotlin-noarg") {
because("This is necessary for JPA")
}
implementation("org.mariadb.jdbc:mariadb-java-client") {
because("We use MariaDB for persistence")
}
implementation("org.flywaydb:flyway-core") {
because("We migrate our database with flyway scripts")
}
implementation("org.jsoup:jsoup:1.13.1") {
because("It can read and parse target websites")
}
implementation("com.rometools:rome:1.9.0") {
because("We want to provide an rss feed")
}
developmentOnly("org.springframework.boot:spring-boot-devtools") {
because("It enables hot reloading and other cool stuff")
}
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude("junit", "junit")
exclude("org.mockito", "mockito-core")
because("Testing tools for Spring Boot")
}
testImplementation("org.junit.jupiter:junit-jupiter:5.5.2") {
because("This is a newer version than the one provided by Spring Boot Starter Test")
}
testImplementation("io.mockk:mockk:1.9.3") {
because("This allows for better kotlin-style mocking")
}
testImplementation("org.springframework.security:spring-security-test") {
because("We need to test the security layer")
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}