Just to say that I've finally merged my work on Play dependency
management into the master branch.
If you are interested to give it a try, the temporary documentation is here:
https://gist.github.com/784734
--
Guillaume Bort, http://guillaume.bort.fr
For anything work-related, use g...@zenexity.fr; for everything else,
write guillau...@gmail.com
> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>
Yes of course. Each module can have its own conf/dependencies.yml
descriptor that will be resolved transitively.
> Does it manage dependencies in a module also? (for ex: a module requires another module to work)Yes of course. Each module can have its own conf/dependencies.yml
descriptor that will be resolved transitively.
Thanks Guillaume. Great ideas and implementation as usual!Any recommendations for existing projects? Do you recommend adding the dependencies.yml file manually and switch to using the command?
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
Yes you can create the dependencies.yml file yourself and run the command.
> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framewor...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.
>
--
1.2
--
> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>
--
It is possible to declare dependencies that will be resolved only for
a specific framework id. For example:
require:
- play
- play -> crud
- org.powermock -> powermock-module-junit4 1.4.7:
id: test
Now if you run 'play deps --%test --sync', Play will retrieve
powermock and its dependencies and install them.
If you run 'play deps --%release --sync', powermock libraries will be
deleted from the lib/ directory.
> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>
--
Guillaume Bort, http://guillaume.bort.fr
For anything work-related, use g...@zenexity.fr; for everything else,
write guillau...@gmail.com
ok, I am trying to convert my app and I am lost. -> this happens to be a perfect example.
here are my modules:
#module.crionics-cms=${play.path}/crionics-cms
#module.crud=${play.path}/modules/crud
#module.secure=${play.path}/modules/secure
#module.recaptcha=${play.path}/modules/recaptcha-1.02
#module.greenscript=${play.path}/modules/greenscript-1.2b
#module.ugot-widgets=${play.path}/ugot-widgets
on top of that, I am using markdownj in the lib folder, the repository is here http://code.google.com/p/markdownj/wiki/Maven
all the ugot and crionics are local segmentations of my application living in the play folder.
Now I tried to convert it and this is what I get (with errors of course)
require:
- play 1.2
- recaptcha 1.02
- greenscript 1.2b
- secure
- crud
- markdownj
How do I define the markdown repo ? How do I reference my local projects ?
Thanks!
Try this one:
require:
- play modules ....
- your.namespace -> module version # e.g. org.orefalo -> ugot-widgets 1.0
- org.markdownj -> markdownj 1.0.2b #or any other version
repositories:
- scalaTools:
type: http
artifact: http://scala-tools.org/repo-releases
m2compatible: true #maybe not needed
contains:
- org.markdownj -> *
Add 'root' option to iBiblio compatible repositories
repositories:
- scalaTools:
type: ibiblio
root: http://scala-tools.org/repo-releases
# Application dependencies
# Notes:
# play is an alias for play -> play $currentVersion
# play -> crud is an alias for play -> crud $currentVersion
# play -> secure is an alias for play -> secure $currentVersion
# Modules from the main repository use 'play' as organisation
#
require:
- play
- play -> crud
- play -> secure
- play -> recaptcha 1.02
- play -> greenscript 1.2b
- crionics -> cms 1.0
- ugot -> widgets 1.0
- org.markdownj -> markdownj 0.3.0-1.0.2b4
repositories:
- Scala Tools:
type: iBiblio
root: http://scala-tools.org/repo-releases/
contains:
- org.markdownj
- My modules:
type: local
artifact: /somewhere/on/your/disk/[organisation]/[module]-[revision]
# This folder must contain
# /somewhere/on/your/disk/crionics/cms-1.0
# /somewhere/on/your/disk/ugot/widgets-1.0
contains:
- ugot
- crionics
> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framewor...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.
>
--
With the new dependency management system, Play will load
automatically all modules found in the modules/ directory. And this
list should be managed by running 'play dependencies'.
I suggest this layout for your project:
|--- the-application-itself
|--- optional
|---- moduleA-1.0
|---- moduleB-1.0
|---- moduleC-1.0
And in the-application-itself/conf/dependencies.yml:
require:
- play
- yourcompany -> moduleA 1.0
- yourcompnay -> mobuleB 1.0
repositories:
- Optional Modules
type: local
artifact: ${application.path}/../optional/[module]-[revision]
contains:
- yourcompnay
Now if you run 'play dependencies' Play will create 2 text files in
your the-application-itself/modules/ directory linking to the real
path of your modules.
You can even add a dependencies.yml file in each module to declare
dependencies of each modules. For instance enabling moduleB will also
install moduleC and download a bunch of required jars in lib/
> Question 2: Must a module be a module? Or can it be an application as well?
A module is an application. It is the same.
> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>
--
Guillaume Bort, http://guillaume.bort.fr
For anything work-related, use g...@zenexity.fr; for everything else,
write guillau...@gmail.com
require:- play- com.google.guava -> guava r07- twig 1.0
repositories:- Optional Modules:type: local
artifact: /opt/coding/play/modules/[module]-[revision]contains:- twig
On Fri, Jan 21, 2011 at 6:02 AM, Olivier Refalo <ore...@yahoo.com> wrote:
> So I got dependencies working... But now I have a side effect.
> Play eclipsify doesn't pickup my module paths....
>
So you can use:
play eclipsify --deps
and it will resolve and synchronize your project dependencies before
running eclipsify.
Same for:
play run --deps
play start --deps
play test --deps
On Fri, Jan 21, 2011 at 10:05 PM, Olivier Refalo <ore...@yahoo.com> wrote:
> It does .. once i stopped used the --sync flag
> need to play it more to understand how it works
>