ballerina-platform / ballerina-library

The Ballerina Library
https://ballerina.io/learn/api-docs/ballerina/
Apache License 2.0
136 stars 64 forks source link

Improve Ballerina Gradle plugin to support passing additional arguments to the Ballerina CLI #7338

Open ayeshLK opened 2 weeks ago

ayeshLK commented 2 weeks ago

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