Skip to content

Support optional BasicAuthentication for plugin Maven repositories#79

Merged
shanerbaner82 merged 1 commit intomainfrom
feature/plugin-basic-auth-support
Apr 1, 2026
Merged

Support optional BasicAuthentication for plugin Maven repositories#79
shanerbaner82 merged 1 commit intomainfrom
feature/plugin-basic-auth-support

Conversation

@shanerbaner82
Copy link
Copy Markdown
Contributor

Summary

  • Adds support for an optional "authentication": "basic" field in plugin nativephp.json repository configuration
  • When declared, the compiler generates the required authentication { create<BasicAuthentication>("basic") } block in settings.gradle.kts
  • This is required by Maven repositories like Mapbox Navigation SDK that need preemptive Basic auth for credential-based access

Plugin manifest example

"repositories": [
    {
        "url": "https://api.mapbox.com/downloads/v2/releases/maven",
        "authentication": "basic",
        "credentials": {
            "username": "mapbox",
            "password": "${MAPBOX_DOWNLOADS_TOKEN}"
        }
    }
]

Test plan

  • Verified locally that settings.gradle.kts generates correct auth block when "authentication": "basic" is set
  • Verified locally that existing plugins without authentication field are unaffected
  • Verified Mapbox Navigation SDK resolves successfully with the auth block
  • Verified bifrost CI build passes with this change

Plugins can now declare "authentication": "basic" in their nativephp.json
repository config to generate the required BasicAuthentication block in
settings.gradle.kts. This is needed by Maven repos like Mapbox Navigation
SDK that require preemptive Basic auth for credential-based access.
@shanerbaner82 shanerbaner82 merged commit aca9dce into main Apr 1, 2026
3 of 5 checks passed
@shanerbaner82 shanerbaner82 deleted the feature/plugin-basic-auth-support branch April 1, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant