-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
84 lines (72 loc) · 2.08 KB
/
build.gradle
File metadata and controls
84 lines (72 loc) · 2.08 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
// IF YOU EDIT THIS FILE, YOU WILL RECEIVE A ZERO
// Edited for Spring boot.
plugins {
id 'java'
id 'application'
id 'jacoco'
id 'pmd'
id 'org.springframework.boot' version '3.2.3'
id 'io.spring.dependency-management' version '1.1.4'
}
repositories {
mavenCentral()
}
dependencies {
testImplementation('org.junit.jupiter:junit-jupiter:5.6.0')
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
implementation 'org.apache.commons:commons-csv:1.10.0'
implementation 'org.apache.commons:commons-math4-legacy:4.0-beta1'
implementation 'org.springframework.boot:spring-boot-starter-web:3.2.3'
implementation 'org.springframework.boot:spring-boot-starter-test:3.2.3'
}
test {
useJUnitPlatform()
outputs.upToDateWhen { false }
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
showStandardStreams true
}
finalizedBy jacocoTestReport
jacoco {
destinationFile = layout.buildDirectory.file('jacoco/jacocoTest.exec').get().asFile
classDumpDir = layout.buildDirectory.dir('jacoco/classpathdumps').get().asFile
}
}
application {
mainClass = "musicanalyzer.MusicAnalyzerApplication"
}
jacoco {
toolVersion = "0.8.11"
reportsDirectory = layout.buildDirectory.dir('customJacocoReportDir')
}
jacocoTestReport {
reports {
xml.required = false
csv.required = false
html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
}
}
tasks.withType(JavaCompile).configureEach {
options.compilerArgs.addAll(["-Werror", "-Xlint:unchecked,deprecation"])
}
jar {
manifest {
attributes 'Main-Class': 'musicanalyzer.MusicAnalyzerApplication'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
pmd {
ruleSetFiles = files("config/pmd/ruleset.xml")
ignoreFailures = true
}
javadoc {
source = sourceSets.main.allJava
destinationDir = file("$buildDir/docs/javadoc")
}
run {
standardInput = System.in
}