Developing with DominoKit with Gradle

Originally posted on 2020-11-04

I migrated all of my projects from Maven to Gradle a few years back. Generally it has been hard but worthwhile to move from XML to something that's slightly easier to extend. In some cases I'm now using the Kotlin DSL but I'm still evaluating whether that was a mistake or not as there are far fewer examples of how to do things with the Kotlin DSL than the Groovy DSL.

In any case I've built up a baseline build.gradle.kts that I am using in a few DominoKit projects.

This configuration gives you a few things:

  • An easy way to run the application in Jetty
./gradlew appRunWar -x compileGwt
  • An easy way to start super dev mode
./gradlew gwtSuperDev
  • A full output JAR file, using Gradle Shadow, that can run inside of AWS Lambda
./gradlew shadowJar

Here's the build.gradle.kts: