From 7741340ef302e0e651e46cd6f4d80bc010f54e4b Mon Sep 17 00:00:00 2001 From: Peter Bagrij Date: Fri, 28 Jul 2023 08:38:26 +0200 Subject: [PATCH] FINERACT-1724 - Supress error messages related to invalid maven pom model version in old eclipse artifacts. --- buildSrc/build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index 6c502097672..bd62d838ab3 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -16,6 +16,9 @@ * specific language governing permissions and limitations * under the License. */ + +import static org.slf4j.LoggerFactory.* + plugins { id 'io.spring.dependency-management' version '1.1.0' id 'groovy' @@ -23,6 +26,12 @@ plugins { id 'groovy-gradle-plugin' } +//Suppress errors related to invalid org.eclipse.* maven poms versions. +def loggerFactory = getILoggerFactory() +def noOpMethod = getILoggerFactory().getClass().getDeclaredMethod("addNoOpLogger", String.class) +noOpMethod.setAccessible(true) +noOpMethod.invoke(loggerFactory, "io.spring.gradle.dependencymanagement.internal.maven.EffectiveModelBuilder") + apply from: "${projectDir}/src/main/groovy/org.apache.fineract.dependencies.gradle" description = 'Fineract Gradle Plugin'