-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
106 lines (88 loc) Β· 3.38 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
102
103
104
105
106
plugins {
val kotlinVersion = "1.5.31"
id("org.springframework.boot") version "2.5.5"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
id("org.asciidoctor.jvm.convert") version "3.3.2"
kotlin("jvm") version kotlinVersion
kotlin("plugin.spring") version kotlinVersion
kotlin("plugin.jpa") version kotlinVersion
kotlin("plugin.allopen") version kotlinVersion
kotlin("plugin.noarg") version kotlinVersion
kotlin("kapt") version kotlinVersion
}
group = "com.yapp"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_11
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
val asciidoctorExtensions: Configuration by configurations.creating
repositories {
mavenCentral()
maven("https://jitpack.io")
}
allOpen {
annotation("javax.persistence.Entity")
annotation("javax.persistence.MappedSuperclass")
annotation("javax.persistence.Embeddable")
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.springframework.security.oauth:spring-security-oauth2:2.5.1.RELEASE")
implementation("org.springframework.security:spring-security-jwt:1.1.1.RELEASE")
implementation("io.jsonwebtoken:jjwt:0.9.1")
implementation("org.json:json:20210307")
// https://mvnrepository.com/artifact/com.h2database/h2
testImplementation("com.h2database:h2:1.4.199")
runtimeOnly("com.h2database:h2")
runtimeOnly("mysql:mysql-connector-java")
implementation("org.springframework.boot:spring-boot-starter-test"){
exclude (group = "com.vaadin.external.google", module = "android-json")
}
testImplementation("org.springframework.security:spring-security-test")
testImplementation("io.mockk:mockk:1.12.0")
testImplementation("com.h2database:h2:1.4.199")
implementation("org.slf4j:slf4j-api:1.7.32")
testImplementation("org.springframework.restdocs:spring-restdocs-mockmvc")
asciidoctorExtensions("org.springframework.restdocs:spring-restdocs-asciidoctor")
implementation("org.jetbrains.kotlin:kotlin-stdlib")
implementation("com.github.consoleau:kassava:2.1.0")
implementation("org.mapstruct:mapstruct:1.4.2.Final")
kapt("org.mapstruct:mapstruct-processor:1.4.2.Final")
val querydslVersion = "4.4.0"
implementation("com.querydsl:querydsl-jpa:$querydslVersion")
kapt("com.querydsl:querydsl-apt:$querydslVersion:jpa")
implementation("org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE")
implementation("org.springframework.boot:spring-boot-starter-validation:2.6.2")
}
tasks {
compileKotlin {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}
test {
useJUnitPlatform()
}
asciidoctor {
dependsOn(test)
configurations(asciidoctorExtensions.name)
baseDirFollowsSourceDir()
doLast {
copy {
from(outputDir)
into("src/main/resources/static/docs")
}
}
}
build {
dependsOn(asciidoctor)
}
}