-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
83 lines (66 loc) · 1.81 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
plugins {
id "java"
id "org.sonarqube" version "4.4.1.3373"
id "org.openrewrite.rewrite" version "6.10.0"
}
repositories {
mavenCentral()
}
subprojects {
apply plugin: "java"
apply plugin: "checkstyle"
repositories {
mavenCentral()
}
checkstyle {
toolVersion = "10.8.1"
configFile = file("${project.rootDir}/jobis-lint.xml")
ignoreFailures = false
maxWarnings = 0
}
rewrite {
activeRecipe("org.openrewrite.java.RemoveUnusedImports")
activeRecipe("org.openrewrite.java.format.BlankLines")
activeRecipe("org.openrewrite.java.ShortenFullyQualifiedTypeReferences")
activeRecipe("org.openrewrite.staticanalysis.CodeCleanup")
activeRecipe("org.openrewrite.java.OrderImports")
checkstyleConfigFile = file("${project.rootDir}/jobis-lint.xml")
}
checkstyleMain {
source = sourceSets.main.allSource
}
dependencies {
compileOnly "org.projectlombok:lombok:1.18.30"
annotationProcessor "org.projectlombok:lombok:1.18.30"
}
test.useJUnitPlatform()
}
allprojects {
apply plugin: "jacoco"
apply plugin: "checkstyle"
group = 'team.retum'
version = '1.0.4'
compileJava {
sourceCompatibility = JavaVersion.VERSION_17.majorVersion
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
test {
useJUnitPlatform()
}
}
dependencies {
rewrite("org.openrewrite.recipe:rewrite-static-analysis:1.4.0")
rewrite("org.openrewrite:rewrite-java")
}
sonar {
properties {
property "sonar.projectKey", "Team-Return_JOBIS-DSM-BE"
property "sonar.organization", "team-return"
property "sonar.host.url", "https://sonarcloud.io"
}
}
jar.enabled = false