apply plugin: 'c'
model {
  components {
    main(NativeExecutableSpec) {
      sources {
        c {
          source {
            srcDir "src/main"
            include "**/*.c"
          }
        }
      }
    }
  }
}

dependencies {
  compile('com.google.guava:guava:13.0.1')
  compile('commons-collections:commons-collections:3.2.2')
  compile('commons-dbcp:commons-dbcp:1.4')
  compile('commons-dbutils:commons-dbutils:1.5')
  compile('commons-fileupload:commons-fileupload:1.2.1')
  compile('commons-io:commons-io:2.4')
  compile('commons-lang:commons-lang:2.6')
  compile('javax.mail:mail:1.4.5')
  compile('javax.servlet:servlet-api:2.5')
  compile('joda-time:joda-time:2.0')
  compile('log4j:log4j:1.2.16')
  compile('mysql:mysql-connector-java:5.1.28')
  compile('net.sf.jopt-simple:jopt-simple:4.3')
  compile('org.apache.commons:commons-jexl:2.1.1')
  compile('org.apache.commons:commons-math3:3.0')
  compile('org.apache.httpcomponents:httpclient:4.3.1')
  compile('org.apache.httpcomponents:httpcore:4.3')
  compile('org.apache.velocity:velocity:1.7')
  compile('org.codehaus.jackson:jackson-core-asl:1.9.5')
  compile('org.codehaus.jackson:jackson-mapper-asl:1.9.5')
  compile('org.mortbay.jetty:jetty:6.1.26')
  compile('org.mortbay.jetty:jetty-util:6.1.26')
  compile('org.quartz-scheduler:quartz:2.2.1')

  testCompile(project(':azkaban-test').sourceSets.test.output)
  testCompile('org.hamcrest:hamcrest-all:1.3')
}

tasks.withType(JavaCompile) {
  options.encoding = "UTF-8"
}
