From 514558d7ed9b82583d20a37dc53a13ae2391febf Mon Sep 17 00:00:00 2001 From: Marcus Da Coregio Date: Wed, 6 Oct 2021 14:06:49 -0300 Subject: [PATCH] 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 gh-10349 --- aspects/spring-security-aspects.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/aspects/spring-security-aspects.gradle b/aspects/spring-security-aspects.gradle index 3a58595619..70a2a131cb 100644 --- a/aspects/spring-security-aspects.gradle +++ b/aspects/spring-security-aspects.gradle @@ -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"