From 18e5a410d2c082a01587cce6b50e058b87d131b2 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Tue, 17 Dec 2019 13:15:23 +0100 Subject: [PATCH] Improve dependency update rules Fixes https://github.com/JabRef/jabref/issues/5756, Fixes https://github.com/JabRef/jabref/issues/5728 and fixes https://github.com/JabRef/jabref/issues/5703 --- build.gradle | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index 1ed7c9b89ba..2a6f8f657f7 100644 --- a/build.gradle +++ b/build.gradle @@ -249,20 +249,29 @@ dependencyUpdates.resolutionStrategy = { selection.reject('Release candidate') } } - rules.withModule("com.github.tomtung:latex2unicode_2.12") { ComponentSelection selection -> - if (selection.candidate.version ==~ /0.2.*/) { - // Reject version higher than 2.0.2. see https://github.com/JabRef/jabref/pull/3781 - selection.reject("Cannot be updated to 0.2.4 until JabRef is prepared for it") + rules.withModule("org.python:jython-standalone") { ComponentSelection selection -> + if (selection.candidate.version ==~ /2.7.2b2/) { + selection.reject('Release candidate') + } + } + rules.withModule("de.jensd:fontawesomefx-materialdesignfont") { ComponentSelection selection -> + if (selection.candidate.version ==~ /2.0.26-9.1.2/) { + selection.reject('1.7.22-11 is actually newer (strange version system)') + } + } + rules.withModule("org.javamodularity.moduleplugin:org.javamodularity.moduleplugin.gradle.plugin") { ComponentSelection selection -> + if (selection.candidate.version ==~ /1.6.0/) { + selection.reject("Does not work due to bug, see https://github.com/JabRef/jabref/pull/5270") } } - rules.withModule("com.github.johnrengelman.shadow:com.github.johnrengelman.shadow.gradle.plugin") { ComponentSelection selection -> - if (selection.candidate.version ==~ /4.*/) { - selection.reject("Version 4.X breaks the release process.") + rules.withModule("com.microsoft.azure:applicationinsights-core") { ComponentSelection selection -> + if (selection.candidate.version ==~ /2.5.1/) { + selection.reject("Does not work due to bug, see https://github.com/JabRef/jabref/pull/5596") } } - rules.withModule("com.google.errorprone:error_prone_core") { ComponentSelection selection -> - if (selection.candidate.version ==~ /2.3.3/) { - selection.reject("Does not work due to bug https://github.com/google/error-prone/issues/1240") + rules.withModule("com.microsoft.azure:applicationinsights-logging-log4j2") { ComponentSelection selection -> + if (selection.candidate.version ==~ /2.5.1/) { + selection.reject("Does not work due to bug, see https://github.com/JabRef/jabref/pull/5596") } } }