janvolck / gradle-plantuml-plugin

A gradle plugin that generates UML diagrams based on the PlantUML syntax
Apache License 2.0
23 stars 1 forks source link

Java 7 #3

Open stephanenicolas opened 9 years ago

stephanenicolas commented 9 years ago

Hi,

do you mind to provide your binaries using java 7 ? I received a non supported magic version 52 when using the plugin, but if I recompile a version locally with java 7 it works fine.

Moreover, the gradle plugin doesn't really support doc-files. Using gradle 2.2, I must do :

buildscript {
  repositories {
    mavenLocal()
    mavenCentral()
  }
  dependencies {
    classpath 'be.jlr-home.gradle:plantumlPlugin:0.1.1.SNAPSHOT' //to get my java 7 snapshot
  }
}

apply plugin: 'java'
apply plugin: 'plantuml'

sourceCompatibility = 1.7
targetCompatibility = 1.7

javadoc {
  //is added automatically : options.addStringOption('sourcepath', project.plantuml.sourcePath)
  //doesn't work: options.docFilesSubDirs = true
  //do the following intead
  doLast {
    copy {
      from "src/main/java"
      into "$buildDir/docs/javadoc"
      includes = ['**/doc-files/']
    }
  }
}
stephanenicolas commented 9 years ago

Oh, and you should definitely add a sample. Even publish the javadoc somewhere using : https://github.com/ajoberstar/gradle-git/wiki/org.ajoberstar.github-pages

bioinfornatics commented 9 years ago

If you get

FAILURE: Build failed with an exception.
...
> be/jlrhome/gradle/plantuml/PlantumlPlugin : Unsupported major.minor version 52.0

check that

$ java -version

is equivalent to

$ echo $JAVA_HOME