Skip to content

Commit

Permalink
Temporarily downgrade Java compat level for AspectJ classes
Browse files Browse the repository at this point in the history
AspectJ doesn't support JDK17 language level (yet).
For the time being, this commit is downgrading the language level for
the aspectJ generated classes to 1.8.

Issue spring-projectsgh-10349
  • Loading branch information
marcusdacoregio committed Nov 1, 2021
1 parent 12f3e90 commit 514558d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions aspects/spring-security-aspects.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
apply plugin: 'io.spring.convention.spring-module'
apply plugin: 'io.freefair.aspectj'

compileAspectj {
sourceCompatibility "1.8"
targetCompatibility "1.8"
}
compileTestAspectj {
sourceCompatibility "1.8"
targetCompatibility "1.8"
}

dependencies {
management platform(project(":spring-security-dependencies"))
api "org.aspectj:aspectjrt"
Expand Down

0 comments on commit 514558d

Please sign in to comment.