Skip to content

Commit 63a5a5f

Browse files
committed
Remove inner index.json
1 parent 4bfa6d6 commit 63a5a5f

File tree

145 files changed

+9
-608
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+9
-608
lines changed

build.gradle

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -238,29 +238,16 @@ def testMetadataGeneration(String coordinate, String gradleCmd, File logsDir, St
238238
throw new GradleException("generateMetadata failed with exit code ${genExit} (see ${genLogFile})")
239239
}
240240

241-
// Verify output directory and index.json for the specific version
241+
// Verify output directory for the specific version
242242
if (!versionDir.isDirectory()) {
243243
throw new GradleException("Version directory not found: ${versionDir}")
244244
}
245-
def indexFile = new File(versionDir, "index.json")
246-
if (!indexFile.isFile()) {
247-
throw new GradleException("Missing index.json in ${versionDir}")
248-
}
249245

250-
def actualFiles = versionDir.listFiles()?.findAll { it.isFile() && it.name != 'index.json' }?.collect { it.name }?.sort() ?: []
246+
def actualFiles = versionDir.listFiles()?.findAll { it.isFile() }?.collect { it.name }?.sort() ?: []
251247
if (actualFiles.isEmpty()) {
252-
throw new GradleException("No metadata files found in ${versionDir} (besides index.json)")
248+
throw new GradleException("No metadata files found in ${versionDir}")
253249
}
254250

255-
def indexList = (List) new JsonSlurper().parse(indexFile)
256-
def sortedIndex = indexList.collect { it.toString() }.sort()
257-
if (!sortedIndex.equals(actualFiles)) {
258-
println("==== BEGIN index.json mismatch (${coordinate})")
259-
println("index.json: ${sortedIndex}")
260-
println("actual: ${actualFiles}")
261-
println("==== END index.json mismatch (${coordinate})")
262-
throw new GradleException("index.json does not match files in ${versionDir}")
263-
}
264251
println("Verified generated metadata for ${coordinate}: ${versionDir}")
265252
} finally {
266253
// Revert metadata directory changes

docs/CONTRIBUTING.md

Lines changed: 0 additions & 11 deletions

metadata/ch.qos.logback.contrib/logback-jackson/0.1.5/index.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

metadata/ch.qos.logback.contrib/logback-json-classic/0.1.5/index.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

metadata/ch.qos.logback/logback-classic/1.2.11/index.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

metadata/ch.qos.logback/logback-classic/1.4.1/index.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

metadata/ch.qos.logback/logback-classic/1.4.9/index.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

metadata/com.ecwid.consul/consul-api/1.4.5/index.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

metadata/com.fasterxml.jackson.core/jackson-databind/2.15.2/index.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

metadata/com.github.ben-manes.caffeine/caffeine/2.9.3/index.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)