Use -D or -P to set solrGuideVersion.

This commit is contained in:
Dawid Weiss 2020-09-02 12:57:38 +02:00
parent 594d676a95
commit 01e97dbd16
1 changed files with 1 additions and 3 deletions

View File

@ -125,9 +125,7 @@ ext {
solrDocsVersion = "${version}".replaceAll(/^(\d+\.\d+)(|\..*)$/, "\$1")
solrDocsVersionPath = "${solrDocsVersion}".replaceAll(/^(\d+)\.(\d+)$/, "\$1_\$2_0")
if (!project.hasProperty("solrGuideVersion")) {
solrGuideVersion = "${solrDocsVersion}-DRAFT"
}
solrGuideVersion = propertyOrDefault("solrGuideVersion", "${solrDocsVersion}-DRAFT")
solrRootPath = '../../../../solr/'
solrGuideDraftStatus = solrGuideVersion.matches(/^\d+\.\d+(|\.\d+)$/) ? "" : "DRAFT"