Skip to content

Commit 4e3d1fa

Browse files
committed
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. See gh-27416
1 parent cf2429b commit 4e3d1fa

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
id 'org.asciidoctor.jvm.convert' version '3.3.2'
77
id 'org.asciidoctor.jvm.pdf' version '3.3.2'
88
id 'de.undercouch.download' version '4.1.2'
9-
id "io.freefair.aspectj" version '6.1.0' apply false
9+
id "io.freefair.aspectj" version '6.2.0' apply false
1010
id "com.github.ben-manes.versions" version '0.39.0'
1111
id "com.github.johnrengelman.shadow" version '7.0.0' apply false
1212
id "me.champeau.jmh" version "0.6.6" apply false

spring-aspects/spring-aspects.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ sourceSets.test.java.srcDirs = files()
1010

1111
aspectj.version = dependencyManagement.managedVersions['org.aspectj:aspectjweaver']
1212

13+
compileAspectj {
14+
sourceCompatibility "1.8"
15+
targetCompatibility "1.8"
16+
}
17+
compileTestAspectj {
18+
sourceCompatibility "1.8"
19+
targetCompatibility "1.8"
20+
}
21+
1322
dependencies {
1423
api("org.aspectj:aspectjweaver")
1524
compileOnly("org.aspectj:aspectjrt")

0 commit comments

Comments
 (0)