Skip to content
Snippets Groups Projects
build.gradle 635 B
Newer Older
  • Learn to ignore specific revisions
  • Georg Seibt's avatar
    Georg Seibt committed
    import org.gradle.api.tasks.wrapper.Wrapper
    import org.gradle.api.tasks.wrapper.Wrapper.DistributionType
    
    
    Georg Seibt's avatar
    Georg Seibt committed
    plugins {
        id 'java'
        id 'idea'
    }
    
    tasks.withType(JavaCompile) {
        options.encoding = 'UTF-8'
    }
    
    sourceSets {
        main {
            java {
                srcDir 'src'
            }
        }
    }
    
    repositories {
        mavenCentral()
    }
    
    dependencies {
    
    Georg Seibt's avatar
    Georg Seibt committed
        compile 'commons-io:commons-io:2.5'
    
    Georg Seibt's avatar
    Georg Seibt committed
    task wrapper(type: Wrapper) {
        distributionType DistributionType.ALL
    
        gradleVersion '4.4'
    
    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
    }