File tree 1 file changed +8
-1
lines changed 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import org.elasticsearch.gradle.VersionProperties
27
27
import org.elasticsearch.gradle.info.BuildParams
28
28
import org.elasticsearch.gradle.plugin.PluginBuildPlugin
29
29
import org.elasticsearch.gradle.tar.SymbolicLinkPreservingTar
30
-
30
+ import groovy.io.FileType
31
31
import java.nio.file.Files
32
32
import java.nio.file.Path
33
33
@@ -245,6 +245,13 @@ subprojects {
245
245
project. delete(archiveExtractionDir)
246
246
archiveExtractionDir. mkdirs()
247
247
}
248
+ // common sanity checks on extracted archive directly as part of checkExtraction
249
+ doLast {
250
+ // check no plain class files are packaged
251
+ archiveExtractionDir. eachFileRecurse (FileType . FILES ) { file ->
252
+ assert file. name. endsWith(" .class" ) == false
253
+ }
254
+ }
248
255
}
249
256
tasks. named(' check' ). configure { dependsOn checkExtraction }
250
257
if (project. name. contains(' tar' )) {
You can’t perform that action at this time.
0 commit comments