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

blossom {
    replaceTokenIn('src/main/java/com/djrapitops/plan/PlanSponge.java')
    replaceToken('@version@', '' + project.ext.fullVersion)
}

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

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

    compileOnly "org.spongepowered:spongeapi:$spongeVersion"
    testImplementation "org.spongepowered:spongeapi:$spongeVersion"

    annotationProcessor "org.spongepowered:spongeapi:$spongeVersion"

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

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