You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2021/03/08 14:04:32 UTC

[lucene-solr] branch master updated: SOLR-14759: correct build logic.

This is an automated email from the ASF dual-hosted git repository.

dweiss pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new b591daa  SOLR-14759: correct build logic.
b591daa is described below

commit b591daad38f729825434b26a0ac390a7b3d3d9c2
Author: Dawid Weiss <da...@carrotsearch.com>
AuthorDate: Mon Mar 8 15:04:20 2021 +0100

    SOLR-14759: correct build logic.
---
 gradle/documentation/documentation.gradle | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/gradle/documentation/documentation.gradle b/gradle/documentation/documentation.gradle
index 4e7b970..9ed49de 100644
--- a/gradle/documentation/documentation.gradle
+++ b/gradle/documentation/documentation.gradle
@@ -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}?")
+          }
         }
       }
     }