Index: trunk/build.xml
===================================================================
--- trunk/build.xml	(revision 19145)
+++ trunk/build.xml	(revision 19146)
@@ -1002,7 +1002,12 @@
         <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-spi.jar" includes="org/openstreetmap/josm/spi/**/*.class"/>
         <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-tools.jar" includes="org/openstreetmap/josm/tools/**/*.class"/>
+        <path id="jar.files">
+            <fileset dir="${modules.dir}" includes="*.jar"/>
+        </path>
+        <pathconvert property="jar.files.string" refid="jar.files" pathsep=" "/>
         <exec executable="jdeps" dir="${modules.dir}">
             <arg line="-f 'java.*|org.xml.*|org.w3c.*|sun.*|com.*|oauth.*|org.apache.*|org.glassfish.*|org.openstreetmap.gui.*'"/>
-            <arg line="-dotoutput dots *.jar"/>
+            <arg line="-dotoutput dots" />
+            <arg line="${jar.files.string}" />
         </exec>
         <exec executable="dot" dir="${modules.dir}/dots">
@@ -1010,11 +1015,18 @@
         </exec>
         <move file="${modules.dir}/dots/summary.dot.png" tofile="${modules.dir}/josm-without-dependencies.png"/>
+
         <!-- Direct dependencies -->
         <copy todir="${modules.dir}" flatten="true">
             <fileset refid="runtime.fileset" />
         </copy>
+        <path id="jar-direct.files">
+            <fileset dir="${modules.dir}" includes="*.jar"/>
+        </path>
+        <pathconvert property="jar-direct.files.string" refid="jar-direct.files" pathsep=" "/>
         <exec executable="jdeps" dir="${modules.dir}">
             <arg line="-f 'java.*|org.xml.*|org.w3c.*|sun.*|com.sun.*|com.google.*|org.tukaani.*'"/>
-            <arg line="-dotoutput dots *.jar"/>
+            <arg line="-dotoutput dots"/>
+            <arg line="--multi-release 11"/>
+            <arg line="${jar-direct.files.string}" />
         </exec>
         <exec executable="dot" dir="${modules.dir}/dots">
@@ -1024,6 +1036,12 @@
         <!-- All dependencies -->
         <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/google-gdata.jar" includes="com/google/**/*.class"/>
+        <path id="jar-all.files">
+            <fileset dir="${modules.dir}" includes="*.jar"/>
+        </path>
+        <pathconvert property="jar-all.files.string" refid="jar-direct.files" pathsep=" "/>
         <exec executable="jdeps" dir="${modules.dir}">
-            <arg line="-dotoutput dots *.jar"/>
+            <arg line="-dotoutput dots"/>
+            <arg line="--multi-release 11"/>
+            <arg line="${jar-all.files.string}" />
         </exec>
         <exec executable="dot" dir="${modules.dir}/dots">
