-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
76 lines (62 loc) · 1.76 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
plugins {
java
id("org.springframework.boot") version "3.2.3"
id("io.spring.dependency-management") version "1.1.4"
id("com.vaadin") version "24.3.5"
jacoco
}
group = "com.mobo"
version = "2.0.0"
val vaadinVersion = "24.3.5"
java {
sourceCompatibility = JavaVersion.VERSION_21
}
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenCentral()
maven(url = "https://maven.vaadin.com/vaadin-prereleases")
maven(url = "https://maven.vaadin.com/vaadin-addons")
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.apache.httpcomponents:httpclient:4.5.14")
implementation("com.alibaba:fastjson:2.0.46")
compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
testImplementation("org.springframework.boot:spring-boot-starter-test")
implementation("org.apache.commons:commons-collections4:4.4")
implementation("org.mapdb:mapdb:3.1.0")
implementation("com.vaadin:vaadin-spring-boot-starter")
}
dependencyManagement {
imports {
mavenBom("com.vaadin:vaadin-bom:$vaadinVersion")
}
}
jacoco {
toolVersion = "0.8.11"
reportsDirectory = layout.buildDirectory.dir("reports/jacoco")
}
vaadin {
productionMode = true
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.test {
finalizedBy(tasks.jacocoTestReport) // report is always generated after tests run
}
tasks.jacocoTestReport {
reports {
xml.required = true
}
dependsOn(tasks.test) // tests are required to run before generating the report
}
tasks.bootBuildImage {
imageName = "mobo-subway"
}