Skip to content

Commit

Permalink
Improve dependency update rules
Browse files Browse the repository at this point in the history
Fixes #5756, Fixes #5728 and fixes #5703
  • Loading branch information
tobiasdiez authored Dec 17, 2019
1 parent 702b533 commit 18e5a41
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}
Expand Down

0 comments on commit 18e5a41

Please sign in to comment.