-
-
Notifications
You must be signed in to change notification settings - Fork 297
Migrate to maven-publish plugin #623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Working on it... |
Hi @codeanticode , I got an idea of eliminating this issue of hosting libraries on maven, JCenter, jfrog, etc (all the free hosting resources available). We can host our libraries on processing server like - and inorder to use this new location from android applications we can update the build files by just including the host server link in them. Does it sounds reasonable to us ? If in case Maven stopped hosting all the resource in future then also we need not to worry about that ! Thanks, |
I think the main purpose of publishing artifacts on a repository like Maven it being able to include them into Android Studio projects easily. Can that be done if they are self-hosted? |
processing4's ant build task uses some jar links self hosted on processing. Last time, When I tried downloading them separately from processing's hosted link. It was taking bit time to download. But the download speed was not that slow. We can consider speed factor here. |
Hi @codeanticode , yes self hosted will work exatctly same as that of Maven or JCenter. In application (using processing-android as external lib) code we would need to just change the dependency downlaoding line in project level gradle build file only, code will look something like: allprojects {
repositories {
maven {
url "https://processing.org/android/processing-sdk"
}
}
} NOTE: maybe downloading speed will be little lesser than Maven or JCenter as I think they are using distributed storages so they can achieve faster downloading speed. |
Ok, sounds like it could work out. The url would be https://android.processing.org/... Let's revisit when we reach this stage. |
Hello ! |
@r1shhh1 thanks for offering to help! According to what @ranaaditya mentioned a while back, a self-hosted maven repo seems like the best option, is that still your view on this issue? |
Hi @codeanticode , yes the permanent solution is shifting to self hosted server. @rupeshkumar22 are you still working in this issue ? As per last meeting you had researched and debugged few things for this issue. If @rupeshkumar22 is still not working on this issue then @r1shhh1 can take it and we can discuss it here as well in a meeeting as well ! Thanks, |
Looking at #635 sounds like maven publishing is already implemented? haven't tested it, although merged already into main :-) |
I would love to see this working! Let me know if I can help somehow. Maybe using Jitpack is easier than self hosting? It will basically pick this Github repo, build from source and publish each demanded artifact/version. I think it is quite used in the ecosystem. There are some cases such as F-droid open-source catalogue that needs "trusted" repositories as an acceptance criteria. All the applications are built from source so custom artifact repositories are not allowed. Jitpack would work nicely since it builds the artifacts from source. I think both solutions are not mutually exclusive, I was just giving an idea in case it might help. |
I just tried to trigger a build in Jitpack but it is failing. I'll check a bit more |
Learned how to create a maven repo and host it on GitHub (different from GitHub packages, which requires authentication even for importing the dependencies. 4.5.0b5 artifacts are currently available in this new branch: https://github.com/processing/processing-android/tree/repository and seems like I can keep adding new versions there. |
@codeanticode Finally something has been done on this, I'm happy that it worked. Thanks for doing something about it Andres. |
@victordiaz let me know if you can use the new self-hosted repo: https://github.com/processing/processing-android/tree/repository I have tested with a library project and looks good. |
Currently, the maven plugin is used to generate pom files for publication of the core, vr, and ar libraries on JCenter. The maven plugin is deprecated and incompatible with Gradle 7, migration to maven-publishing is recommended:
https://docs.gradle.org/6.7.1/userguide/publishing_maven.html
The text was updated successfully, but these errors were encountered: