mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
[DOCS] temporarily comment verifyDocsLuceneVersion in qa:verify-version-constants
Docs have temporarily been removed. This commit can be reverted if the OSS docs are restored. Signed-off-by: Peter Nied <petern@amazon.com>
This commit is contained in:
parent
f7d66c6718
commit
bc82e50c5d
@ -47,28 +47,28 @@ for (Version bwcVersion : BuildParams.bwcVersions.indexCompatible) {
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register("verifyDocsLuceneVersion") {
|
||||
doFirst {
|
||||
File docsVersionsFile = rootProject.file('docs/Versions.asciidoc')
|
||||
List<String> versionLines = docsVersionsFile.readLines('UTF-8')
|
||||
String docsLuceneVersion = null
|
||||
for (String line : versionLines) {
|
||||
if (line.startsWith(':lucene_version:')) {
|
||||
docsLuceneVersion = line.split()[1]
|
||||
}
|
||||
}
|
||||
if (docsLuceneVersion == null) {
|
||||
throw new GradleException('Could not find lucene version in docs version file')
|
||||
}
|
||||
String expectedLuceneVersion = VersionProperties.lucene
|
||||
// remove potential -snapshot-{gitrev} suffix
|
||||
expectedLuceneVersion -= ~/-snapshot-[0-9a-f]+$/
|
||||
if (docsLuceneVersion != expectedLuceneVersion) {
|
||||
throw new GradleException("Lucene version in docs [${docsLuceneVersion}] does not match version.properties [${expectedLuceneVersion}]")
|
||||
}
|
||||
}
|
||||
}
|
||||
//tasks.register("verifyDocsLuceneVersion") {
|
||||
// doFirst {
|
||||
// File docsVersionsFile = rootProject.file('docs/Versions.asciidoc')
|
||||
// List<String> versionLines = docsVersionsFile.readLines('UTF-8')
|
||||
// String docsLuceneVersion = null
|
||||
// for (String line : versionLines) {
|
||||
// if (line.startsWith(':lucene_version:')) {
|
||||
// docsLuceneVersion = line.split()[1]
|
||||
// }
|
||||
// }
|
||||
// if (docsLuceneVersion == null) {
|
||||
// throw new GradleException('Could not find lucene version in docs version file')
|
||||
// }
|
||||
// String expectedLuceneVersion = VersionProperties.lucene
|
||||
// // remove potential -snapshot-{gitrev} suffix
|
||||
// expectedLuceneVersion -= ~/-snapshot-[0-9a-f]+$/
|
||||
// if (docsLuceneVersion != expectedLuceneVersion) {
|
||||
// throw new GradleException("Lucene version in docs [${docsLuceneVersion}] does not match version.properties [${expectedLuceneVersion}]")
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
tasks.named("check").configure {
|
||||
dependsOn verifyDocsLuceneVersion
|
||||
}
|
||||
//tasks.named("check").configure {
|
||||
// dependsOn verifyDocsLuceneVersion
|
||||
//}
|
||||
|
Loading…
x
Reference in New Issue
Block a user