plugins {
    id 'java'
    id 'checkstyle'
    alias libs.plugins.yumi.gradle.licenser.plugin
    alias libs.plugins.jaredsburrows.license.plugin
}

dependencies {
    testImplementation libs.h2
    testImplementation project(":access")
    testImplementation project(":types")
    testImplementation project(":type-utils")
    testImplementation project(":mirror")
    testImplementation project(":service-registry")
    testImplementation project(":domain-events-core")
    testImplementation project(":domain-events-jakarta-jta")
    testImplementation project(":domain-events-spring-tx")
    testImplementation project(":domain-events-spring-tx-outbox")
    testImplementation project(":domain-events-gruelbox")
    testImplementation project(":jackson-integration")
    testImplementation project(":builder")
    testImplementation project(":domain-events-jakarta-jms")
    testImplementation project(":domain-events-mq")
    testImplementation libs.slf4j.api
    testImplementation libs.lombok
    testAnnotationProcessor libs.lombok
    testImplementation libs.assertj
    testImplementation variantOf(libs.atomikos.transactions.jta) { classifier("jakarta") }
    testImplementation libs.jakarta.transaction.api
    testImplementation libs.logback.classic
    testImplementation libs.spring.boot3.starter
    testImplementation libs.spring.boot3.starter.json
    testImplementation libs.spring.boot3.starter.jooq
    testImplementation libs.spring.boot3.starter.test
    testImplementation libs.spring.boot3.starter.artemis
    testImplementation libs.apache.active.mq.artemis.jakarter.server
    testImplementation libs.bundles.gruelbox.transactionoutbox

    testImplementation libs.awaitility

}

// Although test classes are not scanned by checkstyle, as configured in the root-level build.gradle file,
// checkstyle will throw errors and hints as soon as you add a JavaDoc in test file methods, which is the case in some
// of the more complex test files in this module. That's why the checkstyleTest task is explicitly disabled.
checkstyleTest.enabled = false
