From 7236617f71a2090aa1aebac37e2b7b51330cdc73 Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Wed, 12 Oct 2016 14:48:17 +0200 Subject: HONEYCOMB-157 Extract groovy scripts from poms And put all of them into a dedicated module Change-Id: Id04c66806a89af68d821a43ef92f0a59220e04e9 Signed-off-by: Maros Marsalek --- common/honeycomb-parent/pom.xml | 40 ++++++++++++++-------------------------- 1 file changed, 14 insertions(+), 26 deletions(-) (limited to 'common/honeycomb-parent') diff --git a/common/honeycomb-parent/pom.xml b/common/honeycomb-parent/pom.xml index 6660360fd..5843d4144 100644 --- a/common/honeycomb-parent/pom.xml +++ b/common/honeycomb-parent/pom.xml @@ -77,12 +77,13 @@ 1.5.3 1.3.1 + + 2.0 - -= ${project.artifactId} + 2.4.7 + 2.9.2-01 + 2.4.3-01 -Overview of ${project.artifactId} - https://nexus.fd.io/content/sites/site io/fd/honeycomb @@ -458,18 +459,7 @@ Overview of ${project.artifactId} - import java.nio.file.Files - import java.nio.file.Paths - - log.info "Checking asciidoc/Readme.adoc" - def asciidoc = Paths.get(project.getBasedir().toString(), "asciidoc") - def readme = Paths.get(asciidoc.toString(), "Readme.adoc") - if (!Files.exists(readme)) { - log.info "Generating ${readme}" - Files.createDirectories(asciidoc) - Files.createFile(readme) - readme.toFile().text = properties.getOrDefault("readme.default", "") - } + io.fd.honeycomb.common.scripts.ReadmeGenerator.checkReadme(project, properties, log) @@ -483,20 +473,18 @@ Overview of ${project.artifactId} - import java.nio.file.Files - import java.nio.file.Paths - - def index = Paths.get(project.build.directory.toString(), "site", "index.html") - if (Files.exists(index)) { - log.info "Fixing links in generated site" - def html = index.toFile().text - log.info "Fixing asciidoc Readme link" - index.toFile().text = html.replaceAll("[./]*Readme\\.html", "Readme.html") - } + io.fd.honeycomb.common.scripts.ReadmeGenerator.fixSite(project, properties, log) + + + io.fd.honeycomb.common + common-scripts + 1.16.12-SNAPSHOT + + -- cgit 1.2.3-korg