Over a million developers have joined DZone.

Uptodate Gradle Plugin Deployed

· Java Zone

Learn more about how the Java language, tools and frameworks have been the foundation of countless enterprise systems, brought to you in partnership with Salesforce.

Sorry for not having written for quite some time now but I was really busy with my second book that should be published in the upcoming weeks. Anyway I'm really proud to anounce that during one of our R&D days at the company that I'm working for - 4Finance we've managed to create a plugin for gradle that checks in maven central if there are any new versions of your dependencies. Check it out here in the 4Finance organization repository on Github - https://github.com/4finance/uptodate-gradle-plugin.

Why?


Beacuse we could! We were annoyed by the fact that we didn't have any automated way of checking if there are any newer versions of our dependencies. R&D came and we could spend some time on learning how to create a gradle plugin and that's how we ended up with that tool.

How does it work?

We check your project's dependencies.
We're calling Maven Central's Solr search
We parse the queries and show you if there are any newer versions

I want to use it!

Ok! Just follow these steps (extract from Github):

Step 1: Add dependency to jcenter and to the plugin

buildscript {
    repositories {  
          jcenter()
    }
    dependencies {
        classpath("com.ofg:uptodate-gradle-plugin:0.0.2")
    }
}

Step 2: Add the plugin to your build (gradle.build)

apply plugin: 'uptodate'
And now you can run the plugin with
gradle uptodate

Gimme an example!

Taken from Github:

You run the plugin:
gradle uptodate
And you get for example this:
New versions available in maven central:
'com.fasterxml.jackson.core:jackson-databind:2.4.0-rc3'
'org.jacoco:org.jacoco.agent:0.7.1.201405082137'
:build

Future plans?

There is still quite a few things that we could improve and customize and for sure we'll try to deploy new versions as often as possible.

Discover how the Force.com Web Services Connector (WSC) is a code-generation tool and runtime library for use with Force.com Web services, brought to you in partnership with Salesforce.

Topics:

Published at DZone with permission of Marcin Grzejszczak, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}