-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
75 lines (66 loc) · 2.32 KB
/
build.gradle
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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.9.22'
id 'org.jetbrains.kotlin.plugin.spring' version '1.9.22'
id 'org.springframework.boot' version '3.4.2'
id 'io.spring.dependency-management' version '1.1.7'
id("io.gitlab.arturbosch.detekt") version "1.23.5"
id("org.jetbrains.dokka") version "1.9.10"
id("org.springdoc.openapi-gradle-plugin") version "1.9.0"
}
group = 'com.github.homma509'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
implementation 'org.jetbrains.kotlin:kotlin-reflect'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.21.0")
dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.9.10")
implementation("io.arrow-kt:arrow-core:1.2.1")
testImplementation("org.assertj:assertj-core:3.25.2")
testImplementation("net.jqwik:jqwik:1.8.2")
testImplementation("net.jqwik:jqwik-kotlin:1.8.2")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0")
implementation("org.springframework.boot:spring-boot-starter-jdbc")
implementation("org.postgresql:postgresql")
implementation("com.github.database-rider:rider-core:1.41.0")
implementation("com.github.database-rider:rider-spring:1.41.0")
testImplementation("com.github.database-rider:rider-junit5:1.41.0")
}
configurations.matching { it.name.startsWith("dokka") }.configureEach {
resolutionStrategy.eachDependency {
if (requested.group.startsWith("com.fasterxml.jackson")) {
useVersion("2.15.3")
}
}
}
kotlin {
compilerOptions {
freeCompilerArgs.addAll '-Xjsr305=strict'
}
}
tasks.named('test') {
useJUnitPlatform()
}
detekt {
config = files(
"$projectDir/config/detekt/detekt.yml",
"$projectDir/config/detekt/detekt-override.yml",
)
}
openApi {
apiDocsUrl.set("http://localhost:8080/v3/api-docs.yaml")
outputDir.set(project.layout.buildDirectory.dir("springdoc"))
outputFileName.set("openapi.yaml")
waitTimeInSeconds.set(10)
}