htmlDependencyReport generates blank page if slash is used in project path

Hi all, I’ve found that when namespace (slash separator) is using instead of subproject (colon separator) it’s impossible to generate an appropriate HTML dependency report.

  • Gradle version: 2.2.1 * Steps to reproduce:

Create empty project with the basic code:

settings.gradle

include 'namespace/project1'
include 'namespace/project2'

build.gradle

allprojects {
    apply plugin: 'java'
    apply plugin: 'project-report'
    dependencies {
        compile 'junit:junit:4.12'
    }
}

Run build:

$ gradle projectReport
:dependencyReport
:htmlDependencyReport
:propertyReport
:taskReport
:projectReport
:namespace/project1:dependencyReport
:namespace/project1:htmlDependencyReport
:namespace/project1:propertyReport
:namespace/project1:taskReport
:namespace/project1:projectReport
:namespace/project2:dependencyReport
:namespace/project2:htmlDependencyReport
:namespace/project2:propertyReport
:namespace/project2:taskReport
:namespace/project2:projectReport
  BUILD SUCCESSFUL
  Total time: 7.519 secs
  • Actual Results: blank dependency html page (only header is present) * Expected Results: dependency tree in the html report

Hey Slava, sorry for the late reply. I raised GRADLE-3251 for this issue. It seems the html dependency report doesn’t escape “/” as needed. Maybe you’re interested to help us fixing this issue and work on a pull request? If you need further guidance with the code-base that’s fine.

cheers, René