You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by cp...@apache.org on 2022/10/26 16:34:28 UTC

[solr] branch branch_9x updated: Revert "NO JIRA: start validateRefGuideFiles gradle task (#1068)"

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

cpoerschke pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new 67938f06c7e Revert "NO JIRA: start validateRefGuideFiles gradle task (#1068)"
67938f06c7e is described below

commit 67938f06c7e7cca9506ad9a6659bd61bddb30349
Author: Christine Poerschke <cp...@apache.org>
AuthorDate: Wed Oct 26 17:31:20 2022 +0100

    Revert "NO JIRA: start validateRefGuideFiles gradle task (#1068)"
    
    This reverts commit 2ce329027aa6d0c87f187c19c22261cfd2734055.
---
 build.gradle                                  |  1 -
 gradle/validation/precommit.gradle            |  1 -
 gradle/validation/solr.ref-guide-files.gradle | 31 ---------------------------
 3 files changed, 33 deletions(-)

diff --git a/build.gradle b/build.gradle
index 3ef528c27a4..09a463087c4 100644
--- a/build.gradle
+++ b/build.gradle
@@ -160,7 +160,6 @@ apply from: file('gradle/validation/validate-log-calls.gradle')
 apply from: file('gradle/validation/check-broken-links.gradle')
 
 apply from: file('gradle/validation/solr.config-file-sanity.gradle')
-apply from: file('gradle/validation/solr.ref-guide-files.gradle')
 
 apply from: file('gradle/validation/spotless.gradle')
 
diff --git a/gradle/validation/precommit.gradle b/gradle/validation/precommit.gradle
index d01f77989c7..8c2fe6cfd98 100644
--- a/gradle/validation/precommit.gradle
+++ b/gradle/validation/precommit.gradle
@@ -29,7 +29,6 @@ configure(rootProject) {
 
     // Solr validation tasks.
     dependsOn ":solr:validateConfigFileSanity"
-    dependsOn ":solr:validateRefGuideFiles"
 
     // Attach all these tasks from all projects that have them.
     // This uses lazy collections as they may not yet be defined.
diff --git a/gradle/validation/solr.ref-guide-files.gradle b/gradle/validation/solr.ref-guide-files.gradle
deleted file mode 100644
index c973606f202..00000000000
--- a/gradle/validation/solr.ref-guide-files.gradle
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-configure(project(":solr")) {
-  task validateRefGuideFiles() {
-    doFirst {
-      def (major, minor, patch) = rootProject.luceneBaseVersionProvider.get().tokenize('.')
-      def linkVersion = "${major}_${minor}_${patch}"
-
-      def antora_yml = file("solr-ref-guide/antora.yml")
-      def content = antora_yml.getText("UTF-8")
-      if (!content.contains("lucene-javadocs: 'https://lucene.apache.org/core/${linkVersion}'")) {
-        throw new GradleException("${antora_yml.absolutePath} lucene-javadocs does not link to the correct lucene version (${linkVersion})")
-      }
-    }
-  }
-}