multiproject-git-gradle icon indicating copy to clipboard operation
multiproject-git-gradle copied to clipboard

gradle build and deploy war from multiple sources

Open petrukhnov opened this issue 10 years ago • 3 comments

As there is no other way to ask you question:

Could you project help with building in a way as described here: http://stackoverflow.com/questions/23076436/gradle-build-and-deploy-war-to-different-servers If yes, some example would be helpful.

petrukhnov avatar May 21 '14 07:05 petrukhnov

I looked at your stackoverflow question. I'd be glad to help you. My questions:

  • Is placement of "src" outside of project tree a requirement? Does it reside in different source-code repository (git, subversion, etc.)?
  • Did you consider sharing code as JAR-libraries instead of sources?
  • Are you trying to implement so-called WAR-overlays with gradle? If so, please consider using Gretty plugin - it supports WAR-overlays out-of-the-box.

akhikhl avatar May 21 '14 07:05 akhikhl

Source could be inside the tree. But it is separate project in git. Final result is multiple war files. Each war have several resource files differ from each other. There is no need to exchange jars, as there is only one "source" project. Yes, WAR-overlays is what i need. After searching 10 min for that in google, i think I already have solution :) Thank you for help.

petrukhnov avatar May 21 '14 08:05 petrukhnov

You are welcome :)

akhikhl avatar May 21 '14 08:05 akhikhl