plugins {
    id 'java'
    id 'idea'

    id "com.github.ben-manes.versions" version "0.42.0" // Used to check for new plugin / dependency versions.
}

tasks.withType(JavaCompile) {
    options.encoding = 'UTF-8'
}

sourceSets {
    main {
        java {
            srcDir 'src'
        }
    }
}

repositories {
    mavenCentral()
}

dependencies {
    implementation 'commons-io:commons-io:2.11.0'
}

idea {
    module {
        downloadJavadoc = true
        downloadSources = true
    }
}

compileJava {
    options.compilerArgs << "-Xlint:all"
}