<commit_before>import org.gradle.language.jvm.tasks.ProcessResources
import org.apache.tools.ant.filters.ReplaceTokens
import org.gradle.jvm.tasks.Jar

plugins {
    java
}

group = project.property("group")!!
version = project.property("version")!!

java {
    sourceCompatibility = JavaVersion.VERSION_1_8
    targetCompatibility = JavaVersion.VERSION_1_8
}

repositories {
    jcenter()
    maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}

dependencies {
    compile("org.bukkit:bukkit:${project.property("bukkitVersion")}")
}

val processResources = tasks.getByName("processResources") as ProcessResources
val tokens = mapOf(
        "group" to project.property("group"),
        "name" to project.property("name"),
        "version" to project.property("version")
)
processResources.apply {
    from("src/main/resources") {
        filter<ReplaceTokens>("tokens" to tokens)
    }
}<commit_msg>add test dependencies<commit_after>import org.gradle.language.jvm.tasks.ProcessResources
import org.apache.tools.ant.filters.ReplaceTokens
import org.gradle.jvm.tasks.Jar

plugins {
    java
    kotlin("jvm") version "1.2.71"
}

group = project.property("group")!!
version = project.property("version")!!

java {
    sourceCompatibility = JavaVersion.VERSION_1_8
    targetCompatibility = JavaVersion.VERSION_1_8
}

repositories {
    jcenter()
    maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
    maven("https://dl.bintray.com/spekframework/spek-dev")
}

dependencies {
    compile("org.bukkit:bukkit:${project.property("bukkitVersion")}")

    testImplementation(kotlin("stdlib-jdk8"))
    testImplementation(kotlin("test"))
    testImplementation("org.spekframework.spek2:spek-dsl-jvm:2.0.0-alpha.1") {
        exclude("org.jetbrains.kotlin")
    }
    testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.1.0")
    testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:2.0.0-alpha.1") {
        exclude("org.junit.platform")
        exclude("org.jetbrains.kotlin")
    }
    testRuntimeOnly(kotlin("reflect"))
    testImplementation("org.mockito:mockito-inline:+")
}

val test : Test by tasks
test.useJUnitPlatform { includeEngines("spek") }
        "group" to project.property("group"),
        "name" to project.property("name"),
        "version" to project.property("version")
)
processResources.apply {
    from("src/main/resources") {
        filter<ReplaceTokens>("tokens" to tokens)
    }
}
{'fraction_non_alphanumeric': 0.1461038961038961, 'fraction_numerical': 0.010957792207792208, 'mean_word_length': 4.289699570815451, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3463713', 'n_tokens_mistral': 816, 'n_tokens_neox': 793, 'n_words': 103}