You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Upgrade build to Gradle 2.5 for JDK 9 support [SPR-13012] #17603
Initial attempt to build against Java 9 (build 1.9.0-ea-b70) with Gradle 2.5 fails (on my Mac) due to issues with AspectJ:
:spring-aspects:compileJava
[ant:iajc] /Users/sbrannen/source/spring-framework/spring-aspects/src/main/java/org/springframework/transaction/aspectj/JtaAnnotationTransactionAspect.aj [error] The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files
[ant:iajc] (no source information available)
[ant:iajc] /Users/sbrannen/source/spring-framework/spring-aspects/src/main/java/org/springframework/transaction/aspectj/JtaAnnotationTransactionAspect.aj:48 [error] The hierarchy of the type JtaAnnotationTransactionAspect is inconsistent
[ant:iajc] public aspect JtaAnnotationTransactionAspect extends AbstractTransactionAspect {
[ant:iajc] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ant:iajc]
[ant:iajc] 2 errors
:spring-aspects:compileJava FAILED
However, this is farther than the build was getting with Java 9 using Gradle 2.4. So it now appears that Gradle itself might work with Java 9.
Activity
spring-projects-issues commentedon Jul 8, 2015
Juergen Hoeller commented
Gradle 2.5 is GA now... Let's upgrade in time for Spring 4.2 GA still!
Juergen
spring-projects-issues commentedon Jul 9, 2015
Sam Brannen commented
OK. I'm checking it out now...
spring-projects-issues commentedon Jul 9, 2015
Sam Brannen commented
Initial attempt to build against Java 9 (build 1.9.0-ea-b70) with Gradle 2.5 fails (on my Mac) due to issues with AspectJ:
However, this is farther than the build was getting with Java 9 using Gradle 2.4. So it now appears that Gradle itself might work with Java 9.
spring-projects-issues commentedon Jul 9, 2015
Sam Brannen commented
The build against Java 8 with Gradle 2.5 just passed locally. So I'll go ahead and commit the upgrade to 2.5.
However, I'll leave this issue open in order to address issues with AspectJ + Java 9 + Gradle.
spring-projects-issues commentedon Jul 9, 2015
Sam Brannen commented
Upgraded to Gradle 2.5 in GitHub commit c1b5262.
spring-projects-issues commentedon Jul 9, 2015
Juergen Hoeller commented
We downgraded AspectJ to 1.8.x when the build didn't work on JDK 9 anyway...
So I suppose we just need to upgrade it to AspectJ 1.9.0 beta 1 again, and all will be good :-) I'll do that tomorrow.
Juergen
spring-projects-issues commentedon Jul 13, 2015
Juergen Hoeller commented
We're using AspectJ 1.9 beta 1 again now.
I've also upgraded plenty of dependencies to recently released versions, in time for our 4.2 RC3.
Juergen