generated from ak-git/SimpleApp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
108 lines (92 loc) · 2.46 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
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
107
108
import com.github.spotbugs.snom.Confidence
plugins {
id 'java'
id 'idea'
id "org.sonarqube" version '4.4.1.3373'
id 'jacoco'
id "com.github.spotbugs" version '6.0.4'
id 'org.springframework.boot' version '3.2.1'
id 'io.spring.dependency-management' version '1.1.4'
id 'com.github.ben-manes.versions' version '0.50.0'
id 'nebula.lint' version '19.0.1'
}
spotbugs {
reportLevel = Confidence.valueOf('HIGH')
}
tasks.spotbugsMain {
reports.create("html") {
required = true
setStylesheet("fancy-hist.xsl")
}
}
sonar {
properties {
property "sonar.projectKey", "ak-git_SimpleSpringApp"
property "sonar.organization", "ak-git"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.branch.name", "master"
property 'sonar.coverage.jacoco.xmlReportPaths', 'build/reports/jacoco/test/jacocoTestReport.xml'
}
}
jacoco {
toolVersion = "0.8.9"
}
ext {
javaVersion = JavaVersion.VERSION_20
}
wrapper {
description 'Setup the Gradle wrapper'
gradleVersion = "8.5"
distributionUrl = "https://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip"
}
allprojects {
group = 'com.ak'
version = '2023.12.21'
apply plugin: 'idea'
idea {
module {
inheritOutputDirs = true
}
}
sourceSets {
main.output.resourcesDir = main.java.classesDirectory
}
apply plugin: 'java'
apply plugin: 'jacoco'
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
repositories {
mavenCentral()
mavenLocal()
gradlePluginPortal()
}
jacocoTestReport {
reports {
xml.required = true
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation('org.springframework.boot:spring-boot-starter-test')
runtimeOnly 'com.h2database:h2'
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
forkEvery = 5
maxHeapSize = '1G'
}
}
configurations {
configureEach {
exclude group: 'com.vaadin.external.google', module: 'android-json'
}
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
}