build.gradle 1.38 KB
Newer Older
Alexander Weigl's avatar
Alexander Weigl committed
1
plugins {
alexander.weigl's avatar
alexander.weigl committed
2
    id 'com.intershop.gradle.jaxb' version '2.0.0'
Alexander Weigl's avatar
Alexander Weigl committed
3 4 5
}
description = 'lint'

alexander.weigl's avatar
alexander.weigl committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
jaxb {
    javaGen {
        lint {
            schema = file('src/main/xsd/lint-issues.xsd')
            packageName = "edu.kit.iti.formal.psdbg.lint"
            //binding = file('binding.xjb')
            //args << "--add-modules java.xml.bind"
        }
    }
}
compileJava.dependsOn jaxbJavaGenLint
/*
sourceSets {
    main{
        java{
            srcDir "$buildDir/xjc/generated-sources"
            srcDir "src/main/java"
        }
    }
}*/

print(sourceSets.main.java.srcDirs)

/*plugins {
    id 'org.unbroken-dome.xjc' version '1.1.3'
}

Alexander Weigl's avatar
Alexander Weigl committed
33 34 35 36 37 38 39
xjcGenerate {
    source = fileTree('src/main/xsd') { include '*.xsd' }
    targetPackage = "edu.kit.iti.formal.psdbg.lint"
    //bindingFiles = fileTree('src/main/jaxb') { include '*.xjb' }
    //catalogs = fileTree('src/main/catalog') { include '*.cat' }
}
compileJava.dependsOn xjcGenerate
alexander.weigl's avatar
alexander.weigl committed
40
*/
Alexander Weigl's avatar
Alexander Weigl committed
41 42 43 44 45
dependencies {
    compile group: 'com.github.spullara.mustache.java', name: 'compiler', version: '0.9.5'
    compile group: 'it.unibo.alice.tuprolog', name: 'tuprolog', version: '3.2.1'
    compile project(':lang')
    compile project(':rt')
alexander.weigl's avatar
alexander.weigl committed
46 47 48 49 50
    /*  xjcClasspath 'com.sun.xml.bind:jaxb-xjc:2.2.7-b41'
      xjcClasspath 'com.sun.xml.bind:jaxb-impl:2.2.7-b41'
      xjcClasspath 'javax.xml.bind:jaxb-api:2.2.7'
      xjcClasspath 'org.jvnet.jaxb2_commons:jaxb2-basics:0.11.1'
  */
Alexander Weigl's avatar
Alexander Weigl committed
51
}