gradle-jpi-plugin help needed

6 views
Skip to first unread message

Craig Rodrigues

unread,
May 16, 2016, 4:17:36 PM5/16/16
to Daniel Spilker, Andrew Bayer, Jenkins Developers
Hi,

I am learning the gradle-jpi-plugin, and need some help.
I introduced a build.gradle file for the build-flow-dsl plugin.

If I do:

git clone -b gradle https://github.com/jenkinsci/build-flow-plugin
cd build-flow-plugin
./gradlew build

then the plugin successfully builds, but the tests fail with:

java.io.IOException: Could not resolve jgrapht-jdk1.5:0.7.3 in ....::/Users/crodrigues/.gradle/caches/modules-2/files-2.1/org.jgrapht/jgrapht-jdk1.5/0.7.3/54dc2b1b17b003b6fd62211946cb49acdc7d0364/jgrapht-jdk1.5-0.7.3.jar:...


jgrapht-jdk1.5-0.7.3.jar  exists on my system in the gradle cache in the path mentioned above, and it is a valid jar file.

I tried comparing the.hpl generated with mvn and gradle (see attahed files), and I noticed that the
file generated with gradle looks different from the one generated with mvn.
Specifically, the gradle version uses Plugin-Dependencies: while the mvn version does not.  Also, the mvn version adds jgraph-jdk1.5-0.7.3.jar to Libraries: while the gradle version does not.

How can I fix this? 
Thanks.

--
Craig
the.hpl_generated_with_mvn.txt
the.hpl_generated_with_gradle.txt
Reply all
Reply to author
Forward
0 new messages