Coder Social home page Coder Social logo

Comments (5)

arunkumar9t2 avatar arunkumar9t2 commented on May 25, 2024

Rules JVM supports basic auth alone and as long as you don't use headers Grazel should be abel to migrate them. Could you share how the repo is declared in Gradle?

The following works for example:

 maven {
   url "$urll"
   credentials {
       username "<user_name>"
       password "<password>"
   }
}

from grazel.

sylwek845 avatar sylwek845 commented on May 25, 2024

@arunkumar9t2 thats what I have eg

    maven(url = "https://somedomain.jfrog.io/somedomain/mvn-release") {
        credentials {
            username = "user"
            password = ")632432,4,3243,2432.43fsdfs,"
        }
    }

it complains about special characters so I changed it to URLEncoding but now I get forbidden. Any ideas ?

from grazel.

arunkumar9t2 avatar arunkumar9t2 commented on May 25, 2024

Got it thanks, does escaping the special characters in WORKSPACE manually help?

from grazel.

sylwek845 avatar sylwek845 commented on May 25, 2024

No it does not. so when I convert the password in gradle to URLEncoding, it seems to work fine, and in WORKSPACE I can see it updates the url to the below.

"https://user:%29632432%2C4%2C3243%2C2432.43fsdfs%[email protected]/somedomain/mvn-release",

But when I run migrateToBazel I get the following error

forbidden: https://somedomain.jfrog.io/somedomain/mvn-release/com/somedomain/android/somedomain-ui-kit-compose/11.15.2/somedomain-ui-kit-compose-11.15.2.pom

And I get the same for other libraries. Any ideas? Thanks

from grazel.

sylwek845 avatar sylwek845 commented on May 25, 2024

@arunkumar9t2 Managed to find a way around. Not sure why but it worked after I changed the url and added artifactory like ->

maven(url = "https://somedomain.jfrog.io/artifactory/somedomain/mvn-release") {
        credentials {
            username = "user"
            password = ")632432,4,3243,2432.43fsdfs," //also apply URL encoding
        }
    }

Decided to share it, it may save some time for others! If you have any explanation for above let me know.

also I applied URL encoding for the password, I updated the one in gradle file as it does not affect it.

from grazel.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.