Skip to content
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

development and production groups in Jarfile #16

Open
mohamedhafez opened this issue Jun 17, 2016 · 1 comment
Open

development and production groups in Jarfile #16

mohamedhafez opened this issue Jun 17, 2016 · 1 comment

Comments

@mohamedhafez
Copy link

Is there a way to specify a dependency only for development, or only for production in the Jarfile? If so perhaps some example could be added to the wiki? If not that would be super helpful, especially in cases where you develop on one platform and deploy on another, and need different jars for each environment.

Also looking through the code it looks like the Jarfile does support classifiers I think, could an example with that be added to the wiki?

@mkristian
Copy link
Member

quick answer before I improve the wiki: :scope=> :provided will be translated to development group

only production - nope the scope will not help here.

:classifier => 'native'

i.e.
jar 'my.group.id', 'artifact-id', :scope => :provided, :classifier => 'native'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants