Hi Phil,
I didn't know about the init scripts before.
I put this in my ~/.gradle/init.gradle file, it seems to work very well.
[code]
gradle.beforeProject { prj ->
prj.apply plugin: 'templates'
}
[/code]
Not sure if this is a desired affect, but seems that the templates plugin
gets applied to the project even when there isn't a build.gradle file in the
directory. So I can execute 'gradle createJavaProject' from pretty much
anywhere now.
Very cool, I'll put this in the wiki too unless this isn't how it's supposed
to work.
Cheers,
Eric
On Sun, Jun 5, 2011 at 6:04 AM, phil swenson <[email protected]> wrote:
> For our project we have been considering a scaffolding/templating
> solution much like what Eric has put together. We will be evaluating
> Eric's plugin shortly, looks good though!
>
> One goal would be to support a "global" plugin. We don't want to have
> to apply the plugin to a project and then cd to the project and call
> the templating task.
> So from anywhere on the file system we could type: "gradle
> createJavaProject" and get the create project wizard.
>
> The only way we could think of was to apply the plugin in init.gradle.
> Is this the best approach?
>
> thanks
> phil
>
>
>
> On Sat, Jun 4, 2011 at 3:47 AM, Hans Dockter
> <[email protected]> wrote:
> > Hi Eric,
> >
> > On Fri, Jun 3, 2011 at 2:01 AM, Eric Berry <[email protected]> wrote:
> >>
> >> I've finally finished basic support for the Gradle Scala Plugin, and
> I've
> >> decided to do a 1.0 release.
> >> https://launchpad.net/gradle-templates/trunk/1.0
> >>
> >> The gradle-templates plugin has basic support for packaged Gradle
> plugins.
> >> This includes, Java, Groovy, War (Webapp), and Scala. It also has basic
> >> support for creating your own Gradle plugins.
> >>
> >> Jar files are available for download on the Launchpad project page:
> >> https://launchpad.net/gradle-templates
> >>
> >> Cheers,
> >> Eric
> >
> > thanks a lot for this. We really know that archetype support is missing
> and
> > looking forward to add that to the core.
> > We will soon have a look at your templates plugin and will give feedback.
> > Hans
> > --
> > Hans Dockter
> > Founder, Gradle
> > http://www.gradle.org, http://twitter.com/gradleware
> > CEO, Gradleware - Gradle Training, Support, Consulting
> > http://www.gradleware.com
> >>
> >> --
> >> Learn from the past. Live in the present. Plan for the future.
> >> Blog: http://eric-berry.blogspot.com
> >> jEdit <http://www.jedit.org> - Programmer's Text Editor
> >> Bazaar <http://bazaar.canonical.com> - Version Control for Humans
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
--
Learn from the past. Live in the present. Plan for the future.
Blog: http://eric-berry.blogspot.com
jEdit <http://www.jedit.org> - Programmer's Text Editor
Bazaar <http://bazaar.canonical.com> - Version Control for Humans