apply from: script("publishMaven")

displayName = "Spock Framework - Tapestry Module"

description = "Spock's Tapestry Module provides support for testing Tapestry 5 based applications."

repositories {
  // need to explicitly add repository defined in tapestry-ioc POM
  // (workaround for http://jira.codehaus.org/browse/GRADLE-611)
  maven { url "http://repository.jboss.com/maven2" }
}

def tapestryVersion = javaVersion >= 1.8 ? "5.4-beta-26" : "5.2.6"

dependencies {
  compile project(":spock-core")
  compile "org.apache.tapestry:tapestry-ioc:$tapestryVersion", provided
  compile "org.apache.tapestry:tapestry5-annotations:$tapestryVersion", provided

  testCompile "javax.inject:javax.inject:1"
}

