From 81ce46673b9e0fd6d4313fd4b0d83bbd264e2a9c Mon Sep 17 00:00:00 2001 From: "Piotr P. Karwasz" Date: Thu, 19 Dec 2024 14:19:41 +0100 Subject: [PATCH] Use `repository.apache.org` only for snapshots --- build.gradle.kts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index a9094ac..ed6dfd3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,8 +12,8 @@ recipeDependencies { parserClasspath("org.slf4j:slf4j-api:2.+") parserClasspath("log4j:log4j:1.+") - parserClasspath("org.apache.logging.log4j:log4j-core:2.+") - parserClasspath("org.apache.logging.log4j:log4j-api:2.+") + parserClasspath("org.apache.logging.log4j:log4j-core:2.24.3") + parserClasspath("org.apache.logging.log4j:log4j-api:2.24.3") parserClasspath("commons-logging:commons-logging:1.+") parserClasspath("ch.qos.logback:logback-classic:1.3.+") parserClasspath("org.projectlombok:lombok:1.18.+") @@ -22,7 +22,12 @@ recipeDependencies { repositories { mavenCentral() mavenLocal() - maven("https://repository.apache.org/snapshots") + maven { + setUrl("https://repository.apache.org/snapshots") + mavenContent { + snapshotsOnly() + } + } } dependencies {