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 8835661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:18:34+00:00 2026-06-14T09:18:34+00:00

I have the following setup within my project… A multi project gradle build for

  • 0

I have the following setup within my project…

  • A multi project gradle build for a SOA style project, wired together using rabbitmq and spring integration.
  • Contains a number of grails projects as well as plain java / groovy projects to represent the services.
  • Alongside each of the service projects are a project (jar) containing all of the public interfaces (and messages) for the service that can be proxied using spring integration.
  • The projects are related to each other using gradle dependencies and then I generate IntelliJ projects files using the gradle idea plugin.

What I want to do is:

  • Include the interfaces jar in the grails project so that I can use spring integration there to proxy my calls into the services via rabbitmq.
  • When I run the grails app have this intefaces jar built and included within grails.
  • When I run the grails app from IntelliJ have it compile the latest version of the interfaces and include them in the grails project.
  • When I build the entire project from gradle, have gradle correctly associate the interfaces jar with the grails app.
  • Ideally I would love to be able to do this just using dependency declaration within gradle, but this is probably a pipe dream…

What are my options?

  1. Add a task into the grails build lifecycle within gradle to build any dependant jars and copy them into the grails lib folder?
  2. Hook into the grails build lifecycle by using Events.groovy or similar to call out to grails to build and package the dependant jars. This would cover both the IntelliJ and command line routes.
  3. Build the interfaces as a grails plugin? I had discounted this as they also need to be used from non-grails projects.

Any help / advice would be appreciated.

  • 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-06-14T09:18:35+00:00Added an answer on June 14, 2026 at 9:18 am

    Turns out all I needed to do was add the following and then the grails plugin deals with the dependencies for me…

    compile project(':dependent-project')
    

    Works nicely for run-app and war…

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

Sidebar

Related Questions

I have the following setup: eclipse a standard Java project (A) an eclipse plugin
I have the following build.xml file setup in phpUnderControl. <target name=phpunit> <exec executable=phpunit dir=${basedir}/httpdocs
I have setup the following jQuery UI Dialog within my document.ready() section, i.e: $(#dialog).dialog({
I have the following setup: ASP.net 3.5 Web Site Project C# Class Library with
I have the following setup using Core Data: Nib1: A WindowController with two custom
For a large project I have the following setup: a content editor made with
I have generated a spring project using Roo, and used the security setup addon
I have the following project setup: Solution A Project 1 (a lightweight component) Project
I have created a Pydev project following this layout: - project_root/ |- setup.py |-
I've setup my Play Framework 1.2.1 project to run from within IntelliJ using the

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.