/*
 * This file was generated by the Gradle 'init' task.
 *
 * This generated file contains a sample Java project to get you started.
 * For more details take a look at the Java Quickstart chapter in the Gradle
 * user guide available at https://docs.gradle.org/5.0/userguide/tutorial_java_projects.html
 */

allprojects {
    apply plugin: 'maven'

    group = 'de.micromata.borgbutler'
    version = '0.1-SNAPSHOT'
}

subprojects {
    apply plugin: 'java'
    sourceCompatibility = 1.9 // Needed: since 1.9 i18n properties in UTF-8 format.
    targetCompatibility = 1.9

    tasks.withType(JavaCompile) {
        options.compilerArgs << '-Xlint:unchecked'
        options.deprecation = true
        options.encoding = 'UTF-8'
    }

    repositories {
        jcenter()
        maven { url "http://repo.maven.apache.org/maven2" }
        maven { url "http://maven.ej-technologies.com/repository" }
    }

    dependencies {
        compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
        testCompile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.25'
        testImplementation(
                'org.junit.jupiter:junit-jupiter-api:5.3.0'
        )
        testRuntimeOnly(
                'org.junit.jupiter:junit-jupiter-engine:5.3.0',
                'org.junit.vintage:junit-vintage-engine:5.3.0'
        )
    }

    test {
        useJUnitPlatform()
    }
}

wrapper {
    gradleVersion = '4.10.2'
}
