unity-jar-resolver icon indicating copy to clipboard operation
unity-jar-resolver copied to clipboard

Add credentials to dependency XML

Open alon357 opened this issue 4 years ago • 3 comments

[REQUIRED] Please fill in the following fields:

  • Unity editor version:All
  • External Dependency Manager version:All
  • Source you installed EDM4U: unitypackage
  • Features in External Dependency Manager in use:Android Resolver,
  • Plugins SDK in use: None
  • Platform you are using the Unity editor on:MAC

[REQUIRED] Please describe the question here:

Is there is a way to add to the Dependency.xml credentials like : maven { credentials { username = 'username' password = 'password' } url 'https://private-maven.com' authentication { basic(BasicAuthentication) } }

This is for our internal testing Thanks

alon357 avatar Aug 03 '21 09:08 alon357

This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Aug 03 '21 09:08 google-oss-bot

Hi @alon357

This sample documents all the use case we support. And as far as I can tell, EDM4U does not support credential at this moment.

I can change this to a FR and we welcome any pull-request if you like to contribute to this feature :)

At the meantime, I think you can just use mainTemplate.gradle and add your credential and private Maven manually.

Unless you want to distribute your credential in Dependencies.xml? I am very curious about your use-case.

Let us know

chkuang-g avatar Aug 03 '21 18:08 chkuang-g

Hi @chkuang-g, I have the same issue since my dependencies reside in GitHub packages, which require credentials to be accessed. Generally, it's easy to access them with build.gradle(in an android project), but for some reason, unity overrides my entries in mainTemplate.gradle.

dipak140 avatar Dec 17 '21 10:12 dipak140