blob: 5a06738d85079aa0590a4789a138d947acc55a81 [file] [log] [blame]
import org.gradle.plugins.ide.idea.model.*
import t5build.*
description = "JCache (JSR 107) integration for Tapestry-IoC"
//apply plugin: JavaPlugin
project.ext.libraryVersions = [
jcache: '1.0.0',
]
dependencies {
/*compile "org.apache.tapestry:tapestry-ioc:${tapestryVersion()}"*/
provided project(":tapestry-ioc")
compile "javax.cache:cache-api:${libraryVersions.jcache}"
compile "org.jsr107.ri:cache-annotations-ri-common:${libraryVersions.jcache}"
testCompile "javax.cache:cache-tests:${libraryVersions.jcache}"
testCompile "javax.cache:test-domain:${libraryVersions.jcache}"
testRuntime "org.infinispan:infinispan-jcache:7.0.0.Alpha4" /* Just to be able to run the tests */
}
jar {
manifest {
attributes 'Tapestry-Module-Classes': 'org.apache.tapestry5.jcache.module.JCacheModule'
}
}
test {
useJUnit()
// those tests do not work with JDK 6 (java.lang.UnsupportedClassVersionError)
exclude '**/InterceptionUsingDefaultCacheNameTest.class',
'**/InterceptionCacheNameOnEachMethodTest.class',
'**/InterceptionUsingCacheConfigTest.class'
}