Skip to content

Commit d53c7f3

Browse files
Temporarily downgrade Java compat level for AspectJ classes
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
1 parent c84f5ff commit d53c7f3

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

aspects/spring-security-aspects.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
apply plugin: 'io.spring.convention.spring-module'
22
apply plugin: 'io.freefair.aspectj'
33

4+
compileAspectj {
5+
sourceCompatibility "1.8"
6+
targetCompatibility "1.8"
7+
}
8+
compileTestAspectj {
9+
sourceCompatibility "1.8"
10+
targetCompatibility "1.8"
11+
}
12+
413
dependencies {
514
management platform(project(":spring-security-dependencies"))
615
api "org.aspectj:aspectjrt"

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ buildscript {
22
dependencies {
33
classpath "io.spring.javaformat:spring-javaformat-gradle-plugin:$springJavaformatVersion"
44
classpath 'io.spring.nohttp:nohttp-gradle:0.0.10'
5-
classpath "io.freefair.gradle:aspectj-plugin:5.3.3.3"
5+
classpath "io.freefair.gradle:aspectj-plugin:6.2.0"
66
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
77
classpath "com.netflix.nebula:nebula-project-plugin:8.2.0"
88
}

0 commit comments

Comments
 (0)