File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id ' java-gradle-plugin'
3
3
id ' checkstyle'
4
+ id ' org.openrewrite.rewrite' version ' 7.5.0'
4
5
}
5
6
6
7
repositories {
7
8
mavenCentral()
8
9
gradlePluginPortal()
9
10
}
10
11
12
+ rewrite {
13
+ activeRecipe(" org.openrewrite.staticanalysis.CodeCleanup" )
14
+ checkstyleConfigFile = file(" src/checkstyle/checkstyle.xml" )
15
+ }
16
+
11
17
ext {
12
18
def propertiesFile = new File (new File (" $projectDir " ). parentFile, " gradle.properties" )
13
19
propertiesFile. withInputStream {
19
25
20
26
dependencies {
21
27
checkstyle " io.spring.javaformat:spring-javaformat-checkstyle:${ javaFormatVersion} "
28
+ rewrite " org.openrewrite.recipe:rewrite-static-analysis:latest.release"
22
29
implementation " org.jetbrains.kotlin:kotlin-gradle-plugin:${ kotlinVersion} "
23
30
implementation " com.tngtech.archunit:archunit:1.4.0"
24
31
implementation " org.gradle:test-retry-gradle-plugin:1.6.2"
You can’t perform that action at this time.
0 commit comments