plugins {
    id "net.kyori.blossom" version "1.3.0"
}

blossom {
    replaceTokenIn('src/main/java/com/djrapitops/plan/PlanVelocity.java')
    replaceToken('@version@', "$fullVersion")
}

dependencies {
    compileOnly project(":common")
    implementation project(path: ":common", configuration: 'shadow')
    compileOnly project(":api")

    implementation "net.playeranalytics:platform-abstraction-layer-velocity:$palVersion"
    implementation "org.bstats:bstats-velocity:$bstatsVersion"

    compileOnly "com.velocitypowered:velocity-api:$velocityVersion"
    testImplementation "com.velocitypowered:velocity-api:$velocityVersion"

    annotationProcessor "com.velocitypowered:velocity-api:$velocityVersion"

    testImplementation project(path: ":common", configuration: 'testArtifacts')
}

shadowJar {
    relocate 'org.bstats', 'com.djrapitops.plan.utilities.metrics'
}