Currently Ballerina Gradle plugin does not have support to pass additional arguments to the underlying Ballerina CLI except for specific cases (like GraalVM test). Hence, currently there is no way to test Ballerina dead-code-elimation for library package (expect for standard libraries which uses an intermediate pack). And we could not automate this using Github workflows without this support.
Suggested Improvement
Provide support for passing additional parameters to the Ballerina CLI using Ballerina Gradle plugin.
As a minimal requirement, we need to be able to pass the argument related to dead-code-elimation using the Ballerina Gradle plugin.
Current Limitation
Currently Ballerina Gradle plugin does not have support to pass additional arguments to the underlying Ballerina CLI except for specific cases (like GraalVM test). Hence, currently there is no way to test Ballerina dead-code-elimation for library package (expect for standard libraries which uses an intermediate pack). And we could not automate this using Github workflows without this support.
Suggested Improvement
Provide support for passing additional parameters to the Ballerina CLI using Ballerina Gradle plugin.
As a minimal requirement, we need to be able to pass the argument related to dead-code-elimation using the Ballerina Gradle plugin.
Version
v3.0.0