diff --git a/gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/reporter/HtmlReporter.kt b/gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/reporter/HtmlReporter.kt index d99a32af..0d3703ba 100644 --- a/gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/reporter/HtmlReporter.kt +++ b/gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/reporter/HtmlReporter.kt @@ -17,10 +17,21 @@ class HtmlReporter( override val gradleReleaseChannel: String, ) : AbstractReporter(project, revision, gradleReleaseChannel) { override fun write(printStream: OutputStream, result: Result) { + printStream.println("") + printStream.println("") writeHeader(printStream) + writeBody(printStream, result) + printStream.println("") + } + + private fun writeHeader(printStream: OutputStream) { + printStream.println(header.trimMargin()) + } + private fun writeBody(printStream: OutputStream, result: Result) { + printStream.println("
") if (result.count == 0) { - printStream.println("No dependencies found.
") + printStream.println("No dependencies found.
") } else { writeUpToDate(printStream, result) writeExceedLatestFound(printStream, result) @@ -28,18 +39,14 @@ class HtmlReporter( writeUndeclared(printStream, result) writeUnresolved(printStream, result) } - writeGradleUpdates(printStream, result) - } - - private fun writeHeader(printStream: OutputStream) { - printStream.println(header.trimMargin()) + printStream.println("") } private fun writeUpToDate(printStream: OutputStream, result: Result) { val versions = result.current.dependencies if (versions.isNotEmpty()) { - printStream.println("The following dependencies are using the latest $revision version:
") printStream.println("