Skip to content

How would I correctly reference dependencies #78

Open

Description

@vincentsijben

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...

Activity

  1. Stefterv commented on Mar 24, 2025

    @Stefterv
    Member

    Great call Vincent, I was also thinking about this already for the Processing Gradle plugin

  2. mingness commented on Mar 31, 2025

    @mingness
    Collaborator

    @Stefterv is there anything we can do in the short term? I don't have a good idea for a solution yet.

  3. Stefterv commented on Mar 31, 2025

    @Stefterv
    Member

    Other than putting the jars in the repo >:) I can't really think of anything

  4. Stephcraft commented on Jul 23, 2026

    @Stephcraft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions