From 85965d951bb182f172171108b147401a0fafa2e5 Mon Sep 17 00:00:00 2001 From: Sam Snyder Date: Mon, 10 Apr 2023 17:02:07 -0700 Subject: [PATCH] Add repository for tooling model dependency --- build.gradle.kts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 30cce82..0f29114 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,6 +5,15 @@ plugins { group = "org.openrewrite.recipe" description = "A rewrite module automating Java dependency management." +repositories { + maven { + url = uri("https://repo.gradle.org/gradle/libs-releases/") + content { + excludeVersionByRegex(".+", ".+", ".+-rc-?[0-9]*") + } + } +} + val rewriteVersion = rewriteRecipe.rewriteVersion.get() dependencies { implementation(platform("org.openrewrite:rewrite-bom:$rewriteVersion")) @@ -19,7 +28,7 @@ dependencies { implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-csv") implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310") - runtimeOnly("org.gradle:gradle-tooling-api:latest.release") + testRuntimeOnly("org.gradle:gradle-tooling-api:latest.release") compileOnly("org.projectlombok:lombok:latest.release") annotationProcessor("org.projectlombok:lombok:latest.release") testRuntimeOnly("ch.qos.logback:logback-classic:1.2.+")