-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
97 lines (79 loc) · 2.84 KB
/
build.gradle
File metadata and controls
97 lines (79 loc) · 2.84 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
95
96
97
import org.jetbrains.dokka.gradle.DokkaTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'org.springframework.boot' version '3.1.3'
id 'io.spring.dependency-management' version '1.1.3'
id 'org.jetbrains.kotlin.jvm' version '1.8.22'
id 'org.jetbrains.kotlin.plugin.spring' version '1.8.22'
id 'org.jetbrains.kotlin.plugin.jpa' version '1.8.22'
id "org.jetbrains.dokka" version "1.9.0"
id 'jacoco'
}
group = 'modic.io'
version = '0.3'
java {
sourceCompatibility = '17'
}
test {
testLogging.showStandardStreams = true
finalizedBy jacocoTestReport // report is always generated after tests run
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
reports {
xml.required = true
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web-services'
implementation 'org.springframework.boot:spring-boot-starter-websocket'
implementation 'org.jetbrains.kotlin:kotlin-reflect'
implementation 'org.springframework.session:spring-session-core'
implementation 'org.glassfish.jaxb:jaxb-runtime:4.0.3'
implementation("net.sf.saxon:Saxon-HE:9.9.1-4")
implementation("net.sourceforge.plantuml:plantuml-mit:1.2024.3")
implementation('org.springframework.boot:spring-boot-starter-thymeleaf')
implementation('nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect')
implementation('org.webjars:bootstrap:5.3.3')
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'org.postgresql:postgresql'
runtimeOnly 'com.h2database:h2:2.2.222'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation "io.mockk:mockk:1.13.8"
testImplementation("com.ninja-squad:springmockk:4.0.2")
}
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
freeCompilerArgs += '-Xjsr305=strict'
freeCompilerArgs += '-Xjvm-default=all'
jvmTarget = '17'
}
}
tasks.named('test') {
useJUnitPlatform()
}
apply plugin : "org.jetbrains.dokka"
tasks.withType(DokkaTask.class) {
String dokkaBaseConfiguration = """
{
"footerMessage": "(c) 2022 modicio Team @ ST TU-Dresden / Karl Kegel",
"separateInheritedMembers": false,
"mergeImplicitExpectActualDeclarations": false
}
"""
pluginsMapConfiguration.set(
// fully qualified plugin name to json configuration
["org.jetbrains.dokka.base.DokkaBase": dokkaBaseConfiguration]
)
}