-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
67 lines (55 loc) · 1.88 KB
/
build.gradle.kts
File metadata and controls
67 lines (55 loc) · 1.88 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
plugins {
java
id("org.springframework.boot") version "2.5.2"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
id("com.github.johnrengelman.shadow") version "7.0.0"
id("io.freefair.lombok") version "6.1.0"
id("org.asciidoctor.convert") version "1.5.8"
}
group = "pink.zak.api"
version = "0.0.1-SNAPSHOT"
val snippetsDir by extra { file("build/generated-snippets") }
java {
sourceCompatibility = JavaVersion.VERSION_11
}
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-data-redis")
implementation("org.springframework.boot:spring-boot-starter-cache")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("com.google.guava:guava:30.1.1-jre")
implementation("se.michaelthelin.spotify:spotify-web-api-java:6.5.4")
runtimeOnly("org.mariadb.jdbc:mariadb-java-client")
developmentOnly("org.springframework.boot:spring-boot-devtools")
annotationProcessor("org.jetbrains:annotations:22.0.0")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.restdocs:spring-restdocs-mockmvc")
}
ext {
set("snippetsDir", snippetsDir)
}
tasks {
test {
useJUnitPlatform()
}
val testTask = withType<Test> {
outputs.dir(snippetsDir)
}
withType<JavaCompile> {
inputs.files(processResources)
}
withType<org.asciidoctor.gradle.AsciidoctorTask> {
dependsOn(testTask)
inputs.dir(snippetsDir)
}
}