plugins {
    id 'buildlogic.java-library-conventions'
    id 'application'
    id 'com.palantir.git-version'
}

group = 'org.egothor'

dependencies {
    api project(':pki')
    implementation project(':lib')
    implementation platform('tools.jackson:jackson-bom:3.1.5')
    implementation 'tools.jackson.core:jackson-core'
    testImplementation 'org.bouncycastle:bcpkix-jdk18on:1.84'
}

application {
    mainClass = 'zeroecho.pki.server.PkiServerMain'
    applicationName = 'zeroecho-pki-server'
}

tasks.named('test') {
    dependsOn tasks.named('installDist')
}

jar {
    manifest {
        attributes(
            'Main-Class': application.mainClass,
            'Implementation-Title': 'ZeroEcho PKI Server',
            'Implementation-Version': "${version}"
        )
    }
}

javadoc {
    options.links("https://www.egothor.org/javadoc/zeroecho/lib")
    options.links("https://www.egothor.org/javadoc/zeroecho/pki")
}
