Expose reporting as a Gradle task
Keep the publishing step visible in the build so it can be invoked from local or CI workflows.
A Kotlin Gradle plugin that converts JUnit reports and submits test results to Xray from a Gradle task.
How can a Gradle build publish automated test results to Xray as part of a repeatable workflow?
Keep the publishing step visible in the build so it can be invoked from local or CI workflows.
Keep report translation independent from the client that submits the results.
Treat report conversion and result delivery as separate concerns. The converter can be exercised with report files independently of the external API.