Main Content

Magnolia Community Forums: Get help with Magnolia: Gradle build of Magnolia 5.5


  • will
    will
    Full name: Will Scheidegger
    Posts: 423
    Last post: Feb 20, 2017 5:13:04 AM
    Gradle build of Magnolia 5.5
    #1 by will on Feb 19, 2017 6:07:59 PM

    Dear Magnolians

    (Not by choice) I'm looking into building Magnolia 5.5.2 CE with Gradle but I'm getting "mixed" results.

    I started with a plain vanilla Maven Magnolia project (parent project + webapp sub-project, based on magnolia-community-webapp)
    > Built it with Maven and tested it. Everything as expected.

    Then I converted it to Gradle by simply calling gradle init and tested it again. Not surprisingly it did not work, as Maven overlays are not supported by default [1]. So I configured the waroverly plug-in [2]
    > The output looks like a Magnolia war but won't start up properly as there are versioning errors. When comparing the Maven output with the Gradle output one can see that more stuff (e.g. magnolia-module-forum!?) is added to the Gradle output

    Now before I go too much into details... does anyone have a working Gradle build for a magnolia-community-webapp based project?

    Thanks!
    -will



    [1] see https://gradle.org/migrating-from-maven
    [2] https://github.com/scalding/gradle-waroverlay-plugin

  • cmeier
    cmeier
    Full name: Christoph Meier
    Posts: 197
    Last post: May 12, 2017 10:04:59 AM
    Re: Gradle build of Magnolia 5.5
    #2 by cmeier on Feb 20, 2017 4:45:30 AM

    Hi Will

    User Razvan recently was fiddling around with Gradle and was successful at the end as far as i know.
    See https://forum.magnolia-cms.com/forum/thread.html?threadId=92166067-2d4b-4cfa-8d22-7c4ea6c4f98b&page=1

    kind regards,
    Christoph

  • will
    will
    Full name: Will Scheidegger
    Posts: 423
    Last post: Feb 20, 2017 5:13:04 AM
    Re: Gradle build of Magnolia 5.5
    #3 by will on Feb 20, 2017 5:13:04 AM

    Hi Christoph

    I did see his post but strangely enough he apparently encountered totally different problems than me. I never had problems with maven repos that could not be found (might be because I built the project first with maven so all the dependencies are in the local repo). On the other hand I don't see him doing anything special about the overlays. So I guess my ignorance would not allow me to see how his post could help me :-(

    Cheers
    -will

You don't have the permission to post on this thread

Sign in

To login on this forum, you can use your Magnolia Forge, Support or Partner account, or, below, your Google, Yahoo! or OpenID account. If you have trouble logging in, or any other sort of issue, please let us know in the Meta forum, on the user-list, or simply by email at forum-admin at magnolia-cms dot com.

* Required

... or sign in with:

  • icon http://{your-openid-url}
  • icon
  • icon https://me.yahoo.com/