How would I correctly reference dependencies
So I am in the process of updating my Processing Library. It uses 2 other Processing libraries (Arduino and Minim). My library adds some functionality or helper functions.
To be able for the release.yml GitHub action to successfully build or run the buildReleaseArtifacts task, it needs to have those dependencies as well. How would I organize this in the new library template?
For development obviously I could use the // compileOnly(fileTree("$sketchbookLocation/libraries/<library folder>/library")) part in build.gradle.kts, but the GitHub action cant use this 😄
So the only thing I can think of, is that I copy arduino.jar and minim.jar from my local libraries folder, put them inside the project, for instance inside /src/main/java/libraries/ and use compileOnly(fileTree("src/main/java/libraries")) to get rid of all errors. This works perfectly, but it doesn't feel right to copy library jar files just for releasing purposes.
In the previous "Ant template" approach, I didn't have this problem. I had to manually fix all the correct things to be able to release it. So the automation of the new approach is awesome, but I can't get my head around the go to way to fix this nicely...
Great call Vincent, I was also thinking about this already for the Processing Gradle plugin
@Stefterv is there anything we can do in the short term? I don't have a good idea for a solution yet.
Other than putting the jars in the repo >:) I can't really think of anything