Skip to content
Snippets Groups Projects
build.gradle 637 B
Newer Older
  • Learn to ignore specific revisions
  • Georg Seibt's avatar
    Georg Seibt committed
    plugins {
        id 'java'
        id 'idea'
    
    Georg Seibt's avatar
    Georg Seibt committed
    
        id "com.github.ben-manes.versions" version "0.42.0" // Used to check for new plugin / dependency versions.
    
    Georg Seibt's avatar
    Georg Seibt committed
    }
    
    tasks.withType(JavaCompile) {
        options.encoding = 'UTF-8'
    }
    
    sourceSets {
        main {
            java {
                srcDir 'src'
            }
        }
    }
    
    repositories {
        mavenCentral()
    }
    
    
    java {
        toolchain {
            languageVersion = JavaLanguageVersion.of(11)
        }
    }
    
    
    Georg Seibt's avatar
    Georg Seibt committed
    dependencies {
    
    Georg Seibt's avatar
    Georg Seibt committed
        implementation 'commons-io:commons-io:2.11.0'
    
    Georg Seibt's avatar
    Georg Seibt committed
    }
    
    idea {
        module {
            downloadJavadoc = true
            downloadSources = true
        }
    
    }
    
    compileJava {
        options.compilerArgs << "-Xlint:all"
    
    Georg Seibt's avatar
    Georg Seibt committed
    }