plugins {
    id 'java'
    id 'application'
    id 'jvm-test-suite'
}

java {
    toolchain {
        languageVersion.set(JavaLanguageVersion.of(rootProject.ext.jvmVersion))
    }
}

application {
    mainClass = 'nu.marginalia.index.perftest.PerfTestMain'
}

apply from: "$rootProject.projectDir/srcsets.gradle"

dependencies {
    implementation project(':code:common:config')
    implementation project(':code:common:db')

    implementation project(':code:libraries:array')
    implementation project(':code:libraries:native')
    implementation project(':code:libraries:btree')
    implementation project(':code:functions:language-processing')
    implementation project(':code:common:linkdb')
    implementation project(':code:index')
    implementation project(':third-party:commons-codec')
    implementation project(':code:functions:search-query')
    implementation project(':code:functions:search-query:api')

    implementation libs.slop
    implementation libs.roaringbitmap
    implementation libs.bundles.slf4j
    implementation libs.guava

    libs.bundles.grpc.get().each {
        implementation dependencies.create(it) {
            exclude group: 'com.google.guava'
        }
    }


    implementation libs.notnull
    implementation libs.trove
    implementation libs.fastutil
    implementation libs.bundles.gson
    implementation libs.bundles.mariadb

}
