SOLR-14759: correct build logic.

This commit is contained in:
Dawid Weiss 2021-03-08 15:04:20 +01:00
parent 409bc37c13
commit b591daad38
1 changed files with 8 additions and 6 deletions

View File

@ -72,12 +72,14 @@ configure(rootProject) {
if (!skipSolr) { if (!skipSolr) {
dependsOn ':solr:documentation:assemble' dependsOn ':solr:documentation:assemble'
doFirst { if (skipLucene) {
// Sanity check doc. version vs. actual version. doFirst {
def actualLuceneVersion = getVersion("org.apache.lucene", "lucene-core").replace('.', '_') // Sanity check doc. version vs. actual version.
if (luceneDocVersion != actualLuceneVersion) { def actualLuceneVersion = getVersion("org.apache.lucene", "lucene-core").replace('.', '_')
throw new GradleException("Compiling documentation with Lucene version ${luceneDocVersion} which is " + if (luceneDocVersion != actualLuceneVersion) {
"different from actual dependency ${actualLuceneVersion}?") throw new GradleException("Compiling documentation with Lucene version ${luceneDocVersion} which is " +
"different from actual dependency ${actualLuceneVersion}?")
}
} }
} }
} }