-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle.kts
51 lines (38 loc) · 2 KB
/
build.gradle.kts
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
@Suppress("RedundantSuppression", "GradlePackageUpdate")
plugins {
id("org.openrewrite.build.recipe-library") version "latest.release"
}
group = "org.openrewrite.meta"
description = "Static code analysis APIs leveraging data flow, control flow, and other AST-based search"
val rewriteVersion = rewriteRecipe.rewriteVersion.get()
dependencies {
compileOnly("org.projectlombok:lombok:latest.release")
annotationProcessor("org.projectlombok:lombok:latest.release")
api("org.functionaljava:functionaljava:latest.release")
implementation(platform("org.openrewrite:rewrite-bom:${rewriteVersion}"))
implementation("org.openrewrite:rewrite-java")
implementation("org.openrewrite:rewrite-maven")
implementation("org.openrewrite:rewrite-yaml")
implementation("org.openrewrite:rewrite-xml")
implementation("io.github.classgraph:classgraph:latest.release")
testImplementation("org.openrewrite:rewrite-test:${rewriteVersion}")
testImplementation("org.openrewrite:rewrite-java-tck:${rewriteVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:latest.release")
testImplementation("com.tngtech.archunit:archunit-junit5:latest.release")
testImplementation("org.assertj:assertj-core:latest.release")
testRuntimeOnly("org.openrewrite:rewrite-java-17:${rewriteVersion}")
testRuntimeOnly("commons-io:commons-io:2.13.+")
testRuntimeOnly("com.google.guava:guava:32.1.1-jre")
}
tasks.withType<Javadoc> {
// generated ANTLR sources violate doclint
(options as StandardJavadocDocletOptions).addStringOption("Xdoclint:none", "-quiet")
// Items besides JavaParser due to lombok error which looks similar to this:
// openrewrite/rewrite/rewrite-java/src/main/java/org/openrewrite/java/OrderImports.java:42: error: cannot find symbol
// @AllArgsConstructor(onConstructor_=@JsonCreator)
// ^
// symbol: method onConstructor_()
// location: @interface AllArgsConstructor
// 1 error
exclude("**/trait/**")
}