-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
67 lines (57 loc) · 1.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
plugins {
id 'com.github.ben-manes.versions' version '0.51.0'
id 'com.google.osdetector' version '1.7.3'
id 'se.solrike.sonarlint' version '2.1.0' apply false
id 'com.github.spotbugs' version '6.0.26' apply false
}
group = 'io.github.chrisribble.ffmpeg'
version = '0.1-SNAPSHOT'
wrapper {
gradleVersion = '8.11.1'
}
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'jacoco'
apply plugin: 'maven-publish'
apply plugin: "se.solrike.sonarlint"
java {
sourceCompatibility = 22
targetCompatibility = 22
toolchain {
languageVersion = JavaLanguageVersion.of(23)
}
}
repositories {
mavenCentral()
}
dependencies {
sonarlintPlugins libs.sonar.java.plugin
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) { task ->
options.compilerArgs.add('-Werror')
options.compilerArgs.add('-Xlint:all')
options.compilerArgs.add('-Xlint:-processing')
options.compilerArgs.add('-Xlint:-restricted')
}
tasks.withType(VerificationTask) { task ->
if (task.name.startsWith("spotbugs")) {
task.reports {
html.required = true
}
}
}
}
sonarlint {
excludeRules = [
'java:S100', // Method name pattern for C type congruence
'java:S125', // Commented-out code false positives for C type info
'java:S1135', // TODO
'java:S3864', // peek in Stream delegate
'java:S6548', // Singleton
]
}
}