jbang icon indicating copy to clipboard operation
jbang copied to clipboard

${version:RELEASE} not working in alias and javaagent

Open maxandersen opened this issue 5 years ago • 1 comments
trafficstars

semes like use of system properties isnot working when used in aliases and agents making it impossible to do:

"cli": {
      "script-ref": "org.jacoco:org.jacoco.cli:${jacoco.version:RELEASE}:nodeps",
      "description": "Runs jacoco cli, see https://www.jacoco.org/jacoco/trunk/doc/cli.html for documentation."
    },

to lst jbang cli run latest and jbang -Djacoco.version=0.8.1 cli run with that specific version.

maxandersen avatar Nov 07 '20 08:11 maxandersen

might not be right it works - -D is set at same "level" thus not clean seperation of concerns.

maxandersen avatar Nov 11 '21 10:11 maxandersen