Author: jleroux
Date: Mon Apr 15 17:04:34 2019
New Revision: 1857599
URL:
http://svn.apache.org/viewvc?rev=1857599&view=revLog:
Improved: Update build.gradle to the latest dependencies
(OFBIZ-10213)
At
https://github.com/ben-manes/gradle-versions-plugin Ben Manes suggests to
have a look at few Gradle plugins which depends on his own plugin.
I checked and there is one which is interesting:
https://github.com/patrikerdes/gradle-use-latest-versions-plugin.
It does much of the work you would have to do manually when updating libs.
Beware though that this is only a help. If you use it without check you will
need to check things by yourself (can be as tedious as not using this plugin)
Modified:
ofbiz/ofbiz-framework/trunk/build.gradle
Modified: ofbiz/ofbiz-framework/trunk/build.gradle
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/build.gradle?rev=1857599&r1=1857598&r2=1857599&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/build.gradle (original)
+++ ofbiz/ofbiz-framework/trunk/build.gradle Mon Apr 15 17:04:34 2019
@@ -32,6 +32,8 @@ plugins {
id 'at.bxm.svntools' version '2.2.1'
id 'org.asciidoctor.convert' version '2.0.0'
id 'org.owasp.dependencycheck' version '3.0.2' apply false
+ id 'se.patrikerdes.use-latest-versions' version '0.2.9' apply false
+ id 'com.github.ben-manes.versions' version '0.21.0' apply false
}
/* OWASP plugin
@@ -46,6 +48,26 @@ if (project.hasProperty('enableOwasp'))
apply plugin: 'org.owasp.dependencycheck'
}
+/* DependencyUpdates plugin
+ *
+ * If project property "enableDependencyUpdates" is flagged then
+ * gradle will download required dependencies and
+ * activate Gradle's DependencyUpdates plugin and its related tasks.
+ *
+ * Syntax: gradlew -PenableDependencyUpdates dependencyUpdates -Drevision=release
+ *
+ * You may want to use the use-latest-versions plugin to help you in your work
+ * Syntax:
+ * Check only: gradlew -PenableDependencyUpdates useLatestVersions && gradlew -PenableDependencyUpdates useLatestVersionsCheck
+ * Automated update: gradlew -PenableDependencyUpdates useLatestVersions
+ * Beware that this is only a help.
+ * If you use it without check you will need to check things by yourself (can be as tedious as not using this plugin)
+ */
+if (project.hasProperty('enableDependencyUpdates')) {
+ apply plugin: 'com.github.ben-manes.versions'
+ apply plugin: 'se.patrikerdes.use-latest-versions'
+}
+
apply from: 'common.gradle'
// global properties