Skip to content

honor relative paths for --repos #2375

@maxandersen

Description

@maxandersen

I learned that ./gradlew pAPTBR or ./gradlew publishAllPublicationsToBuildRepository publish maven repo into build/repo in a gradle project.

so it would be useful being able to add --repos local=build/repo,central or repos=local/buildrepo,cenral in jbang-catalog or jbang.properties making it possible to have jbang "just work" in a gradle repo without requiring pubishing into mavenLocal().

today it can only work if you provide a full absolute file:/// path.

I would think it should be fine to detect the argument to repos is a relative path and resolve it relatively to the file it is in as we do in other relative places. Might want to add a notion of ${sourceroot} or ${buildroot} to avoid too much relative path "traversal"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions