-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle.kts
40 lines (33 loc) · 1.53 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
plugins {
id("org.openrewrite.build.recipe-library") version "latest.release"
}
group = "org.openrewrite.recipe"
description = "A rewrite module automating Java dependency management."
val rewriteVersion = rewriteRecipe.rewriteVersion.get()
dependencies {
implementation(platform("org.openrewrite:rewrite-bom:$rewriteVersion"))
implementation("org.openrewrite:rewrite-maven")
implementation("org.openrewrite:rewrite-gradle")
implementation("org.openrewrite:rewrite-groovy")
runtimeOnly("org.openrewrite:rewrite-java-17")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-csv")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
testImplementation("org.openrewrite:rewrite-test")
testImplementation("org.openrewrite.gradle.tooling:model:${rewriteVersion}")
testImplementation(gradleApi())
testRuntimeOnly("com.google.guava:guava:latest.release")
testRuntimeOnly("ch.qos.logback:logback-classic:1.2.+")
}
tasks {
// ./gradlew parseDefinitionMigrations --args="./oga-maven-plugin src/main/resources/migrations.csv"
val parseDefinitionMigrations by registering(JavaExec::class) {
group = "generate"
description = "Parse oga-maven-plugin and generate a CSV file."
mainClass = "org.openrewrite.java.dependencies.oldgroupids.ParseDefinitionMigrations"
classpath = sourceSets.getByName("main").runtimeClasspath
}
}
license {
exclude("**/*.json")
}