This is a test to ensure we do not run into a regression like we did in https://github.com/elastic/elasticsearch/issues/59031
This commit is contained in:
parent
b27de36b5d
commit
6a7ac3830a
|
@ -27,7 +27,7 @@ import org.elasticsearch.gradle.VersionProperties
|
||||||
import org.elasticsearch.gradle.info.BuildParams
|
import org.elasticsearch.gradle.info.BuildParams
|
||||||
import org.elasticsearch.gradle.plugin.PluginBuildPlugin
|
import org.elasticsearch.gradle.plugin.PluginBuildPlugin
|
||||||
import org.elasticsearch.gradle.tar.SymbolicLinkPreservingTar
|
import org.elasticsearch.gradle.tar.SymbolicLinkPreservingTar
|
||||||
|
import groovy.io.FileType
|
||||||
import java.nio.file.Files
|
import java.nio.file.Files
|
||||||
import java.nio.file.Path
|
import java.nio.file.Path
|
||||||
|
|
||||||
|
@ -245,6 +245,13 @@ subprojects {
|
||||||
project.delete(archiveExtractionDir)
|
project.delete(archiveExtractionDir)
|
||||||
archiveExtractionDir.mkdirs()
|
archiveExtractionDir.mkdirs()
|
||||||
}
|
}
|
||||||
|
// common sanity checks on extracted archive directly as part of checkExtraction
|
||||||
|
doLast {
|
||||||
|
// check no plain class files are packaged
|
||||||
|
archiveExtractionDir.eachFileRecurse (FileType.FILES) { file ->
|
||||||
|
assert file.name.endsWith(".class") == false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
tasks.named('check').configure { dependsOn checkExtraction }
|
tasks.named('check').configure { dependsOn checkExtraction }
|
||||||
if (project.name.contains('tar')) {
|
if (project.name.contains('tar')) {
|
||||||
|
|
Loading…
Reference in New Issue