Skip to content

Could //DEPS support a path to a file? #1230

@jmini

Description

@jmini

Is your feature request related to a problem? Please describe.

Gradle allows to add a local file as dependency
https://docs.gradle.org/current/userguide/declaring_dependencies.html

This is sometimes quite handy.

To perform some tests I wanted to replace

//DEPS com.mycompany:my-lib:1.2.3` 

By a local file that I have just built locally (not pushed yet to any maven repo):

//DEPS ~/Git/my-project/my-lib/build/libs/my-lib-1.3.0-SNAPSHOT.jar

Describe the solution you'd like

The possibility to use path for jars (absolute and relative?).
Maybe supporting also wildcards?

I am also fine having to use //DEPS_FILE or anything else to indicate that I am pointing to a file instead of some maven coordinates.

Current behavior

With the current version of JBang, I get this error:

[jbang] [ERROR] [ERROR] Invalid dependency locator: '<path to the jar>'.  Expected format is groupId:artifactId:version[:classifier][@type]

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideasSome idea/suggestion around jbang behavior/feature set

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions