Skip to content

Commit 76a9833

Browse files
committed
Generate index.html from dependency-report command.
1 parent 9fa6613 commit 76a9833

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/DependencyReport.groovy

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ target(dependencyReport:"Produces a dependency report for the current Grails app
4545
def conf = args.trim() ?: 'build, compile, provided, runtime, test'
4646
ivy.report(organisation: 'org.grails.internal', module: grailsAppName, todir: targetDir, conf: conf)
4747

48-
grailsConsole.addStatus "Dependency report output to [$targetDir]"
48+
// Copy the runtime dependency report to 'index.html' for easy opening.
49+
ant.copy file: "${targetDir}/org.grails.internal-${grailsAppName}-runtime.html",
50+
tofile: "${targetDir}/index.html"
51+
52+
grailsConsole.addStatus "Dependency report output to [${targetDir}/index.html]"
4953
}
5054

5155
setDefaultTarget(dependencyReport)

0 commit comments

Comments
 (0)