build.gradle 2.76 KB
Newer Older
alexander.weigl's avatar
alexander.weigl committed
1 2 3 4 5
plugins {
//    id 'io.franzbecker.gradle-lombok' version '1.14' apply false
    id "com.github.ben-manes.versions" version "0.17.0"
}

Alexander Weigl's avatar
Alexander Weigl committed
6 7 8
allprojects {
    apply plugin: 'maven'
    group = 'edu.kit.iti.formal.psdbg'
9
    version = 'Experimental-1.1'
Alexander Weigl's avatar
Alexander Weigl committed
10 11 12
}

subprojects {
alexander.weigl's avatar
alexander.weigl committed
13
  //  apply plugin: 'io.franzbecker.gradle-lombok'
Alexander Weigl's avatar
Alexander Weigl committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
    apply plugin: 'java'
    apply plugin: 'idea'

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

    repositories {
        mavenLocal()
        maven { url "http://repo.maven.apache.org/maven2" }
        maven { url "http://dl.bintray.com/jerady/maven" }
        maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
    }


    dependencies {
        compile group: 'commons-cli', name: 'commons-cli', version: '1.4'
alexander.weigl's avatar
alexander.weigl committed
33 34
        compile group: 'com.google.guava', name: 'guava', version: '25.0-jre'
        compile group: 'commons-io', name: 'commons-io', version: '2.6'
Alexander Weigl's avatar
Alexander Weigl committed
35
        compile group: 'commons-lang', name: 'commons-lang', version: '2.6'
alexander.weigl's avatar
alexander.weigl committed
36 37
        compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.0'
        compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.0'
Alexander Weigl's avatar
Alexander Weigl committed
38
        testCompile group: 'junit', name: 'junit', version: '4.12'
alexander.weigl's avatar
alexander.weigl committed
39 40
        //compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.16.20'
        compileOnly files("$rootDir/lombok-edge.jar")
Alexander Weigl's avatar
Alexander Weigl committed
41 42
    }

alexander.weigl's avatar
alexander.weigl committed
43 44 45 46
    /*lombok { // optional: values below are the defaults
        //version = "1.16.21" //bleeding edge
        //sha256 = "c5178b18caaa1a15e17b99ba5e4023d2de2ebc18b58cde0f5a04ca4b31c10e6d"
    }*/
Alexander Weigl's avatar
Alexander Weigl committed
47

alexander.weigl's avatar
alexander.weigl committed
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
    compileJava {
        /*  options.compilerArgs.addAll([
                  "-Xlint:all,-processing,-cast,-serial,-try",
                  "-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
                  "-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED",
                  "-J--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED",
                  "-J--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED",
                  "-J--add-opens=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
                  "-J--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED",
                  "-J--add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED",
                  "-J--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
                  "-J--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
                  "-J--add-opens=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED",
                  "-J--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED",
                  "-J--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED"
          ])*/
    }
Alexander Weigl's avatar
Alexander Weigl committed
65
}