mirror of https://github.com/apache/lucene.git
SOLR-14759: correct build logic.
This commit is contained in:
parent
409bc37c13
commit
b591daad38
|
@ -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}?")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue