Comments (5)
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.
@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.
Got it thanks, does escaping the special characters in WORKSPACE manually help?
from grazel.
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.
@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)
- Support for Gradle 7?
- ./gradlew migrateToBazel and dynamic modules HOT 5
- can it support transform?
- NoSuchMethodError for getSigningConfig() when running migrateToBazel HOT 3
- desugar_java8 failed on executing kapt dependencies
- Sample Application Crashes at runtime HOT 1
- Grazel for non-android projects? HOT 3
- BUILD.bazel not generated. HOT 1
- Does Grazel support Bazel 6.0, rules_kotlin 1.7.0? HOT 2
- Make `migrateToBazel` and dependant tasks cacheable.
- Hybrid builds does not work after variant specific Bazel targets support was added.
- Generate accurate `jetify_include_list` HOT 1
- Documentation doesen't work HOT 1
- Project scope
- readme urls not updated HOT 1
- Put annotation processor, plugins and build tools in separate classpath
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grazel.