title: How to generate javadoc with puml diagrams?
body: <p>I am trying to generate my Javadoc with my sequence diagrams integrated using Gradle 8.0(7.2).</p>
  <h2>my build.gradle :</h2>
  <pre><code>apply plugin: &quot;java&quot;
  apply plugin: &quot;application&quot;
  
  
  mainClassName = 'com.twu.calculator.CalculatorApp'
  group = 'calculator'
  version = '1.0-SNAPSHOT'
  description = &quot;Calculator Console App&quot;
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      testImplementation 'junit:junit:4.12'
      testImplementation 'com.github.stefanbirkner:system-rules:1.16.1'
  }
  
  task renderPlantUml(type: RenderPlantUmlTask) {
  
  }
  
  javadoc {
      source = sourceSets.main.allJava
      options.overview = &quot;src/main/javadoc/overview.html&quot; // relative to source root
      options.addStringOption(&quot;sourcepath&quot;,&quot;${projectDir}/src/main/javadoc&quot;)
  }
  
  javadoc.dependsOn renderPlantUml
  
  // To execute the app
  task runApp (type: JavaExec, dependsOn: classes){
      /* Can pass all the properties: */
      systemProperties System.getProperties()
      standardInput = System.in
      description = &quot;Running the Calculator&quot;
      main = &quot;com.twu.calculator.CalculatorApp&quot;
      classpath = sourceSets.main.runtimeClasspath
  }
  
  </code></pre>
  <p>Right now the expected output is only accomplished on the second I run <code>gradle javadoc</code>being the sequence of steps the following one :</p>
  <pre><code>gradle renderPlantUml
  gradle javadoc
  
  </code></pre>
  <p>This results in overview.html not finding the diagrams as in the picture bellow .</p>
  <p><a href="https://i.stack.imgur.com/tNNv8.png" rel="nofollow noreferrer">overview.html</a></p>
  <p>Then I need to repeat the above commands so the expected output is the right one . See the picture below for reference .</p>
  <p><a href="https://i.stack.imgur.com/hF5fq.png" rel="nofollow noreferrer">Expected output</a></p>
  <p>What do I need to change in my <code>build.gradle?</code></p>