plugins {
  id "war"
  id "com.diffplug.spotless" version "6.1.2"
}

compileJava {
  options.release.set(8)
}

repositories {
  mavenCentral()
}

spotless {
  java {
    googleJavaFormat()
    licenseHeaderFile(rootProject.file("../../../buildscripts/spotless.license.java"), "(package|import|public)")
    target("src/**/*.java")
  }
}

dependencies {
  compileOnly("jakarta.servlet:jakarta.servlet-api:5.0.0")
}
