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) {
dependsOn ':solr:documentation:assemble'
doFirst {
// Sanity check doc. version vs. actual version.
def actualLuceneVersion = getVersion("org.apache.lucene", "lucene-core").replace('.', '_')
if (luceneDocVersion != actualLuceneVersion) {
throw new GradleException("Compiling documentation with Lucene version ${luceneDocVersion} which is " +
"different from actual dependency ${actualLuceneVersion}?")
if (skipLucene) {
doFirst {
// Sanity check doc. version vs. actual version.
def actualLuceneVersion = getVersion("org.apache.lucene", "lucene-core").replace('.', '_')
if (luceneDocVersion != actualLuceneVersion) {
throw new GradleException("Compiling documentation with Lucene version ${luceneDocVersion} which is " +
"different from actual dependency ${actualLuceneVersion}?")
}
}
}
}