generated from moderneinc/rewrite-recipe-starter
-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle.kts
57 lines (46 loc) · 2.01 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
52
53
54
55
56
57
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.openrewrite.build.recipe-library") version "latest.release"
kotlin("jvm") version "1.9.25"
}
group = "org.openrewrite"
description = "Rewrite Kotlin"
val latest = if (project.hasProperty("releasing")) {
"latest.release"
} else {
"latest.integration"
}
val kotlinVersion = "1.9.25"
dependencies {
annotationProcessor("org.projectlombok:lombok:latest.release")
compileOnly("org.openrewrite:rewrite-core")
compileOnly("org.openrewrite:rewrite-test")
compileOnly("org.projectlombok:lombok:latest.release")
compileOnly("com.google.code.findbugs:jsr305:latest.release")
implementation(platform("org.openrewrite:rewrite-bom:${latest}"))
implementation("org.openrewrite:rewrite-java")
implementation(platform(kotlin("bom", kotlinVersion)))
implementation(kotlin("compiler-embeddable"))
// implementation("org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:${kotlinVersion}")
implementation(kotlin("stdlib"))
testImplementation("org.assertj:assertj-core:latest.release")
testImplementation("org.junit.jupiter:junit-jupiter-api:latest.release")
testImplementation("org.junit.jupiter:junit-jupiter-params:latest.release")
testImplementation("org.junit-pioneer:junit-pioneer:2.0.0")
testImplementation("org.openrewrite:rewrite-test")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:latest.release")
testRuntimeOnly("org.openrewrite:rewrite-java-17")
testRuntimeOnly("com.squareup.misk:misk-prometheus:latest.release")
testRuntimeOnly("com.squareup.misk:misk-metrics:latest.release")
testImplementation("com.github.ajalt.clikt:clikt:3.5.0")
testImplementation("com.squareup:javapoet:1.13.0")
testImplementation("com.google.testing.compile:compile-testing:0.+")
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}