dependencies {
    compile 'com.github.rjeschke:txtmark:0.10'
    compile ('org.reflections:reflections:0.9.9-RC2', 
            'org.javassist:javassist:3.18.2-GA')
    compile 'com.itextpdf:itextpdf:5.3.2' //5.3.3 and later remove MultiColumnText, need adjustment
    compile 'com.google.code.gson:gson:2.2.4'
    compile 'de.idos.updates:updates-core:1.2.0'
    compile 'org.apache.commons:commons-lang3:3.1'
    compile 'commons-io:commons-io:2.4'
    compile 'jaxen:jaxen:1.1.4'
    compile 'ch.qos.logback:logback-classic:1.1.2'
    compile 'com.google.guava:guava:14.0.1'
    compile ('dom4j:dom4j:1.6.1',
            'xml-apis:xml-apis:1.3.04') //dom4j doesn't need these, but pulls an older version anyway
    compile 'com.miglayout:miglayout-core:5.0'
    testCompile testDependencies
}

task writeVersionProperties << {
    String versionDate = new Date().format('MM/dd/yy')
    String versionString = parent.versionString
    def versionFile = new File(project.sourceSets.main.output.resourcesDir, "version.properties")
    versionFile.parentFile.mkdirs()
    versionFile.createNewFile()
    versionFile.append (
        "Anathema.Version.Numeric=$versionString\n"
        +"Anathema.Version.Built=$versionDate"
    )
}

processResources.dependsOn writeVersionProperties