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 gh-10349
  • Loading branch information
marcusdacoregio authored and rwinch committed Oct 26, 2021
1 parent eeed5b9 commit deabe16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ buildscript {
dependencies {
classpath "io.spring.javaformat:spring-javaformat-gradle-plugin:$springJavaformatVersion"
classpath 'io.spring.nohttp:nohttp-gradle:0.0.10'
classpath "io.freefair.gradle:aspectj-plugin:5.3.3.3"
classpath "io.freefair.gradle:aspectj-plugin:6.2.0"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "com.netflix.nebula:nebula-project-plugin:8.2.0"
}
Expand Down

0 comments on commit deabe16

Please sign in to comment.