blob: 878cbab07b54c975c223420c62be960f2101f4ba [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")
implementation "javax.cache:cache-api:${libraryVersions.jcache}"
implementation "org.jsr107.ri:cache-annotations-ri-common:${libraryVersions.jcache}"
testImplementation "javax.cache:cache-tests:${libraryVersions.jcache}"
testImplementation "javax.cache:test-domain:${libraryVersions.jcache}"
testRuntimeOnly "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'
}