forked from openrewrite/rewrite-testing-frameworks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
43 lines (37 loc) · 1.97 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
@file:Suppress("GradlePackageUpdate")
plugins {
id("org.openrewrite.build.recipe-library") version "latest.release"
}
group = "org.openrewrite.recipe"
description = "A rewrite module automating best practices and major version migrations for popular Java test frameworks like JUnit and Mockito"
recipeDependencies {
parserClasspath("org.assertj:assertj-core:3.+")
parserClasspath("junit:junit:latest.release")
parserClasspath("pl.pragmatists:JUnitParams:1.+")
parserClasspath("org.junit.jupiter:junit-jupiter-api:latest.release")
parserClasspath("org.junit.jupiter:junit-jupiter-params:latest.release")
parserClasspath("org.hamcrest:hamcrest:latest.release")
parserClasspath("com.squareup.okhttp3:mockwebserver:3.14.9")
parserClasspath("org.apiguardian:apiguardian-api:1.1.2")
parserClasspath("com.github.tomakehurst:wiremock-jre8:2.35.0")
parserClasspath("org.mockito:mockito-all:1.10.19")
parserClasspath("org.mockito:mockito-core:3.+")
parserClasspath("org.mockito:mockito-junit-jupiter:3.+")
parserClasspath("org.powermock:powermock-api-mockito:1.7.+")
parserClasspath("org.powermock:powermock-core:1.7.+")
parserClasspath("com.squareup.okhttp3:mockwebserver:4.10.0")
}
val rewriteVersion = rewriteRecipe.rewriteVersion.get()
dependencies {
implementation(platform("org.openrewrite:rewrite-bom:$rewriteVersion"))
implementation("org.openrewrite:rewrite-java")
implementation("org.openrewrite:rewrite-gradle")
implementation("org.openrewrite:rewrite-maven")
implementation("org.openrewrite.recipe:rewrite-java-dependencies:$rewriteVersion")
implementation("org.openrewrite.recipe:rewrite-static-analysis:$rewriteVersion")
runtimeOnly("org.openrewrite:rewrite-java-17")
compileOnly("org.projectlombok:lombok:latest.release")
annotationProcessor("org.projectlombok:lombok:latest.release")
testImplementation("org.openrewrite:rewrite-java-17")
testImplementation("org.openrewrite:rewrite-groovy")
}