Apache Solr open-source search software
Revert "NO JIRA: start validateRefGuideFiles gradle task (#1068)"
Christine Poerschkea83bbe5c8de5
diff --git a/build.gradle b/build.gradleindex 9eae45da5b0..1e6a6fab875 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.gradleindex 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.gradledeleted file mode 100644index 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})")- }- }- }-}