Skip to content

Commit bd55a4b

Browse files
committed
×sonarlint; force error_prone_core:2.36.0 (works with lombok)
1 parent 7e37b25 commit bd55a4b

File tree

24 files changed

+119
-328
lines changed

24 files changed

+119
-328
lines changed

click-cayenne/build.gradle

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
id 'maven-publish'
55

66
alias(libs.plugins.lombok)
7-
alias(libs.plugins.sonarlint)
7+
//alias(libs.plugins.sonarlint)
88
alias(libs.plugins.errorprone)
99
}
1010

@@ -48,7 +48,7 @@ java {
4848
}
4949

5050
dependencies {
51-
errorprone "com.google.errorprone:error_prone_core:latest.release"
51+
errorprone "com.google.errorprone:error_prone_core:2.36.0"
5252

5353
compileOnly libs.javaxServletApi
5454

@@ -96,17 +96,17 @@ test {
9696

9797
systemProperty("file.encoding", "UTF-8")
9898
systemProperty("user.language", "en")
99-
Locale.setDefault(new Locale("en", "US"));
99+
Locale.setDefault(Locale.ENGLISH);
100100
}
101101
lombok { version = "latest.release" }
102-
sonarLint { ignoreFailures = true }
103-
tasks.named("sonarlintMain").configure {
104-
onlyIf { // gradle build -Psonarlint=true -or- -Dsonarlint=true
105-
(project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
106-
}
107-
}
108-
tasks.named("sonarlintTest").configure {
109-
onlyIf {
110-
(project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
111-
}
112-
}
102+
//sonarLint { ignoreFailures = true }
103+
//tasks.named("sonarlintMain").configure {
104+
// onlyIf { // gradle build -Psonarlint=true -or- -Dsonarlint=true
105+
// (project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
106+
// }
107+
//}
108+
//tasks.named("sonarlintTest").configure {
109+
// onlyIf {
110+
// (project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
111+
// }
112+
//}

click-charts-examples/build.gradle

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99
alias(libs.plugins.spring.dependencyManagement)
1010

1111
alias(libs.plugins.lombok)
12-
alias(libs.plugins.sonarlint)
12+
//alias(libs.plugins.sonarlint)
1313
alias(libs.plugins.errorprone)
1414
alias(libs.plugins.gradleGitProperties)
1515
}
@@ -44,7 +44,7 @@ tasks.withType(JavaCompile).configureEach {
4444
}
4545

4646
dependencies {
47-
errorprone "com.google.errorprone:error_prone_core:latest.release"
47+
errorprone "com.google.errorprone:error_prone_core:2.36.0"
4848
implementation libs.jsr305
4949

5050
compileOnly libs.javaxServletApi
@@ -101,20 +101,8 @@ test {
101101
//systemProperty("slf4j.detectLoggerNameMismatch", "true")
102102
systemProperty("file.encoding", "UTF-8")
103103
systemProperty("user.language", "en")
104-
Locale.setDefault(new Locale("en", "US"));
105104
}
106105
lombok { version = "latest.release" }
107-
sonarLint { ignoreFailures = true }
108-
tasks.named("sonarlintMain").configure {
109-
onlyIf { // gradle build -Psonarlint=true -or- -Dsonarlint=true
110-
(project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
111-
}
112-
}
113-
tasks.named("sonarlintTest").configure {
114-
onlyIf {
115-
(project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
116-
}
117-
}
118106

119107
gretty {// https://gretty-gradle-plugin.github.io/gretty-doc/Switching-between-servlet-containers.html
120108
servletContainer = 'tomcat9'

click-charts/build.gradle

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
id 'maven-publish'
55

66
alias(libs.plugins.lombok)
7-
alias(libs.plugins.sonarlint)
7+
//alias(libs.plugins.sonarlint)
88
alias(libs.plugins.errorprone)
99
}
1010

@@ -48,7 +48,7 @@ java {
4848
}
4949

5050
dependencies {
51-
errorprone "com.google.errorprone:error_prone_core:latest.release"
51+
errorprone "com.google.errorprone:error_prone_core:2.36.0"
5252

5353
compileOnly libs.javaxServletApi
5454

@@ -79,17 +79,16 @@ test {
7979

8080
System.setProperty("file.encoding", "UTF-8")
8181
System.setProperty("user.language", "en")
82-
Locale.setDefault(new Locale("en", "US"));
8382
}
8483
lombok { version = "latest.release" }
85-
sonarLint { ignoreFailures = true }
86-
tasks.named("sonarlintMain").configure {
87-
onlyIf { // gradle build -Psonarlint=true -or- -Dsonarlint=true
88-
(project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
89-
}
90-
}
91-
tasks.named("sonarlintTest").configure {
92-
onlyIf {
93-
(project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
94-
}
95-
}
84+
//sonarLint { ignoreFailures = true }
85+
//tasks.named("sonarlintMain").configure {
86+
// onlyIf { // gradle build -Psonarlint=true -or- -Dsonarlint=true
87+
// (project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
88+
// }
89+
//}
90+
//tasks.named("sonarlintTest").configure {
91+
// onlyIf {
92+
// (project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
93+
// }
94+
//}

click-extras/build.gradle

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ plugins {
44
id 'maven-publish'
55

66
alias(libs.plugins.lombok)
7-
alias(libs.plugins.sonarlint)
7+
//alias(libs.plugins.sonarlint)
88
alias(libs.plugins.errorprone)
99
}
1010
println "[INFO] ${project.group}:${project.name}:$version => ${project.archivesBaseName} # JVM: ${System.getProperty("java.version")} Gradle: ${gradle.gradleVersion}"
1111

1212
repositories {
1313
mavenLocal()
1414
mavenCentral()
15-
maven { url "https://jitpack.io" }
15+
maven { url = "https://jitpack.io" }
1616
}
1717

1818
tasks.withType(JavaCompile).configureEach {
@@ -50,7 +50,7 @@ java {
5050
}
5151

5252
dependencies {
53-
errorprone "com.google.errorprone:error_prone_core:latest.release"
53+
errorprone "com.google.errorprone:error_prone_core:2.36.0"
5454

5555
compileOnly libs.javaxServletApi
5656

@@ -95,20 +95,19 @@ test {
9595

9696
systemProperty("file.encoding", "UTF-8")
9797
systemProperty("user.language", "en")
98-
Locale.setDefault(new Locale("en", "US"));
9998
}
10099
lombok { version = "latest.release" }
101-
sonarLint { ignoreFailures = true }
102-
tasks.named("sonarlintMain").configure {
103-
onlyIf { // gradle build -Psonarlint=true -or- -Dsonarlint=true
104-
(project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
105-
}
106-
}
107-
tasks.named("sonarlintTest").configure {
108-
onlyIf {
109-
(project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
110-
}
111-
}
100+
//sonarLint { ignoreFailures = true }
101+
//tasks.named("sonarlintMain").configure {
102+
// onlyIf { // gradle build -Psonarlint=true -or- -Dsonarlint=true
103+
// (project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
104+
// }
105+
//}
106+
//tasks.named("sonarlintTest").configure {
107+
// onlyIf {
108+
// (project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
109+
// }
110+
//}
112111

113112
tasks.withType(AbstractArchiveTask).configureEach {
114113
preserveFileTimestamps = false

click-freemarker/build.gradle

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ plugins {
44
id 'maven-publish'
55

66
alias(libs.plugins.lombok)
7-
alias(libs.plugins.sonarlint)
7+
//alias(libs.plugins.sonarlint)
88
alias(libs.plugins.errorprone)
99
}
1010
println "[INFO] ${project.group}:${project.name}:$version => ${project.archivesBaseName} # JVM: ${System.getProperty("java.version")} Gradle: ${gradle.gradleVersion}"
1111

1212
repositories {
1313
mavenLocal()
1414
mavenCentral()
15-
maven { url "https://jitpack.io" }
15+
maven { url = "https://jitpack.io" }
1616
}
1717

1818
tasks.withType(JavaCompile).configureEach {
@@ -49,7 +49,7 @@ java {
4949
}
5050

5151
dependencies {
52-
errorprone "com.google.errorprone:error_prone_core:latest.release"
52+
errorprone "com.google.errorprone:error_prone_core:2.36.0"
5353

5454
compileOnly libs.javaxServletApi
5555

@@ -95,20 +95,19 @@ test {
9595

9696
systemProperty("file.encoding", "UTF-8")
9797
systemProperty("user.language", "en")
98-
Locale.setDefault(new Locale("en", "US"));
9998
}
10099
lombok { version = "latest.release" }
101-
sonarLint { ignoreFailures = true }
102-
tasks.named("sonarlintMain").configure {
103-
onlyIf { // gradle build -Psonarlint=true -or- -Dsonarlint=true
104-
(project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
105-
}
106-
}
107-
tasks.named("sonarlintTest").configure {
108-
onlyIf {
109-
(project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
110-
}
111-
}
100+
//sonarLint { ignoreFailures = true }
101+
//tasks.named("sonarlintMain").configure {
102+
// onlyIf { // gradle build -Psonarlint=true -or- -Dsonarlint=true
103+
// (project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
104+
// }
105+
//}
106+
//tasks.named("sonarlintTest").configure {
107+
// onlyIf {
108+
// (project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
109+
// }
110+
//}
112111

113112
tasks.withType(AbstractArchiveTask).configureEach {
114113
preserveFileTimestamps = false

click-groovy-ps/build.gradle

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
id 'maven-publish'
55

66
alias(libs.plugins.lombok)
7-
alias(libs.plugins.sonarlint)
7+
//alias(libs.plugins.sonarlint)
88
alias(libs.plugins.errorprone)
99
}
1010

@@ -43,7 +43,7 @@ java {
4343
}
4444

4545
dependencies {
46-
errorprone "com.google.errorprone:error_prone_core:latest.release"
46+
errorprone "com.google.errorprone:error_prone_core:2.36.0"
4747

4848
compileOnly libs.javaxServletApi
4949

@@ -73,17 +73,5 @@ test {
7373

7474
systemProperty("file.encoding", "UTF-8")
7575
systemProperty("user.language", "en")
76-
Locale.setDefault(new Locale("en", "US"));
7776
}
78-
lombok { version = "latest.release" }
79-
sonarLint { ignoreFailures = true }
80-
tasks.named("sonarlintMain").configure {
81-
onlyIf { // gradle build -Psonarlint=true -or- -Dsonarlint=true
82-
(project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
83-
}
84-
}
85-
tasks.named("sonarlintTest").configure {
86-
onlyIf {
87-
(project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
88-
}
89-
}
77+
lombok { version = "latest.release" }

click-hibernate/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plugins {
1212
repositories {
1313
mavenLocal()
1414
mavenCentral()
15-
maven { url 'https://jitpack.io' }
15+
maven { url = 'https://jitpack.io' }
1616
}
1717

1818
tasks.withType(JavaCompile).configureEach {
@@ -45,7 +45,7 @@ java {
4545
}
4646

4747
dependencies {
48-
errorprone "com.google.errorprone:error_prone_core:latest.release"
48+
errorprone "com.google.errorprone:error_prone_core:2.36.0"
4949

5050
compileOnly libs.javaxServletApi
5151

click-jpa-demo/build.gradle

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ plugins {
77
alias(libs.plugins.grettyWebContainer)
88

99
alias(libs.plugins.lombok)
10-
alias(libs.plugins.sonarlint)
10+
//alias(libs.plugins.sonarlint)
1111
alias(libs.plugins.errorprone)
1212
}
1313

1414
repositories {
1515
mavenLocal()
1616
jcenter() // helps with JMS!
1717
maven {
18-
url "https://repository.jboss.org/maven2" // "https://repository.jboss.org/nexus/content/groups/public"
18+
url = "https://repository.jboss.org/maven2" // "https://repository.jboss.org/nexus/content/groups/public"
1919
}
2020
maven {
21-
url "https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/"
21+
url = "https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/"
2222
}
2323
mavenCentral()
24-
maven { url "https://jitpack.io" }
24+
maven { url = "https://jitpack.io" }
2525
}
2626

2727
tasks.withType(JavaCompile).configureEach {
@@ -42,7 +42,7 @@ tasks.withType(JavaCompile).configureEach {
4242
}
4343

4444
dependencies {
45-
errorprone "com.google.errorprone:error_prone_core:latest.release"
45+
errorprone "com.google.errorprone:error_prone_core:2.36.0"
4646
implementation("javax.annotation:javax.annotation-api:1.3.2")
4747

4848
compileOnly libs.javaxServletApi
@@ -115,17 +115,5 @@ test {
115115

116116
systemProperty("file.encoding", "UTF-8")
117117
systemProperty("user.language", "en")
118-
Locale.setDefault(new Locale("en", "US"));
119118
}
120-
lombok { version = "latest.release" }
121-
sonarLint { ignoreFailures = true }
122-
tasks.named("sonarlintMain").configure {
123-
onlyIf { // gradle build -Psonarlint=true -or- -Dsonarlint=true
124-
(project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
125-
}
126-
}
127-
tasks.named("sonarlintTest").configure {
128-
onlyIf {
129-
(project.hasProperty('sonarlint') && 'true'.equalsIgnoreCase(project.property('sonarlint').toString())) || 'true'.equalsIgnoreCase(System.getProperty('sonarlint'))
130-
}
131-
}
119+
lombok { version = "latest.release" }

0 commit comments

Comments
 (0)