This is an automated email from the ASF dual-hosted git repository. benw pushed a commit to branch 5.6.x in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
The following commit(s) were added to refs/heads/5.6.x by this push: new b58428a TAP5-2677: javax.annotation-api dependency added to tapestry-ioc b58428a is described below commit b58428a5080ade846dd2ff0f258797ae622f9204 Author: Benjamin Weidig <b...@netzgut.net> AuthorDate: Tue Apr 27 13:22:10 2021 +0200 TAP5-2677: javax.annotation-api dependency added to tapestry-ioc @PostConstruct is missing for Java 11, if not provided by any dependency. It was part of Java EE, which was deprecated with 9, and removed with 11. --- tapestry-ioc/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tapestry-ioc/build.gradle b/tapestry-ioc/build.gradle index ae9dbff..6edbbf0 100644 --- a/tapestry-ioc/build.gradle +++ b/tapestry-ioc/build.gradle @@ -12,6 +12,11 @@ dependencies { // of the top-level build: compile "javax.inject:javax.inject:1" + // TAP5-2677: Missing dependency for Java 11. + // To match 5.7 it's compile, even though it's runtime + if (JavaVersion.current() >= JavaVersion.VERSION_11) { + compile "javax.annotation:javax.annotation-api:1.3.2" + } compile "org.slf4j:slf4j-api:${versions.slf4j}"