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) {
|
||||
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}?")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue