0

I am currently evaluating Kumuluzee vs Wildfly Swarm vs OpenLiberty. I have some questions:

  1. Does OpenLiberty have Gradle samples/plugin in addition to the maven one.

  2. Is it possible/documented how to extend OL itself with libraries, rather than putting them in web-inf/lib. (Skinny wars ). If possible, are such jars excluded from redeployment scans (faster dev cycles)?

  3. In many cases one wants to deploy several wars in single jvm (anti-microservice). Can several web applications can you enumerate in the server.xml file?

Hristo Stoyanov
  • 1,508
  • 3
  • 15
  • 24

2 Answers2

2

The MicroProfile Showcase Application has been updated so that you can build with Maven or Gradle. https://github.com/OpenLiberty/sample-mpconf

Quite a few of the samples in https://github.com/WASdev/ were updated in October to show using Gradle. They do not use the Open Liberty runtime maven coordinates but many of them could.

Cindy High
  • 91
  • 1
  • Thanks Cindy! Based on your guidance, I closed 2 issues in github for ci.cradle, but did left one open - let's continue the discussion there? – Hristo Stoyanov Nov 17 '17 at 01:11
1
  1. Does OpenLiberty have Gradle samples/plugin in addition to the maven one.

Yes, there are gradle and maven integrations for Liberty:

  1. Is it possible/documented how to extend OL itself with libraries, rather than putting them in web-inf/lib. (Skinny wars ). If possible, are such jars excluded from redeployment scans (faster dev cycles)?

Yes, Liberty has a concept of "shared libraries" which can point to a file or folder. Then, shared libraries can be referenced by applications. More documentation here: Shared Libraries

  1. In many cases one wants to deploy several wars in single jvm (anti-microservice). Can several web applications can you enumerate in the server.xml file?

Yes, you can have as many applications as you want. There are 2 main ways to add an application to a server.

Dropin apps:
You can drop applications into the ${server.config.dir}/dropins/ folder, which doesn't require any additional server configuration.

Configured apps:
You can explicitly configure applications in server.xml using the <application/> configuration element. For more details see the Configuration elements page.

Andy Guibert
  • 41,446
  • 8
  • 38
  • 61
  • It seems the Gradle plug-in is targeted to the generic Liberty server, not OpenLiberty? Also, where can one find an example project with OpenLiberty? – Hristo Stoyanov Nov 15 '17 at 21:27
  • 1
    You can use the plugins for both generic Liberty (aka WAS Liberty) and OpenLiberty. Check out this guide on openliberty.io for an example of using the maven plugin with OpenLiberty: https://openliberty.io/guides/maven-intro.html – Andy Guibert Nov 15 '17 at 21:34
  • Thanks Andy, I was actually looking for Gradle example . – Hristo Stoyanov Nov 15 '17 at 22:19