janhoy commented on pull request #501: URL: https://github.com/apache/solr/pull/501#issuecomment-1010006435
Here is what I got, which works ```patch Index: gradle/validation/solr.config-file-sanity.gradle IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/gradle/validation/solr.config-file-sanity.gradle b/gradle/validation/solr.config-file-sanity.gradle --- a/gradle/validation/solr.config-file-sanity.gradle (revision 636ffd7daea7245d1b31932d549372f31b52cca5) +++ b/gradle/validation/solr.config-file-sanity.gradle (revision be6503578dbd8e49ac658464c3add8e28ec944c0) @@ -21,6 +21,8 @@ task validateConfigFileSanity() { doFirst { def matchVersion = rootProject.luceneMatchVersionProvider.get() + def (major, minor) = matchVersion.tokenize('.') + def matchVersionMajorMinor = "${major}.${minor}" // Verify solrconfig.xml files declare proper luceneMatchVersion. [ @@ -33,8 +35,8 @@ configFiles.each { file -> def content = file.getText("UTF-8") - if (!content.contains("<luceneMatchVersion>${matchVersion}<")) { - throw new GradleException("Configset does not refer to the correct luceneMatchVersion (${matchVersion}): ${file.absolutePath}") + if (!content.contains("<luceneMatchVersion>${matchVersionMajorMinor}<")) { + throw new GradleException("Configset does not refer to the correct luceneMatchVersion (${matchVersionMajorMinor}): ${file.absolutePath}") } } } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org