Skip to content

Commit 319b7f5

Browse files
committed
Fix Gradle and Sonar warnings
1 parent 663d08a commit 319b7f5

2 files changed

Lines changed: 31 additions & 44 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
sonar-dependabot:
5656
name: Sonar (Dependabot PRs)
5757
# Only run when the event is pull_request_target and the actor is Dependabot
58-
if: github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]'
58+
if: github.event_name == 'pull_request_target' && github.event.pull_request.user.login == 'dependabot[bot]'
5959
runs-on: ubuntu-latest
6060
permissions:
6161
contents: read

build.gradle

Lines changed: 30 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,11 @@
1-
buildscript {
2-
ext {
3-
springBootVersion = project.hasProperty('springBootVersion') ? project.springBootVersion : '3.5.0'
4-
springVersion = project.hasProperty('springFrameworkVersion') ? project.springFrameworkVersion : '6.2.7'
5-
jacksonVersion = '2.20.1'
6-
retrofitVersion = '3.0.0'
7-
mockitoVersion = '5.21.+' // At least Mockito 5.2.0 is required to Mock final classes
8-
}
9-
dependencies {
10-
classpath 'org.owasp:dependency-check-gradle'
11-
}
12-
}
13-
141
plugins {
152
id 'java'
16-
id "org.owasp.dependencycheck" version "12.1.9"
17-
id "io.freefair.lombok" version "9.1.0"
3+
id "io.freefair.lombok" version "9.2.0"
184
id "io.github.gradle-nexus.publish-plugin" version "2.0.0"
195
}
206

21-
group 'ee.bitweb'
22-
version '4.0.5'
7+
group = 'ee.bitweb'
8+
version = '4.0.5'
239
java {
2410
sourceCompatibility = '17'
2511
}
@@ -38,82 +24,83 @@ repositories {
3824

3925
dependencies {
4026
// https://mvnrepository.com/artifact/org.apache.tomcat/tomcat-catalina
41-
compileOnly group: 'org.apache.tomcat', name: 'tomcat-catalina', version: '10.1.50'
27+
compileOnly 'org.apache.tomcat:tomcat-catalina:10.1.50'
4228

4329
// https://mvnrepository.com/artifact/org.springframework/spring-webmvc
44-
compileOnly group: 'org.springframework', name: 'spring-webmvc', version: "${springVersion}"
30+
compileOnly 'org.springframework:spring-webmvc:6.2.7'
4531

4632
// https://mvnrepository.com/artifact/org.springframework/spring-tx
47-
compileOnly group: 'org.springframework', name: 'spring-tx', version: "${springVersion}"
33+
compileOnly 'org.springframework:spring-tx:6.2.7'
4834

4935
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-security
50-
compileOnly group: 'org.springframework.boot', name: 'spring-boot-starter-security', version: "${springBootVersion}"
36+
compileOnly 'org.springframework.boot:spring-boot-starter-security:3.5.0'
5137

5238
// https://mvnrepository.com/artifact/org.springframework.amqp/spring-amqp
53-
compileOnly group: 'org.springframework.boot', name: 'spring-boot-starter-amqp', version: "${springBootVersion}"
39+
compileOnly 'org.springframework.boot:spring-boot-starter-amqp:3.5.0'
5440

5541
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-configuration-processor
56-
annotationProcessor group: 'org.springframework.boot', name: 'spring-boot-configuration-processor', version: "${springBootVersion}"
42+
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor:3.5.0'
5743

5844
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-actuator
59-
compileOnly group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: "${springBootVersion}"
45+
compileOnly 'org.springframework.boot:spring-boot-starter-actuator:3.5.0'
6046

6147
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-autoconfigure
62-
compileOnly group: 'org.springframework.boot', name: 'spring-boot-autoconfigure', version: "${springBootVersion}"
48+
compileOnly 'org.springframework.boot:spring-boot-autoconfigure:3.5.0'
6349

6450
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation
65-
compileOnly group: 'org.springframework.boot', name: 'spring-boot-starter-validation', version: "${springBootVersion}"
51+
compileOnly 'org.springframework.boot:spring-boot-starter-validation:3.5.0'
6652

6753
// https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jsr310
68-
compileOnly group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: "${jacksonVersion}"
54+
compileOnly 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.20.1'
6955

7056
// https://mvnrepository.com/artifact/jakarta.validation/jakarta.validation-api
71-
compileOnly group: 'jakarta.validation', name: 'jakarta.validation-api', version: '3.1.1'
57+
compileOnly 'jakarta.validation:jakarta.validation-api:3.1.1'
7258

7359
// https://mvnrepository.com/artifact/com.squareup.retrofit2/retrofit
74-
compileOnly group: 'com.squareup.retrofit2', name: 'retrofit', version: "${retrofitVersion}"
60+
compileOnly 'com.squareup.retrofit2:retrofit:3.0.0'
7561

7662
// https://mvnrepository.com/artifact/com.squareup.retrofit2/converter-jackson
77-
compileOnly group: 'com.squareup.retrofit2', name: 'converter-jackson', version: "${retrofitVersion}"
63+
compileOnly 'com.squareup.retrofit2:converter-jackson:3.0.0'
7864

7965
// https://mvnrepository.com/artifact/com.squareup.okhttp3/logging-interceptor
80-
compileOnly group: 'com.squareup.okhttp3', name: 'logging-interceptor', version: '5.3.2'
66+
compileOnly 'com.squareup.okhttp3:logging-interceptor:5.3.2'
8167

8268
// https://mvnrepository.com/artifact/de.siegmar/logback-gelf
83-
compileOnly group: 'de.siegmar', name: 'logback-gelf', version: '6.1.+'
69+
compileOnly 'de.siegmar:logback-gelf:6.1.+'
8470

8571
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web
86-
testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: "${springBootVersion}"
72+
testImplementation 'org.springframework.boot:spring-boot-starter-web:3.5.0'
8773

8874
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-test
89-
testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: "${springBootVersion}"
75+
testImplementation 'org.springframework.boot:spring-boot-starter-test:3.5.0'
9076

9177
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-security
92-
testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-security', version: "${springBootVersion}"
78+
testImplementation 'org.springframework.boot:spring-boot-starter-security:3.5.0'
9379

9480
// https://mvnrepository.com/artifact/org.springframework.amqp/spring-amqp
95-
testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-amqp', version: "${springBootVersion}"
81+
testImplementation 'org.springframework.boot:spring-boot-starter-amqp:3.5.0'
9682

9783
// https://mvnrepository.com/artifact/org.json/json
98-
testImplementation group: 'org.json', name: 'json', version: '20250517'
84+
testImplementation 'org.json:json:20250517'
9985

10086
// https://mvnrepository.com/artifact/ee.bitweb/spring-test-core
101-
testImplementation group: 'ee.bitweb', name: 'spring-test-core', version: '2.+'
87+
testImplementation 'ee.bitweb:spring-test-core:2.+'
10288

10389
// https://mvnrepository.com/artifact/org.mockito/mockito-core
104-
testImplementation group: 'org.mockito', name: 'mockito-core', version: "${mockitoVersion}"
90+
testImplementation 'org.mockito:mockito-core:5.21.+'
10591

10692
// https://mvnrepository.com/artifact/org.mockito/mockito-junit-jupiter
107-
testImplementation group: 'org.mockito', name: 'mockito-junit-jupiter', version: "${mockitoVersion}"
93+
testImplementation 'org.mockito:mockito-junit-jupiter:5.21.+'
10894

10995
// https://mvnrepository.com/artifact/org.mock-server/mockserver-netty
110-
testImplementation ("org.mock-server:mockserver-netty:5.15.0") {
96+
testImplementation('org.mock-server:mockserver-netty:5.15.0') {
11197
exclude group: 'junit', module: 'junit'
11298
}
11399

114-
testImplementation group : 'org.testcontainers', name: 'testcontainers', version: "1.+"
100+
// https://mvnrepository.com/artifact/org.testcontainers/testcontainers
101+
testImplementation 'org.testcontainers:testcontainers:1.+'
115102

116-
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
103+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
117104
}
118105

119106
configurations {

0 commit comments

Comments
 (0)