-
-
Notifications
You must be signed in to change notification settings - Fork 297
Gradle dependency not working #640
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
Getting the following output with the command
Generally, Android Mode uses core jar file by placing it in
Here's the template for reference. I think the issue does not affect the working of Android Mode. |
Hi @tassilo-posegga , there seems to be some error in the uploaded POM file for the 4.1.x + versions of processing-core distribution over Maven ! But you can still use 4.0.x versions of the processing-core like normal gradle dependencies as you mentioned in your issue (ex - implementation 'org.p5android:processing-core:4.0.2') You can find processing-core over maven repository here for your referrence. You can find all latest releases of processing-core here and can use as an external jar(dependency) as described here Soon we will fix this issue. Thanks ! |
I'm moving the core, vr, and ar artifacts to mavenCentral, since JCenter is shutting down on May 1st. Hopefully this solves the issue. |
yes this should resolve the issue, thanks for this step @codeanticode ! |
Actually this is the same issue as #582 |
@ranaaditya I started following the instructions here to create releases in Maven Central using the Gradle Nexus Publish Plugin but got stuck. I got all in place (I think) to push artifacts to a staging repo, and from there create a release manually, but authentication fails. Seems to me like following the Sonatype instructions to publish with Gradle might be the next option. I'd need some help though... All of this is quite intricate 🤔 |
@codeanticode yeah I also think so that following the sonatype instructions would be better option now, if you need any help in this please let me know ! thanks, |
@ranaaditya This is completely over my head... I tried to follow the official OSSRH guide for Gradle to publish artifacts but seems outdated because it refers to the maven plugin, which has been deprecated and is now maven-publish, I think? I made some changes in this branch to ignore errors in the javadoc generation (providing javadoc artifacts seems a requirement for publishing). Anyways, since the OSSRH guide seems outdated, I'm not sure what to do next. There are many online tutorials about maven publishing, like this one or this other one but they say slightly different things so I'm stuck. For the time being I'm going to just remove any reference to artifact generation in the wiki. If you have some time to look at the branch I created, would be great, otherwise, I think we can just do without maven artifacts. This probably useful only to a very small number of users, and someone who is advanced enough to use maven can probably figure out how to use processing-android dependencies in their code :-) |
@codeanticode give me sometime I will look into it and try to come up with a solution. |
Thanks, there is no rush with this. As additional background, I managed to create a sonatype account, so I have credentials to create staging and release repos: https://issues.sonatype.org/browse/OSSRH-67993 With regards to the build system itself, I implemented the signing and signing tasks as part of a module that all sub-projects should be able to use, seems like one can use the publishToMavenLocal task to publish locally for testing, when I run:
I get this error:
Sounds like some information is missing, but on the right track. |
Solved by including the processing-android dep from the self-hosted repo: #623 |
I am trying to use
instead of including the .jar file - but no dependencies show up. There isn't even an entry at "External libraries" with given org.p5android qualifier. Gradle sync works fine. What's going wrong?
The text was updated successfully, but these errors were encountered: