Skip to end of metadata
Go to start of metadata

Plugin Information

View JDepend on the plugin site for more information.

Introduction

The JDepend Plugin is a plugin to generate JDepend reports for builds.

Quickstart

  1. Download the JDepend plugin from the Update Center
  2. Enable for a project by checking "Report JDepend" under the "Post-build actions" of your project
  3. Run a build
  4. View the build page once it has completed, and you should see a "JDepend" entry on the left sidebar.

Notes

The JDepend plugin does not currently report the health of a project, as the sheer number of metrics available in a JDepend report makes it very difficult to find any sort of reasonable estimate of what makes a healthy project. This is one of the times when human intuition might be best!

Bug reporting

Please direct all bugs to the issue tracker, making sure to mention "JDepend" somewhere in the heading or body. Bugs will continue to be looked at and fixed (features will not). For faster resolution, assign 'lewisham' to the bug.

Feature requests

Please direct all feature requests to the issue tracker, making sure to mention "JDepend" somewhere in the heading or body. Please note that active development on this plugin has ceased for the time being (the original itch has been scratched), so if you have new features, it will be quicker to try having a go yourself and make a commit to the SVN repository. The code should be fairly good.

Development history

Version 1.3.0 (Feb 22, 2018)

Version 1.2.4 (Nov 03, 2014)

  • Commit - Create JDepend temporary directory on agent instead of the master

Version 1.2.3 (Feb 14, 2011)

  • Remove unused code.

Version 1.2.2 (Sep 17, 2009)

Version 1.2.1 (Aug 29, 2009)

  • Added relative path to workspace as a possible configuration. No compatibility for Ant-style FileSets though, there should only be one JDepend report.

Version 1.2

Version 1.0 was developed by Chris Lewis (lewisham). Development of version 1.0 of this plugin was made possible by the National Science Foundation and released under the BSD license from the University of California, Santa Cruz. If you like it, remember to keep voting for the public funding of scientific and educational facilities!

12 Comments

  1. Hello,

    i think it could be interresting to change the health status or to make the build instable if JDepend detects some cyclic dependencies.

     Kind Regards

    1. Interesting idea! I'll keep it in mind, but I'm not working on this plugin for the foreseeable future (smile)

  2. Hello,

    Thanks for this plugin.

    2 remarks:

    - I was intersting to have the number of class of my project in the project hudson resume. Pehaps in graph representation with some other metrics (like checkstyle?)?

    - My project workspace has the lib needed in my project. So I have a big JDepend report. It whould be interresting to exlude some jar for the report.

    BokC

    1. The first remark is another one for the feature list if I ever get time ever again (unlikely, silly PhD in the way!). The second remark should be solved with 1.2, simply have ant or your build tool generate the JDepend report as you wish.

  3. Unknown User (ckutz)

    Does someone know how to specify a jdepend.properties file for the plugin (other than putting it into the home directory of the user running Hudson)?

    I tried to put it into one of the jars being analysed, but that didn't work.

    1. I'm not sure what a jdepend.properties file would do (something from JDepend itself, right?) but hopefully 1.2 will let you configure something to your liking.

  4. Is there anyway to show "pyramid.svg" and "jdepend.svg" on the project's homepage? It looks like that currently plugin just uses "jdepend.xml" to prepare reports.

    1. Unknown User (misterionkell@gmail.com)

      I am interesting this too.

      p.s. If Chris don`t planed to do this, i think that it can be done throw some other plugin just for insert images to project screen.

    2. Unknown User (misterionkell@gmail.com)

      I am interesting this too.

      p.s. If Chris don`t planed to do this, i think that it can be done throw some other plugin just for insert images to project screen.

    3. The method I've seen for displaying these graphics is to edit the project description string to include HTML to show the images directly. Something like this:

      <a href='ws/build/pdepend/overview-pyramid.svg'><img src="ws/build/pdepend/overview-pyramid.svg" type="image/svg+xml" width="300" /></a>
      <a href='ws/build/pdepend/dependencies.svg'><img src="ws/build/pdepend/dependencies.svg" type="image/svg+xml" width="300" /></a>
      <br />
      

      This worked for me.

      Hope that helps.

  5. Please check this bug http://issues.jenkins-ci.org/browse/JENKINS-7699

    Although it is primarily related to Hudson core, but occurs when JDepend plugin is used.

  6. Hello everyone

    I have a PHP project to deploy and throught Jdepend to collect PHP depend result 

    But my project is a romote deploy project , The jenkins server is different with test server

    Now I remote deploy project and scp result from test server to jenkins server. but it can not show result in jenkins CI.  

    How do I resolve this problem. Thx

    sorry  My English is poor.