-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
122 lines (105 loc) · 3.41 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
plugins {
id 'java'
id 'application'
id 'jacoco'
id 'org.sonarqube' version '6.0.0.5145'
id 'com.diffplug.spotless' version '6.25.0'
id 'org.springframework.boot' version '3.4.1'
id 'io.spring.dependency-management' version '1.1.7'
}
group = 'com.josdem.jmetadata'
version = '1.2.8'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
application {
mainClass = 'com.josdem.jmetadata.Launcher'
}
ext {
audioTaggerVersion = '2.0.3'
retrofitVersion = '2.11.0'
junitVersion = '5.11.4'
aspectjVersion = '1.9.22.1'
messengineVersion = '0.1.0'
festSwingVersion = '1.2.1'
javaXmlBindVersion = '2.3.1'
javaAnnotationVersion = '1.3.2'
commonsLangVersion = '3.17.0'
mockitoVersion = '3.12.4'
mockitoInlineVersion = '5.2.0'
targetDir = "src/main/java/com/josdem/jmetadata"
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
spotless {
java {
target fileTree('.') {
include 'src/**/*.java'
exclude '/build/**'
}
googleJavaFormat()
removeUnusedImports()
endWithNewline()
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation "org.aspectj:aspectjtools:$aspectjVersion"
implementation "org:jaudiotagger:$audioTaggerVersion"
implementation "org.asmatron:messengine:$messengineVersion"
implementation "org.apache.commons:commons-lang3:$commonsLangVersion"
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion"
implementation "javax.xml.bind:jaxb-api:$javaXmlBindVersion"
implementation "javax.annotation:javax.annotation-api:$javaAnnotationVersion"
implementation "org.easytesting:fest-swing:$festSwingVersion"
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "org.mockito:mockito-inline:$mockitoInlineVersion"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation files('lib/last.fm-bindings-0.1.0.jar')
}
jacoco {
toolVersion = "0.8.12"
}
jacocoTestReport {
dependsOn test
reports {
html.required = true
xml.required = true
}
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: ['**/laf/**/*', '**/gui/**/*', '**/dnd/**/*'])
}))
}
}
test {
useJUnitPlatform()
}
sonar {
properties {
property "sonar.projectKey", "josdem_jmetadata"
property "sonar.organization", "josdem-io"
property "sonar.host.url", "https://sonarcloud.io"
}
}
test.dependsOn("spotlessApply")
tasks.register('settingCredentials') {
ant.replace(file: "${targetDir}/Auth.java", token: "LASTFM_API_KEY", value: "${LASTFM_API_KEY}")
ant.replace(file: "${targetDir}/Auth.java", token: "LASTFM_API_SECRET", value: "${LASTFM_API_SECRET}")
}