publishing {
  publications {
    mavenJava(MavenPublication) { artifactId 'infrastructure-restapi' }
  }
}

dependencies {
  api 'commons-io:commons-io'

  implementation project(':infrastructure:async')
  implementation project(':infrastructure:exceptions')
  implementation project(':infrastructure:http')
  implementation project(':infrastructure:json')
  implementation project(':infrastructure:logging')
  implementation project(':infrastructure:serviceutils')

  implementation 'com.fasterxml.jackson.core:jackson-databind'
  implementation 'com.google.guava:guava'
  implementation 'io.javalin:javalin'
  implementation 'io.javalin:javalin-rendering'
  implementation 'it.unimi.dsi:fastutil'
  implementation 'org.webjars:swagger-ui'
  implementation 'org.thymeleaf:thymeleaf'

  testImplementation testFixtures(project(':infrastructure:async'))
  testImplementation testFixtures(project(':infrastructure:json'))

  testFixturesImplementation testFixtures(project(':infrastructure:async'))
  testFixturesImplementation testFixtures(project(':infrastructure:json'))
  testFixturesImplementation project(':infrastructure:http')
  testFixturesImplementation 'org.apache.logging.log4j:log4j-api'
  testFixturesImplementation project(':infrastructure:async')
  testFixturesImplementation 'com.fasterxml.jackson.core:jackson-databind'
  testFixturesImplementation 'commons-io:commons-io'
  testFixturesImplementation 'com.google.guava:guava'
  testFixturesImplementation 'io.javalin:javalin'
}