

plugins {
    id 'java'
}

repositories {
    maven {
        url uri(System.getenv('MAVEN_LOCAL_REPO'))
    }
    mavenCentral()
}

dependencies {
    implementation 'io.quarkus:quarkus-jsonp'
    implementation 'io.quarkus:quarkus-jsonb'
    constraints {
        implementation("io.quarkus:quarkus-jsonb:0.10.0") {
            because("to test constraints")
        }
    }
    implementation enforcedPlatform("io.quarkus:quarkus-bom:${quarkusVersion}")
    implementation 'io.quarkus:quarkus-resteasy'

    testImplementation 'io.quarkus:quarkus-junit5'
    testImplementation 'io.rest-assured:rest-assured'
}

test {
    dependsOn 'cleanTest'
    useJUnitPlatform()

    // @SubstrateTest and JVM mode tests can't be mixed in the same run
    forkEvery 1
}
