Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6998029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:21:32+00:00 2026-05-27T20:21:32+00:00

Is it possible to add a dependency to the dependencies.yml that points to a

  • 0

Is it possible to add a dependency to the dependencies.yml that points to a directory?

For example, using pseudo yml for the dependencies.yml, I want to do something like this:

require:
    - mycooldirectory

repositories:
    - mycooldirectory:
        type: local
        artifact: "${application.path}/jars/mycooldirectory/*.jar"
        contains: 
            - mycooldirectory -> *

In my make-believe-world, the above would include the mycooldirectory as a classpath folder and use any jars found in that directory.

I’m just making stuff up, but I hope that kind of explains what I want to do. I know you can put jars in the /lib directory but any jars unspecified by the dependencies.yml will get wiped when doing a play dependencies --sync. I also know you can specify single jars by doing this. However, I was just wondering whether you can do something similar but reference a whole directory full of jars?

Edit: I have a sort of workaround which works is by creating a Play module structure for mycooldirectory (i.e. have a lib directory under that directory) and put all the jars in that lib directory. And then in the dependencies.yml, do this:

require:
    - mycooldirectory -> mycooldirectory

repositories:
   - provided:    
       type:       local
       artifact:   "${application.path}/jars/[module]"
       contains:  
         - mycooldirectory

Though I was wondering whether there was a cleaner way of doing this without having to make a pretend module and just reference a new directory to have additional jars.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:21:32+00:00Added an answer on May 27, 2026 at 8:21 pm

    This workaround is similar to yours, but it should work without a /lib directory. I haven’t tested it, but it was on the mailing list and got positive feedback there.

    require:
      - play
      - play -> googleclosure 1.2
      - provided -> mylib 1.0
    
    repositories:
      - provided:
          type:       local
          artifact:   "${application.path}/jar/[module]-[revision].jar"
          contains:
            - provided -> *
    

    Mailing list thread: https://groups.google.com/forum/#!topic/play-framework/tU5OJa5JFhs/discussion

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is this possible? Right now I'm using build artifact dependencies (I save the file
Is it possible to add a dependency property to a ValueConverter and bind it
Is it possible to add an image overlay to a google map that scales
Is it possible to add a jQuery function so that a click in a
Is it possible to add a metadata-like description or comments to a table in
Is it possible to add checkboxes to the WPF TreeView object? I'd like to
I'd like to be able to manage my app dependencies in Mercurial such that
I don't like constructor based dependency injection. I believe that it increases code complexity
I have my own TextBox2 class that derives from TextBox. I want to add
Is it possible to add Dependent Breakpoints(Not a Conditional Bp) ( Breakpoint1 is enabled

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.