Skip to content

Commit edf77b7

Browse files
committed
Code cleanup
1 parent 89f8e23 commit edf77b7

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

tests/tck-build-logic/src/main/groovy/org.graalvm.internal.tck-harness.gradle

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -301,44 +301,6 @@ Provider<Task> generateInfrastructureChangedCoordinatesMatrix = tasks.register("
301301
}
302302
}
303303

304-
tasks.register("generateChangedJsonFiles", DefaultTask) { task ->
305-
task.group = METADATA_GROUP
306-
task.description = "Returns the list of changed JSON files in the repository between two commits"
307-
308-
doFirst {
309-
if (!project.hasProperty("baseCommit") || !project.hasProperty("newCommit")) {
310-
throw new GradleException("Missing 'baseCommit' or 'newCommit'! Rerun Gradle with '-PbaseCommit=<commit> -PnewCommit=<commit>'")
311-
}
312-
313-
def base = project.property("baseCommit")
314-
def head = project.property("newCommit")
315-
316-
// Run git diff to get changed files
317-
def stdout = new ByteArrayOutputStream()
318-
exec {
319-
commandLine "git", "diff", "--name-only", base, head
320-
standardOutput = stdout
321-
}
322-
323-
def changedFiles = stdout.toString().readLines()
324-
325-
// Filter only the JSON files we care about
326-
def jsonFiles = changedFiles.findAll {
327-
it == "metadata/index.json" ||
328-
it ==~ /metadata\/[^\/]+\/[^\/]+\/index\.json/ ||
329-
it.startsWith("tests/src/") && it.endsWith("index.json") ||
330-
it == "library-and-framework-list.json"
331-
}
332-
333-
println "Found ${jsonFiles.size()} changed JSON file(s):"
334-
jsonFiles.each { println " - $it" }
335-
336-
// Write outputs for GitHub Actions
337-
writeGithubOutput("changed_files", JsonOutput.toJson(jsonFiles))
338-
writeGithubOutput("changed", (jsonFiles.size() > 0).toString())
339-
}
340-
}
341-
342304
// new library version updaters tasks
343305
tasks.register("fetchExistingLibrariesWithNewerVersions", FetchExistingLibrariesWithNewerVersionsTask.class) { task ->
344306
task.setGroup(METADATA_GROUP)

0 commit comments

Comments
 (0)