apply from: rootProject.file('common.gradle')

import org.apache.tools.ant.filters.*

dependencies {
  compile "org.codehaus.groovy:groovy:$groovy_version"
  compile "org.codehaus.groovy:groovy-json:$groovy_version"
  compile "ch.qos.logback:logback-classic:$logback_version"
  compile 'commons-cli:commons-cli:1.2'
  compile 'commons-configuration:commons-configuration:1.10'
  compile 'commons-io:commons-io:2.4'
  compile 'org.apache.commons:commons-lang3:3.3.2'
  compile 'org.apache.servicemix.bundles:org.apache.servicemix.bundles.bcprov-jdk16:1.46_3'
  compile 'org.springframework.boot:spring-boot-devtools:1.3.3.RELEASE'
}

tasks.processResources {
  def props = [
    grettyVersion: project.version,
    jetty7Version: project.jetty7_version,
    jetty7ServletApiVersion: project.jetty7_servlet_api_version,
    jetty8Version: project.jetty8_version,
    jetty8ServletApiVersion: project.jetty8_servlet_api_version,
    jetty9Version: project.jetty9_version,
    jetty93Version: project.jetty93_version,
    jetty94Version: project.jetty94_version,
    jetty9ServletApiVersion: project.jetty9_servlet_api_version,
    tomcat7Version: project.tomcat7_version,
    tomcat7ServletApiVersion: project.tomcat7_servlet_api_version,
    tomcat8Version: project.tomcat8_version,
    tomcat8ServletApiVersion: project.tomcat8_servlet_api_version,
    springBootVersion: project.springBootVersion,
    springLoadedVersion: project.springLoadedVersion,
    springVersion: project.springVersion,
    slf4jVersion: project.slf4j_version,
    logbackVersion: project.logback_version,
    asmVersion: project.asm_version
  ]
  inputs.properties props
  filter ReplaceTokens, tokens: props
}
